Setting custom url when an specific error occurs?

Setting custom url when an specific error occurs? SearchSearch
Author Message
Nikos Mavrakis
Posted on Tuesday, January 20, 2009 - 10:46 am:   

Hello,

I would like to ask whether it is possible for the gateway to give some feedback to us whenever this error occurs:
2009-01-19 00:03:47,4945BAAC.req,195.97.30.42,306947122914,ERROR: Invalid Dest Addr - ESME_RINVDSTADR (0x0B) -- SMPP - 213.249.19.18#9:2775,Text="text"

Is it possible to set a custom url, like we do in the 2-way tab?
We want this functionality, in order to know at once when a SMS is rejected by a SMPP SMSC.

Thank you!
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 374
Registered: 08-2008
Posted on Tuesday, January 20, 2009 - 07:35 pm:   

Hi Nikos,

If you implement the SMS Accounting callbacks, then this information would be returned in that callback.

Unfortunately, that callback would occur for many conditions, not just this error condition.

The callback would occur twice every time a message is submitted into the NowSMS queue (PreAuth and accounting callbacks).

And it would occur whenever a message is submitted successfully to an upstream SMSC ... and whenever there is a failure submitting a message to an upstream SMSC.

Essentially to capture just this information, you could ignore all callbacks except for when "Type=SMSOut" and "Status=" starts with "ERROR".

The accounting callback interface is described here:

http://nowsms.com/support/bulletins/tb-nowsms-001.htm

The "Type=SMSOut" callbacks are not described there. At the moment, I can't locate anywhere that they are described ... but I just responded to another question here that referenced them, so it definitely exists in NowSMS 2008.

--
Des
NowSMS Support