Valid Phone Numbers

Valid Phone Numbers SearchSearch
Author Message
Agis Kefalinos
New member
Username: Mdagis

Post Number: 2
Registered: 11-2008
Posted on Tuesday, November 25, 2008 - 09:18 am:   

Hello, I am using Now SMS to send sms with the SMTP functionality (send as mail). When the number has a problem in example instead of just numeric to also have a letter the smtp returns me an error and I can catch the problem. The problem begins when I have a number that “looks” valid but does not match to any valid subscriber. When that happens I do not get any error msg and I cannot catch the error. Is there any other way to get informed that the number was not valid?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 255
Registered: 08-2008
Posted on Tuesday, November 25, 2008 - 02:40 pm:   

Hi,

I am trying to understand.

Here is what I think you are saying:

You are submitting messages to NowSMS via SMTP.

You want to be notified if there is an error delvering the resulting SMS message.

There is no way to do this when you are submitting messages via SMTP.

If you are submitting messages via HTTP, then it is possible to request a delivery receipt.

Whether or not you actually receive a delivery receipt when one is requested depends on if your SMS provider supports them.

The delivery receipt will come back similar to an inbound SMS, and would typically be dispatched via the 2-way command processor.

Here's some more detailed information:

To request a delivery receipt, when submitting a message via HTTP, include the following URL parameter: "&ReceiptRequested=Yes"

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 HTTP submissions. (This setting affects HTTP submissions only, not SMTP submissions.)

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

These receipt requests are supported when connecting to an SMPP based provider or a GSM modem that supports receipts. (In recent versions, there is also some support for UCP/EMI and CIMD2 environments, however support is not enabled by default in those environments. To enable, you need to edit SMSGW.INI, and under the [SMSGW] header, add TrackUCPReceipts=Yes or TrackCIMDReceipts=Yes.)

When you are connecting to an SMPP provider, it is then up to that provider whether or not they will send delivery reports back to you. (So even if you configure everything correctly in NowSMS, they might not support delivery receipts.)

If you are submitting to NowSMS via HTTP, then the "SMS Users" account that you are using should NOT have SMPP access enabled. (If the account has SMPP access enabled, NowSMS will queue any delivery receipts that it recieves back to the message queue for this SMPP client.)

When a message is submitted via HTTP, the HTTP 200 OK response includes text such as the following:

MessageID=54321098.req, 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, as I mentioned above).

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.)

--
Des
NowSMS Support
michael dawood soliman
New member
Username: Micdv

Post Number: 1
Registered: 01-2009
Posted on Wednesday, January 28, 2009 - 12:20 pm:   

[edited by admin: removed phone number] is my phone no