Clickatell sms not being sent

  • F4Services
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #43186 by F4Services
Clickatell sms not being sent was created by F4Services
We have turned on the sms and its not working. We debugged it and found that it fails at function sendsms. In the api call api.clickatell.com/http/auth?user=xxxx it fails and hence it doesn't process any further. If we change this url to clickatells documented api which is api.clickatell.com/http/sendmsg?user=xxxx&password= [PASSWORD]&api_id=xxxxx&to=xxxxx&text=Message . Then the message is sent through fine. Can you shed some light on this please

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #43191 by Mr. Dam
Replied by Mr. Dam on topic Clickatell sms not being sent
Hi,
I am sure you were wrong when you debug the SMS sending function.
If you open file components > com_osservicesbooking > helpers > common.php function sendSMS
first part
$baseurl =" api.clickatell.com ";
$url = $baseurl."/http/auth?user=".$configClass;
$url .= "&password=".$configClass;
$url .= "&api_id=".$configClass;
$ret = file($url);

It is used to check the user information with username, password and api, when we get the data back from above url, we will have $sess_id, and we will use this value to send the sms in bellow code
if($configClass != ""){
$sender = "&from=".$configClass;
} else {
$sender = "";
}
if($configClass == "0"){
$url = $baseurl."/http/sendmsg?session_id=".$sess_id."&to=".$to.$sender."&concat=3&text=".$smscontent;
} else {
$url = $baseurl."/http/sendmsg?session_id=".$sess_id."&to=".$to.$sender."&unicode=1&concat=3&text=".self::utf16urlencode($smscontent);
}

This code works well with other customers, so please submit ticket and send your site information with super admin, ftp acc. I will check the issue for you
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • F4Services
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #43192 by F4Services
Replied by F4Services on topic Clickatell sms not being sent
Thank you for your response. After further debugging we realised there was a % in the username which was throwing it. This has now been resolved

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #43207 by Mr. Dam
Replied by Mr. Dam on topic Clickatell sms not being sent
Great! Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam