Skip to content

SMSC randomly send deliver_sm through TX or RX #157

Open
@coolbeevip

Description

@coolbeevip

I have SMSC devices that only support SMPP 3.3 protocol, But it will randomly send deliver_sm through TX or RX.

I want to be compatible with it. I found the following method

responseHandler.sendNegativeResponse(pduHeader.getCommandId(),

I modify the method like :

  public void processDeliverSm(Command pduHeader, byte[] pdu,
    ResponseHandler responseHandler) throws IOException {
    boolean enableReceiveDeliverSm = Boolean.getBoolean("enableReceiveDeliverSm");
    if (bindTxDeliverSmEnabled) {
      processDeliverSm0(pduHeader, pdu, responseHandler);
    } else {
      responseHandler.sendNegativeResponse(pduHeader.getCommandId(),
        SMPPConstant.STAT_ESME_RINVBNDSTS, pduHeader
          .getSequenceNumber());
    }
  }

Is that correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions