Abort incoming SubmitSm with CommandStatus on SmppServer
Posted: Tue Jul 02, 2019 9:43 am
In SmppServer: How can I make a complete stop of an incoming SubmitSm
Even when returning this CommandStatus the _server.evClientSubmitSm() event is triggered and returns a DLR.
Do I need to do something more?
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;
}
Do I need to do something more?