Abort incoming SubmitSm with CommandStatus on SmppServer

Post Reply
jan_blomqvist
Posts: 1
Joined: Tue Jul 02, 2019 9:32 am

Abort incoming SubmitSm with CommandStatus on SmppServer

Post by jan_blomqvist » Tue Jul 02, 2019 9:43 am

In SmppServer: How can I make a complete stop of an incoming SubmitSm

Code: Select all

      
    private void Client_evSubmitSm(object sender, SubmitSm data)
    {      
      if (data.DestinationAddress.Address.EndsWith("9900")) cmdStatus = CommandStatus.ESME_RSUBMITFAIL;
      if (data.DestinationAddress.Address.EndsWith("9903")) cmdStatus = CommandStatus.ESME_RSYSERR;
      if (data.DestinationAddress.Address.EndsWith("9907")) cmdStatus = CommandStatus.ESME_RQUERYFAIL;

      data.Response.Header.Status = cmdStatus;
     } 
 
Even when returning this CommandStatus the _server.evClientSubmitSm() event is triggered and returns a DLR.
Do I need to do something more?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Abort incoming SubmitSm with CommandStatus on SmppServer

Post by alt » Wed Jul 03, 2019 6:19 pm

Hi Jan,

When server receives SubmitSm it triggers the event evClientSubmitSm. You can only reject SubmitSm and send SubmitSmResp with non-OK status.
I'm not sure what you mean with "returns a DLR". Does your server application sends DeliverSm command to the client with the same MessageId as in non-OK SubmitSmResp?
Post Reply