Delivery reports

Delivery reports SearchSearch
Author Message
Stoner2008
New member
Username: Stoner2008

Post Number: 11
Registered: 05-2013
Posted on Monday, December 09, 2013 - 09:44 am:   

hi
i made a program that helps me to send SMS and it works just fine.
now i want to have the delivery report to know if the sms has reached the phone or not.
can you please help me with that?i can't even locate the delivery reports .
thank you
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4766
Registered: 08-2008
Posted on Monday, December 09, 2013 - 03:05 pm:   

Hi,

To request a delivery receipt, there are two options.

If you only want to request a delivery receipt for some mesages, include the URL parameter "&ReceiptRequested=Yes" when submitting messages that require a delivery receipt.

Alternatively, it is also possible to edit the SMSGW.INI, and under the [SMSGW] header, add ReceiptRequested=Yes ... which will cause this flag to be set for all message submissions received via HTTP.

When this "ReceiptRequested" flag is set, it causes NowSMS to request a delivery receipt when submitting the message to an upstream SMSC.

Note that not all service providers support delivery reports. Also note that if you are sending via a modem, requesting delivery reports can slow down how fast messages can be sent out. (This is a modem issue, not a NowSMS issue.)

When you submit a message to NowSMS via HTTP, the HTTP 200 OK response includes text such as the following:

MessageID=54321098, Recipient=+xxxxxxxxxx

If the message was posted to multiple recipients, this will be repeated for each recipient.

You can parse the text from this HTTP response to determine the Message id that NowSMS has assigned to the message.

When a delivery receipt comes back into the system, it gets routed to the 2-way command facility (unless SMPP access is enabled for the account that originally submitted the message to NowSMS, in which case the receipt gets queued for delivery back to the client account via SMPP).

Normally, the SMSC will prefix the text of all delivery receipts with "id:" ... and if the message is properly formatted as a delivery receipt, but this prefix is not present, NowSMS will reformat the message to include this prefix.

To define a 2-way command specific to processing delivery receipts, define the 2-way command with an "SMS Command Prefix" of id:*

Leave "Receive Phone Number(s)" blank (or in the context of receipts, it would be the sender address of the originally sent message, so you could define different scripts to process receipts for different sender phone numbers).

Then in the "Command to Execute" field, there is a parameter that you can use ... @@RECEIPTMESSAGEID@@, which will contain the message id for which this receipt applies. (This assumes that the service provider returns the message id properly in the receipt.)

The message id in the receipt (either @@RECEIPTMESSAGEID@@ or the text after "id:" in the text of the receipt) allows you to match up the receipt with the originally submitted message.

--
Des
NowSMS Support
Stoner2008
New member
Username: Stoner2008

Post Number: 12
Registered: 05-2013
Posted on Tuesday, March 11, 2014 - 03:57 pm:   

hi,
i write in the header section of smsgw.ini:


[SMSGW]
ReceiptRequested=Yes

but nothing happened
i also added this flag in my account smpp section but also nothing happened

please help
Stoner2008
New member
Username: Stoner2008

Post Number: 13
Registered: 05-2013
Posted on Thursday, March 13, 2014 - 05:49 pm:   

like i said above i wrote in the header section of smsgw.ini:
[SMSGW]
ReceiptRequested=Yes

this smpp account is for smspush (only for sending sms)
this is my smpp config



i tried to select send and receive over the same connection but it generates an error:
retry pending: ERROR: timeout waiting for reponse from server or lost connection

please help !!
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4838
Registered: 08-2008
Posted on Friday, March 14, 2014 - 04:38 pm:   

Hi,


It is somewhat difficult to answer your questions because you are running a very old version of NowSMS.

That said, NowSMS will accept delivery reports over a send-only connection. I believe this has always been the case, based on a quick scan/read of our changes log.

But your provider may refuse to deliver these reports over a send only connection.

If the connection fails when you try to enable the receive setting, try enabling the receive setting but also enable "Send and Receive Messages over the same connection (SMPP Transceiver)".

--
Des
NowSMS Support
Stoner2008
New member
Username: Stoner2008

Post Number: 14
Registered: 05-2013
Posted on Saturday, March 15, 2014 - 12:41 pm:   

i tried that but i have also the same error when i check "SEND AND RECEIVE OVER THE SAME CONNECTION":

retry pending: ERROR: timeout waiting for reponse from server or lost connection
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4840
Registered: 08-2008
Posted on Saturday, March 15, 2014 - 09:37 pm:   

Then you probably need to talk to your service provider.

It would be a good idea to ask them if they support delivery reports, and if they can be received over a send only connection.

The only suggestion I have is to stop the NowSMS service before adjusting any connection settings as if the NowSMS service is connected to the provider, and the configuration program also tries a test connection, you may have more connections active than your provider allows. (Normally NowSMS prompts to ask if it can temporarily stop the service to test the connection for this reason. However, I don't know if a 7 year old version of the product does this.)

To better understand what is happening you may want to try packet captures with Wireshark. This would help you see for certain whether the registered_delivery flag was set in the outgoing message, and show if there are any missing delivery reports being transmitted over the connection. (They would arrive in deliver_sm packets. submit_sm_resp is just confirmation that the provider has received and accepted responsibility for the message.)

--
Des
NowSMS Support