SMS Gateway Error (clickatell.com)

840 views
Skip to first unread message

kitich...@gmail.com

unread,
Feb 28, 2018, 4:51:58 AM2/28/18
to pwm-general
I setup Email/SMS Token password recovery The email is working good but SMS seem to be error I use clickatell.com service for testing
This is my configuration

SMS Gateway = https://api.clickatell.com/http/sendmsg
SMS Gateway Certificated = Import From Server
SMS Gateway User = Myu...@myuser.com
SMS Gateway Password = MYpassword
HTTP(S) Method = GET
SMS Gateway Authentication Method = Request - Authentication will be part of..
SMS Request Data = user=%USER%&password=%PASS%&api_id=aV_yv8XnSRiKruGIceE4MA==&to=%TO%&text=%MESSAGE%

(My API Key on clickatell is aV_yv8XnSRiKruGIceE4MA==

SMS Data Content Type = application/x-www.form-urlencoded
SMS Data Content Encoding = URL
SMS Phone Number Format = Plain

So I try to TEST SMS Settings

To = 66909620999 (Thailand Number +66909620999)
Message = Hi

And the result is

SMS Send Message Status
SMS INFO
message sent
SMS INFO
response body: ERR: 901, Internal error - please retry

And another question The phone number of AD User will locate at telephoneNumber attribute right so we need to put it in AD first , when user try to use SMS Token Forgot password tool they will use the number on AD right

Thank you very much.

pwmStudent

unread,
Mar 19, 2018, 4:12:44 PM3/19/18
to pwm-general
Have you found a solution yet?

I have setup an account with clickatell and testing worked. However, in production I keep getting the following error when I try to test from PWM:


SMS INFO
response body: {"messages":[],"errorCode":108,"error":"Invalid or missing integration API Key.","errorDescription":"The integration API key is either incorrect or has not been included in the API call."}

I am not exactly sure where I need to put the API key in pwm?

jason.e...@gmail.com

unread,
Mar 22, 2018, 9:34:27 AM3/22/18
to pwm-general
Yes you have to have the info in AD first using the attribute you specify, here is a screengrab of our current config, and yes, it works just fine, we send over 100 a day.

https://imgur.com/a/2y2CO

The API key goes in the GET url as a parameter.

pwmStudent

unread,
Mar 22, 2018, 11:37:39 AM3/22/18
to pwm-general

So I configured exactly like yours. It rejects http and demands https. So I changed it to https and get the following error when I send a test message:

unable to send message: 5078 ERROR_SMS_SEND_ERROR (result body did not matching any configured regex match settings)

The API code I get from Clickatell may be different from yours. This is what they have given me to use:

curl "https://platform.clickatell.com/messages/http/send?apiKey=xxxxxxxxxxxx==&to=1xxxxxxxxxx&content=Test+message+text&from=1xxx-xxx-xxxx"

You will notice "apiKey" instead of api_id for example and the URL is different.

jason.e...@gmail.com

unread,
Mar 22, 2018, 12:23:00 PM3/22/18
to pwm-general
You are on the newer clickatell 'Platform' , we are still on the console version.

When you make that call directly in your browser does it send?

Have you added the SSL CA certificate from clickatell? Thawte Primary Root CA

jason.e...@gmail.com

unread,
Mar 22, 2018, 12:26:43 PM3/22/18
to pwm-general
Also, when you call that in then browser you need to get your result message structure since you are on platform, it might not give the same result as mine, and then you edit the Response Regular Expressions section. Our return codes are OK and then the message ID:84894595945904 which the regex I use matches.

Jason

jason.e...@gmail.com

unread,
Mar 22, 2018, 12:36:43 PM3/22/18
to pwm-general
Yours would also look like below, you don't need a user or password field,

SMS Gateway: https://platform.clickatell.com/messages/http/send
SMS Request Data: apiKey=your123apikey&to=1%TO%&content=%MESSAGE%

pwmStuden

unread,
Mar 22, 2018, 12:49:12 PM3/22/18
to pwm-general

We are getting closer. I also have to add the from like so:
SMS Request Data: apiKey=your123apikey&to=1%TO%&content=%MESSAGE%&from=xxxx-yyy-zzzz.

It sends the test message but also throws an error:
SMS WARN
unable to send message: 5078 ERROR_SMS_SEND_ERROR (response result code 202 is not a configured successful result code)


sha...@belldex.com

unread,
Mar 22, 2018, 12:57:51 PM3/22/18
to pwm-general


To be clear, the text message is sent successfully then the error message is thrown.

jason.e...@gmail.com

unread,
Mar 22, 2018, 1:15:15 PM3/22/18
to pwm-general
Ok so within PWM section, Successful HTTP Result Codes change that to a 202 since that your success result code and not a 200

sha...@belldex.com

unread,
Mar 22, 2018, 1:26:45 PM3/22/18
to pwm-general
On Thursday, March 22, 2018 at 10:15:15 AM UTC-7, jason.e...@gmail.com wrote:
> Ok so within PWM section, Successful HTTP Result Codes change that to a 202 since that your success result code and not a 200

That worked. Thank you Jason, I really appreciate all your assistance.

Rashi Goyal

unread,
Apr 12, 2021, 3:19:30 AM4/12/21
to pwm-general
Hi,

I want to message using session id

now im trying to send message using this api

but this does not work gives me error ERR: 001, Authentication failed

can you please help
Reply all
Reply to author
Forward
0 new messages