Question
I want to purchase SMS credit from Clickatell, but there is no gateway file for this provider. How do I configure this?
Answer
As per Knowledge base entry 962, it is possible to configure a custom SMS gateway for your GMS Mobile Gateway installation.
We have confirmed that the following ini file can be placed in the GordanoGateway folder, which will allow you to use Clickatell as your provider.
Comment=Clickatell SMS Service Gateway=SMS Type=POST Server=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
NOTE:
You will need to replace the entry marked with xxxxx with your Clickatell API ID number, which is supplied when you create an account with Clickatell. eg:
Template=api_id=12345
You can pass other values in the template as per the API for HTTP messages, which is available for download from Clickatell’s website.
One such value is the Validity period. The validity period determines how long the message should be retried if it is not sent immediately. The correct format for this entry for the Clickatell gateway is:
val_period=x
Where x is the value in minutes. So to set the validity period to 3 days (4320 minutes), your template would need to read as follows:
Template=api_id=xxxxx&user=%u%&password=%p%&to=%t%&text=%m%&from=%f%&val_period=4320
See Also:
Keywords:Clickatell, SMS, gateway, GSM