How would I set registered_delivery to 1?

Smpp v3.4 client

Moderator: alt

Locked
hedroj
Posts: 3
Joined: Fri Nov 21, 2008 6:57 pm

How would I set registered_delivery to 1?

Post by hedroj » Sat Dec 20, 2008 9:04 pm

Hi,
I am now trying to connect to CardBoardFish gateway and they are telling me that the registered_delivery for messages sent are set to 0.

How would I set registered_delivery to 1?

Note: I was using your library to connect to world-text gateway and things were working fine (I was normaly receiving delivery receipts).

Regards,
Ihab
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Post by NickAskew » Thu Jan 08, 2009 5:00 pm

Hi Hedroj,

The SMPP v3.4 Issue 1.2 Protocol Specification reads:
5.2.17 registered_delivery
The registered_delivery parameter is used to request an SMSC delivery receipt and/or SME originated acknowledgements. The following values are defined:
Bits 7 6 5 4 3 2 1 0 Meaning SMSC Delivery Receipt (bits 1 and 0)
x x x x x x 0 0 No SMSC Delivery Receipt requested (default)
x x x x x x 0 1 SMSC Delivery Receipt requested where final delivery outcome is delivery success or failure
x x x x x x 1 0 SMSC Delivery Receipt requested where the final delivery outcome is delivery failure
x x x x x x 1 1 reserved
....
How you apply this when using Alts library if you follow this template:

Code: Select all

Dim sp As New SubmitSm(m_ServiceType, m_SourceAddrTon, m_SourceAddrNpi, SourceMobileNum, m_DestAddrTon, m_DestAddrNpi, DestMobileNum)
sp.DataCoding = DataCodings.Default
sp.ShortMessageBytes = SmppClient.GetMessageBytes(TextMessageBody, DirectCast(sp.DataCoding, Byte))
At some point you will want to set this property to 1 if this is what your provider interprets as a receipt request:

Code: Select all

sp.RegisteredDelivery = 1
Good Luck

Nick
ProcessFlows UK Ltd
http://www.processflows.co.uk/
Locked