SMPP ERROR Codes from NowSMS | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through May 20, 2013 ⬆ |
◄ ► |
Author | Message | |||
Minh Tran New member Username: Mtran2spsu Post Number: 1 Registered: 10-2012 |
Hi, I am trying to find out where can i set the NowSMS SMPP settings to request my SMSC for error code notifications. I am using the Tekelec Mobile Messaging SMSC and i have connected to the NowSMS via SMPP. I would like to know if there is anyway i can see the result code that comes back from the SMSC when i send out a message. I need to know to based these error codes off each message error such as "absent subscriber, etc." | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4122 Registered: 08-2008 |
Hi, There are a few ways that you could obtain this information. If you request a delivery receipt when submitting messages, NowSMS will generate a non-delivery report back if a message is rejected by an upstream SMPP server. The SMPP error code will be present in the err: field of the delivery report. For more information on delivery reports, see this thread: http://support.nowsms.com/discus/messages/1/24078.html#POST40255 Another way is to monitor the SMS accounting callbacks. The Type=SMSOut callback is triggered every time a message is submitted upstream, as well as whenever an error occurs submitting a message upstream. More info on accounting callbacks can be found here: http://www.nowsms.com/doc/advanced-configuration-settings/sms-accounting-callbac ks Additionally, any upstream submission errors are recorded in the SMSOUT-yyyymmd.LOG files. -- Des NowSMS Support | |||
Minh Tran New member Username: Mtran2spsu Post Number: 2 Registered: 10-2012 |
Okay, i just figured that i can just enable "delivery receipt" from the web interface. My question is there also see a status if the phone or mobile device is off? | |||
Minh Tran New member Username: Mtran2spsu Post Number: 3 Registered: 10-2012 |
Also, how do you set a different validity period for SMS messages? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4144 Registered: 08-2008 |
This question ties into your validity period question. Generally speaking, you can't determine whether or not a mobile device is powered on and in coverage to receive a message. However, some services allow you to specify a validity period which specifies how long the service should attempt to deliver a message before considering it expired. If the message cannot be delivered within the validity period window, the message will be discarded, and a non-delivery report will be returned if delivery reports were requested. How to specify a validity period when using NowSMS is described in the following thread: http://support.nowsms.com/discus/messages/1/14540.html Important Note: SMPP format allows you to specify a combination of days, hours and minutes. The NowSMS format allows you to specify a number of days, hours or minutes ... not a combination. By way of example, a 90 minute period is 90M in NowSMS, not 1 hour and 30 minutes. There have also been previous discussions here regarding silent (sometimes called phantom) SMS messages where the receiving handset receives and acknowledges receipt of a message but discards it without ever presenting it to the user. Some people refer to this as a "ping check" to see if the handset is powered on and in coverage. This is known as short message type 0, or PID=40. More discussions can be found here: http://support.nowsms.com/discus/messages/1/19637.html http://support.nowsms.com/discus/messages/1/70428.html Note that the more recent of these threads suggests that some newer handsets might not understand what short message type 0 means, and may be displaying the message anyway. -- Des NowSMS Support | |||
Minh Tran New member Username: Mtran2spsu Post Number: 4 Registered: 10-2012 |
Thanks for the quick replies. As for SMS, is there such a option for single shot indicator? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4153 Registered: 08-2008 |
I'm not sure I understand what you mean by "single shot indicator". I assume you mean setting a special value when sending a single SMS, as opposed to setting a value that applies to all SMS. That is the primary focus of the first of the links in my earlier reply: http://support.nowsms.com/discus/messages/1/14540.html Specifically the &Validity= HTTP parameter, which is also documented here: http://www.nowsms.com/doc/submitting-sms-messages/url-parameters -- Des NowSMS Support | |||
Minh Tran New member Username: Mtran2spsu Post Number: 5 Registered: 10-2012 |
Thanks for all the help Des!!! Can you let me know if there is a way to force the application to send the message out in national format instead of international? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4162 Registered: 08-2008 |
Assuming that you have not explicitly set the TON value in the advanced settings for the SMPP connection, the determination is generally made based upon the format of the number. If the number starts with "+", it is international, otherwise it is not. If you have the need to strip the country code for a particular SMSC connection ... for example change +44 to 0, that is possible. There is an article that describes these INI file settings at: http://www.nowsms.com/international-prefix-conversion-for-sms The example there is for converting national format to international format. But going in reverse is similar. For example, under the [SMPP - server:port] header, it would be something like this: OutRecipPrefixConvert=+44:0 The article has a bit more explanation. -- Des NowSMS Support |