SIM Card with no money in it

SIM Card with no money in it SearchSearch
Author Message
Jose Baptista
New member
Username: Villa

Post Number: 1
Registered: 04-2010
Posted on Thursday, April 01, 2010 - 01:03 am:   

Hi,
I use 3 modems to send SMS, one for each operator.
The SMS are free if you send it with the right SIM Card (ex. Vodafone->Vodafone).

Usualy the SIM card are with no balance.
How can I get the return status of the SMS that was sent? (not receipt, only if the SMS was sent or not?)

Thanks,
Jose Baptista
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1986
Registered: 08-2008
Posted on Thursday, April 01, 2010 - 04:07 pm:   

Hi Jose,

If a delivery receipt is requested, but NowSMS cannot deliver the message (too many retries and it fails), then NowSMS will generate a non-delivery notification message back to the original sender.

--
Des
NowSMS Support
Jose Baptista
New member
Username: Villa

Post Number: 2
Registered: 04-2010
Posted on Friday, April 02, 2010 - 12:01 pm:   

But a normal phone send a error msg, like +CMS ERROR: 50
The only status I get from nowSMS is:
MessageID=4BB3E7E5.req, Recipient=913316xxx
I don't know if the SMS was sent sucessfully or not... There's any way to get this status.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1989
Registered: 08-2008
Posted on Friday, April 02, 2010 - 02:21 pm:   

Hi Jose,

It will likely be several minutes later before the message exhausts all retries and is considered a failure.

HTTP would timeout if we waited that long to respond.

What you need to do is request a delivery receipt when submitting the message (&ReceiptRequested=Yes in the URL).

If the message fails, you will receive a delivery notification message indicating failure as an inbound SMS.

In most situations, that message would be delivered to you via the 2-way SMS feature.

http://support.nowsms.com/discus/messages/1/24078.html#POST40255

Basically, the delivery receipt message is going to start with:

id:4BB3E7E5

Where 4BB3E7E5 matches the MessageID that was returned when you submitted the message.

Look for the "stat:XXXXXXX" string to determine message status.

DELIVRD means successful delivery
ENROUTE is an interim OK response (some SMSCs cannot give delivery receipts, and by returning this response it indicates that the message has been queued for delivery, but an actual delivery receipt may not be available)
REJECTD means failed or rejected
EXPIRED means expired without being delivered
DELETED means message was deleted without being delivered
ACCEPTD is similar to ENROUTE
UNKNOWN means an unknown type of failure

Treat unknown values as failure.


--
Des
NowSMS Support