Simon icon Simon
Flexible server monitoring

Is there a way to add "from" and "mo" parameters to the Clickatell API call?

When I had the SMS notification running with a Clickatell test account, the messages were sent ok, but once I upgraded to their paid account, the messaged stopped being sent due to a "routing Error" (as reported by Clickatell.

As it turns out, sending SMS within North America requires that two additional http parameters get passed to the API: "from" (the two-way phone # set up in Clickatell) and "mo" (always 1). For example:

http://api.clickatell.com/http/sendmsg
?user=USERNAME
&password=PASSWORD
&api_id=APIID
&from=12125551212
&mo=1
&to=13241239876
&text=TestMessage

It seems like the notification config should allow Notrth American users to enter a from phone number. Or, is there a behind-the-scenes config file that can be edited to do this?

Thanks,
Steve

David Sinclair's picture

Re: Is there a way to add "from" and "mo" parameters to the ...

I'll make a note to enhance the SMS plugin to support that for the next version.

In the meantime, try adding the from and mo parameters after your API ID, e.g.

APIID&from=12125551212&mo=1

That might work.

Re: Is there a way to add "from" and "mo" parameters to the ...

David, that worked well. Thanks!