2Way SMS + Delivery Reports

2Way SMS + Delivery Reports SearchSearch
Author Message
Tim Williams
New member
Username: Timw

Post Number: 1
Registered: 09-2010
Posted on Monday, September 13, 2010 - 10:58 am:   

Hi,

We currently have the 2Way SMS working and requesting/receiving delivery reports but it is set so all messages have a report requested, we would like to know if it's possible in the 2Way Command text to pass a variable across to the processing script that would show if the message sent had a delivery report requested?

Regards

Tim
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2496
Registered: 08-2008
Posted on Monday, September 13, 2010 - 08:41 pm:   

Hi Tim,

Are you saying that you want to know if the message you received and are processing with the 2-way command had a delivery report requested?

That's an interesting thought.

The short answer, however, is no. There is no provision for passing this information to a 2-way command.

Until I reviewed the specifications a little while ago, I didn't even think this was possible. However, I do see that whether or not a delivery status report was requested is included in the received message. So technically it could be possible, we just do not currently track this attribute when routing a message to a 2-way command.

--
Des
NowSMS Support
Tim Williams
New member
Username: Timw

Post Number: 2
Registered: 09-2010
Posted on Monday, September 20, 2010 - 01:12 pm:   

Hi Des,

Thanks for the reply, we have set it to manually request delivery reports anyway but have noticed that it is taking around 5-10 minutes for each report to reach our processing page, is there any obvious reason that this should be the case (as we can see on our HLR that the report is coming back within a few seconds on some occasions).
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2513
Registered: 08-2008
Posted on Monday, September 20, 2010 - 04:36 pm:   

Hi Tim,

What is the interface from NowSMS to the SMSC?

Either the delay is introduced by the SMSC to which NowSMS is connected ... or NowSMS is having a problem properly resolving the receipt message ID, which can cause the receipt to get stuck for a few minutes. (You'd know that it was the latter case if the message ID in the receipt does not match the message ID assigned when the message was first submitted to NowSMS.)

--
Des
NowSMS Support
Tim Williams
New member
Username: Timw

Post Number: 3
Registered: 09-2010
Posted on Monday, September 20, 2010 - 05:14 pm:   

Hi Des,

The interface is SMPP, the message id could be the issue as this is also something I noticed, when I parse the initial send message response (that requests the delivery report) I get a 8 digit message id that is alpha numerical, but on the delivery reports they are just numerical ids. - I did wonder about the mismatch as I had written the pages to match up the sending message and the report that was returned (and due to the difference in id's that failed).
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2515
Registered: 08-2008
Posted on Monday, September 20, 2010 - 05:33 pm:   

Hi Tim,

There are some scenarios where the SMSC returns a hex ID on submission, but decimal ID in the receipt. NowSMS normally handles those scenarios and converts as necessary. (However, I'm assuming that you're running a recent version. Pre-2006 versions did not handle this, and some 2007 versions did not handle this.)

Can you extract some contents from the SMSOUT-yyyymmdd.LOG and SMSIN-yyyymmdd.LOG files, so that I can see what upstream message ID is being assigned, and what the message ID is that is coming back in the receipt?

Ideally, I'd like to see the raw SMPP data. If you enable the SMSDEBUG.LOG, this enables an additional debug log, SMPPDEBUG.LOG, which logs the raw SMPP data. I can probably get enough of an idea of what is happening with the SMSOUT and SMSIN logs, but if you could enable SMSDEBUG.LOG and send another message so that we could capture the transaction in SMPPDEBUG.LOG, then we'd see exactly what is happening with the receipt message IDs.

--
Des
NowSMS Support
Tim Williams
New member
Username: Timw

Post Number: 4
Registered: 09-2010
Posted on Tuesday, September 21, 2010 - 06:24 pm:   

Hi Des,

I have the info from the SMSIN and SMSOUT logs, I did enable the debug log briefly and capture the data but it also contains a lot of other messages due to the qty going through the system, is there any specific information you need? or shall I just try to find the 2 entries regarding the message and copy everything in between? is there an email I can send the log information to?

Regards

Tim
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2521
Registered: 08-2008
Posted on Tuesday, September 21, 2010 - 07:56 pm:   

Hi Tim,

For starters, I'm interested in the log entries from SMSIN and SMSOUT that reference a particular message and its delivery receipt. (Or several similar ones.)

Please feel free to e-mail any logs to nowsms@nowsms.com, but put "Attention: Des" in the subject line so they will get forwarded to me.

--
Des
NowSMS Support