Duplicated SMS in evDeliverSm

.NET library for SMPP protocol
Locked
Vladimir
Posts: 7
Joined: Tue Jun 07, 2016 8:50 pm

Duplicated SMS in evDeliverSm

Post by Vladimir » Sun Jun 26, 2016 7:36 pm

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Duplicated SMS in evDeliverSm

Post by alt » Mon Jun 27, 2016 8:01 pm

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.
Vladimir
Posts: 7
Joined: Tue Jun 07, 2016 8:50 pm

Re: Duplicated SMS in evDeliverSm

Post by Vladimir » Mon Jun 27, 2016 8:37 pm

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Duplicated SMS in evDeliverSm

Post by alt » Mon Jun 27, 2016 9:19 pm

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?
Locked