Why do my attempts to send SMS messages sometimes fail?

  1. Home
  2. Knowledge Base
  3. GMS
  4. Why do my attempts to send SMS messages sometimes fail?

Question

Occasionally when I send an SMS the send appears to fail, I get a popup warning dialogue and a failure shown in my WWW log. What can cause this?

Answer

In previous releases the default timeout for contacting SMS gateways was set to 10 seconds, this default limit has now been raised to 30 seconds as occasionally the SMS Gateway provider may take longer than 10 seconds to respond.

If you find that the SMS send is still timing out trying to connect to the SMS Gateway there are now two options that can be added to the ini file for the gateway in question.

SendTimeout
ReceiveTimeout

Both of these are set in seconds and each should be added on a line of there own to the gateway ini file. The following example shows how the ini file for an account with Clickatell would look with the two new entries, both set to 45 seconds

Comment=Clickatell SMS Service
Gateway=SMS
Type=POST
Serve,r=api.clickatell.com
Script=/http/sendmsg?
Template=api_id=xxxxx&user=%u%&password=%p%&to=%t%&text=%m%&from=%f%
OKResponse=ID:
StripLeadingZero=yes
MaxLength=160
SendTimeout=45
ReceiveTimeout=45

See Also:

Keywords:SMS timeout failure

Was this article helpful?

Related Articles