Page 1 of 1

Duplicated SMS in evDeliverSm

Posted: Sun Jun 26, 2016 7:36 pm
by Vladimir
Hello,

I am using Inetlab.SMPP against bandwidth.com service. I discovered that for some reason incoming messages are being appeared in evDeliverSm instead of evDataSm.
Actually - this is not big issue, but when I send message with SourceAddr = +1xxx DestAddr = +1yyy and Message = "zzz", I receive event evDataSm with the same data: SourceAddr +1xxx DestAddr +1yyy and Message "zzz". Since we use evDataSm to listen incoming messages I have an issue to identify "repeated" message vs "real new" message.

I tried to troubleshoot the issue and somehow identify "repeated" vs "real new" message bu can not find any differences. data.MessageType in both cases is the same = Default.

Can you help?

PS: we are going to manage multiple (thousands) SourceAddr's and I can not use SourceAddr as a key to identify this is "repeated" message.

Thank you.

Re: Duplicated SMS in evDeliverSm

Posted: Mon Jun 27, 2016 8:01 pm
by alt
Hello Vladimir,

It is usual to send incoming messages using DeliverSm PDU.

Could you send me DataSm PDU as hex dump? Possible they send you something in Optional parameters.
Is it like delivery receipt from their side?
Do they send normal delivery receipt when mobile phone receives your message?

I would configure SmppClient for this provider so that all incoming message come with evDeliverSm event, and, if possible, ask provider to disable repeated message on their side.
Normally providers shouldn't send same message back to the client.

Re: Duplicated SMS in evDeliverSm

Posted: Mon Jun 27, 2016 8:37 pm
by Vladimir
Hello alt,
here is link https://drive.google.com/file/d/0B061QF ... sp=sharing to txt with dump.
1. I launched SmppClientDemo.exe
2. Sent SMS from 13233646644 to 18772485354 with the message "Test Message"
3. Saved everything what I got in Log area.

As you can see - there is repeated message appears:
>> 13:16:36: INFO : 15: (SmppClientDemo) DeliverSm received

Thank you in advance.

Re: Duplicated SMS in evDeliverSm

Posted: Mon Jun 27, 2016 9:19 pm
by alt
I don't see any sense in first DeliverSm. Second DeliverSm is delivery receipt telling you that your message is accepted.
Can provider deactivate first DeliverSm?