Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
SMS status codes
sp_NewPost Add Reply sp_NewTopic Add Topic
October 20, 2016
2:32 pm
Michal
Guest
Guests

No kidding, after I tried to set ID property to "Alphanumeric" for the second time (Ive set it back to hexadecimal to test if it works at all)- it started to return status code 201 without errors. Thank you very much for your help, if any error occurs, I will let you know.

Best regards,
Michal

October 20, 2016
2:19 pm
Henk Helmantel
Admin
Forum Posts: 554
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Yes, please send me the log.

The delivery reports in previous log you sent me look OK, they both indicate that the messages were delivered to the mobile phone and they are both decoded correctly by Diafaan SMS Server.

Regards, Henk

October 20, 2016
2:01 pm
Michal
Guest
Guests

Unfortunately after setting the property to "alphanumeric" (just from curiosity Ive tried also numeric) I get:

Status: 301, Error: Status error 'Undeliverable' received after the message was accepted by the SMPP gateway.
Error: 000.Undeliverable

Would log help?

October 20, 2016
1:28 pm
Henk Helmantel
Admin
Forum Posts: 554
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thank you for the log. It shows that the delivery reports are received by Diafaan SMS Server but the SMS service you use sends the message ID in the delivery report in a way that the SMPP Gateway does not expect. The outcome is that Diafaan SMS Server is not able to match the delivery report to the original message. You can solve this by setting the 'MessageIdFormat' property in the advanced settings of the SMPP Gateway to 'Alphanumeric'.

The explanation for this behavior is that SMPP 3.4 has a slightly confusing way of handling message IDs. The specification says that the message ID format should be a hexadecimal number in the SUBMIT_SM response and the corresponding decimal number in the delivery report (receipt). A lot of SMPP servers follow this standard but your SMPP server uses a hexadecimal message ID in both the SUBMIT_SM response and the delivery report. If you set the 'MessageIdFormat' property to 'Alphanumeric' Diafaan SMS Server treats both message IDs as a string and matches them one to one.

Regards, Henk

October 20, 2016
12:14 pm
Michal
Guest
Guests

Thank you for answering! Our SMS service does provide DLR funcionality, or at least when I set DLR request on Android phone, I always get notification about successful msg delivery.¨So I came to the conclusion they certainly do... Anyway just to be sure, I will be sending you my LOG file + SDR LOG snippet from gateway, where it states, that SMS was delivered successfully (D-OK).

Best regards,
Michal

October 20, 2016
11:53 am
Henk Helmantel
Admin
Forum Posts: 554
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

There can be two reasons why messages in Diafaan SMS Server do not get status code 201. The first is that the SMS service you use does not return delivery reports. Another reason can be that the delivery report that is returned by your SMS service provider is in a format that Diafaan SMS Server handles incorrectly.

When your SMS service returns the standard delivery reports, Diafaan SMS Server automatically sets the status code to 201 when the message is received on the mobile phone. You don't have to enable a specific option in Diafaan SMS Server for delivery reports.

Are you certain that the SMS service you use returns delivery reports? If you are not sure then you can send a communication log for the gateway that sends the messages to dms@diafaan.com and I will have a look at it.

Regards, Henk

October 20, 2016
10:02 am
Michal
Guest
Guests

Hello Henk,
I´ve written to out gateways tech support. They described exactly the same procedure as you did (e.g. 'registered_delivery' parameter in the SUBMIT_SM packet). So our gateway in default settings waits for this packet, but we never receive anything else than code 200... but we "need" code 201. Is there any way to debug this behavior?

Best regards,
Michal

October 13, 2016
11:35 am
Henk Helmantel
Admin
Forum Posts: 554
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Michal,

The SMPP Gateway in Diafaan SMS Server requests a delivery report when the final delivery outcome is delivery success or failure using the 'registered_delivery' parameter in the SUBMIT_SM packet. This can be disabled in the advanced settings of the SMPP Gateway settings with the 'DeliveryConfirmation' property but it is enabled by default.

As far as I know there is no other way to request a delivery report from the SMPP server.

Regards, Henk

October 13, 2016
9:16 am
Michal
Guest
Guests

Hello again Henk,

Is it possible (maybe in next update?) to somehow trough SMPP explicitly request "received messaage" confirmation e.g. code 201?

Our gateway states in manual:

With  SMPP,  the  delivery  information  is  active  automatically  in case the service is required by the SMPP counterparty or via an
incoming SMS message from the GSM/UMTS network.

Our MNO can't or doesn't want to explicitly enable this feature for given set of telephone numbers.

September 30, 2016
4:15 pm
Henk Helmantel
Admin
Forum Posts: 554
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Michal,

At the moment Diafaan SMS Server uses 5 status codes:

100 The message is in the send queue
200 The messages was sent and accepted by the SMS service
201 The message was delivered to the mobile phone
300 The message was rejected by the SMS service or could not be sent by Diafaan SMS Server
301 The message was sent and accepted by the SMS service but could not be delivered to the mobile phone

Status codes 201 and 301 indicate that the SMS service returned a status update (delivery report/receipt) for the message after it was sent by Diafaan SMS Server.

For status codes 300 and 301 there is usually an SMS service specific error code and error text with more information about the cause of the error.

Regards, Henk

September 30, 2016
3:34 pm
Michal
Guest
Guests

Hello Henk,

would you mind redirecting me to somewhere, where I would be able to find SMS status codes your server is returning.
For example code 200, 201 (whole list would be great) etc. Unfortunately I couldnt find it anywhere. We need to verify (in our application) that message was 100% received by recipient (should be code 201). Thank you in advance.

Best regards,
Michal

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 365

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 533

Posts: 1849

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 554