Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
deeps Offline
New Member
 
Posts: 25
Join Date: Aug 2007
Change SMS gateway to Clickatell - 18-09-2007, 08:55 AM

SupportSuite 3.11.01 Stable


Not sure if this is an appropriate post or not as it potentially assists in bypassing a revenue source for Kayako which may upset some people (mods please delete if so!)

but here's a 2 liner change to change the sms gateway from using kayako's to using clickatell directly

edit /path/to/kayako/includes/functions_smsgateway.php

I've opted to hardcode my API ID, and have it pull out the user/pass from the database having set it through the admin interface. Potentially, you could make it pull out the API ID somehow too, but you're on your own for that

alter line34:
PHP Code:
$data implode(""file("http://api.clickatell.com/http/sendmsg?user=".urlencode($_SWIFT["settings"]["gateway_username"])."&password=".urlencode($_SWIFT["settings"]["gateway_password"]) ."&api_id=YOURAPIIDHERE&text=".urlencode($message)."&to=".urlencode($cellnumber))); 
and line36:
PHP Code:
if (substr(trim($data),0,2) != "ID" && $_SWIFT["settings"]["gat_emailfailure"] == 1) { 
Hope this helps,
Deeps.
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,579
Join Date: Jun 2005
Location: Cumbria, UK
18-09-2007, 09:01 AM

It isn't against the forum rules so should be fine.

Thanks for sharing with the community!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
jamesM Offline
Member
 
Posts: 51
Join Date: Jun 2006
16-10-2007, 04:44 AM

Thanks for this post very handy as my company use there own gatewasy. I have cleaned up the SMS and striped out the HTML and other funny non GSM letters. What I wanted to know is where is the lenght of the SMS stored as I can now increase this size of the message a bit.
   
Reply With Quote
  (#4) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,272
Join Date: Jan 2006
Location: United Kingdom
16-10-2007, 02:39 PM

No problem with this modification, thanks for posting


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
  • This is not an official support forum - submit a support ticket.
   
Reply With Quote
  (#5) Old
veoroj Offline
New Member
 
Posts: 1
Join Date: Oct 2007
19-10-2007, 09:00 AM

I want to send notifications to two (2) different mobile numbers located from different countries that's why I've bought two (2) API IDs at clickatell. Can I use both into kayako?
   
Reply With Quote
  (#6) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
May I a bit of help? - 19-10-2007, 10:56 PM

Hi guys, I'm trying to do a live trial for SupportSuite and it seems that it is quite the right solution for me. I'm not sure if I understood the previous post with changing SMS gateway details. Will it be sufficient to change lines 34 and 36 in the functions_smsgateway.php and get an account at clickatell.com? The only thing that I will need to do is enter my username and password that I registered at clickatell in CPU Optimization & Server, SMS Gateway section of administrator Settings?
If that is I am missing something. How can I get an alert sent to my cell after the submission of every ticket. Can it be only if the ticket is of High priority?

Sincerely and hopefully
Eugene
   
Reply With Quote
  (#7) Old
craigbrass Offline
Senior Member
 
Posts: 5,579
Join Date: Jun 2005
Location: Cumbria, UK
20-10-2007, 11:12 AM

Correct. Only those two lines need changing.

Once you have set this up (making sure you hard code in your clickatell details to the first line), go to each staff account you want to set up mailing for and put in their mobile number. Then, go Staff CP -> Tickets -> Alerts -> Insert Alert Rule. Select SMS as the Type and set up the rest how you want it.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#8) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
21-10-2007, 07:19 AM

Quote:
Originally Posted by craigbrass View Post

Once you have set this up (making sure you hard code in your clickatell details to the first line), go to each staff account you want to set up mailing for and put in their mobile number. Then, go Staff CP -> Tickets -> Alerts -> Insert Alert Rule. Select SMS as the Type and set up the rest how you want it.
Hm-m, I must be doing something wrong. This is my first line (line 34 from functions_smsgateway.php)

$data = implode("", file("http://api.clickatell.com/http/sendmsg?user=".urlencode($_SWIFT["settings
"]["zheka"])."&password=".urlencode($_SWIFT["settings"]["XXXXXX"]) ."&api_id=YOURAPIIDHERE&text=".u
rlencode($message)."&to=".urlencode($cellnumber))) ;

zheka is the username, XXXXXX is the password. What about &api_id? Should all other values be unchanged?

Is there any way to check whether the attempt to send the SMS through clickatel's SMS gateway was made? I didn't receive anything to my cell eventhough I configured myself as the member of staff and my cell number is present in the Mobile Phone Number field. The ticket was submitted from the Support Center page and I expected to receive SMS alert as the alert has been configured the way you described and I checked New Ticket as an Alert Event.

Sincerely
Eugene
   
Reply With Quote
  (#9) Old
craigbrass Offline
Senior Member
 
Posts: 5,579
Join Date: Jun 2005
Location: Cumbria, UK
21-10-2007, 01:53 PM

API ID is given to you by clickatell. This must be entered or the API will deny access.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#10) Old
zheka Offline
New Member
 
Posts: 20
Join Date: Oct 2007
21-10-2007, 06:58 PM

Quote:
Originally Posted by craigbrass View Post
API ID is given to you by clickatell. This must be entered or the API will deny access.
Sorry for being lame.
I believe that I subscribed for Clickatel Central (API), PEE892 is my ClientID. Should the line in functions_smsgateway.php read

$data = implode("", file("http://api.clickatell.com/http/sendmsg?user=".urlencode($_SWIFT["settings"]["zheka"])."&password=".urlencode($_SWIFT["settings"]["ks4rtm8b"]) ."&api_id=PEE892=".urlencode($message)."&to=".urle ncode($cellnumber)));

Eugene
   
Reply With Quote
  (#11) Old
craigbrass Offline
Senior Member
 
Posts: 5,579
Join Date: Jun 2005
Location: Cumbria, UK
21-10-2007, 07:32 PM

Code:
urlencode($_SWIFT["settings"]["zheka"])
That bit is wrong. Change zheka back to gateway_username and make sure the settings for the sms gateway are entered in the settings area (cpu optimization settings I think it is off the top of my head).


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#12) Old
Esendex Support Offline
New Member
 
Esendex Support's Avatar
 
Posts: 1
Join Date: Oct 2007
26-10-2007, 11:22 AM

Hi,
I've just replied to a support call from a company in Australia who are using Kayako now and wanted to integrate with the Esendex HTTP Form Post SMS Send service we offer. They saw this post and wanted to know how to do the same with their Esendex SMS account. I post this information as technical assistance to those people who want to do the same and integrate with Kayako:

The line 34 amendment that deeps posted should be amended to the following:

PHP Code:
$data implode(""file("https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx?username=".urlencode($_SWIFT["settings"]["gateway_username"])."&password=".urlencode($_SWIFT["settings"]["gateway_password"]) ."&account=EX000000&body=".urlencode($message)."&recipient=".urlencode($cellnumber))); 
where EX000000 is replaced by your Esendex account reference.

I don't have a copy of Kayako to test on and I'll feedback when I hear from our customer on how they found the integration after they've used it for a while.

Hope this helps
   
Reply With Quote
  (#13) Old
nibb Offline
Member
 
Posts: 89
Join Date: Feb 2007
10-11-2007, 06:44 PM

Thanks. Its not against Kayako in anyway. Actually it helps.

If someone wants to use the build in SMS of Kayako welcome. But when you pay so much for a software you are welcome to use any SMS gateway you want.

Even sales told me once i could use the Clickatell if directly if i wanted too.

Actually i dont, i use the Kayako build in system but there is a major problem with it.

When you run out of SMS credits since it cannot send the SMS it created a double reply every 5 minutes or so, everytime it tries to resend the SMS it just doubles the Ticket. After a day you have hundreds of double replies.

Also sometimes the SMS fails. At leat with my country it cannot send the SMS even when you have credits. I dont know if this is a Kayako problem or Clicktell but it just shows error on the SMS log.
   
Reply With Quote
  (#14) Old
vT16 Freddy Offline
New Member
 
Posts: 1
Join Date: Nov 2007
01-12-2007, 01:28 AM

Hello,

I openeded the file that you listed! But i just get a bunch of encryption code! I use the latest version of SupportSuite..

Any Ideas?
Thanks,
Freddy
   
Reply With Quote
  (#15) Old
craigbrass Offline
Senior Member
 
Posts: 5,579
Join Date: Jun 2005
Location: Cumbria, UK
01-12-2007, 08:59 AM

Only owned licence holders get full source code.

You can however contact Jamie (jamie.edwards <!AT!> kayako <!DOT!> com) and ask if you can have that file unencoded. He may provide it.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
clickatell, gateway, sms

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to change the SMS template rudier SupportSuite, eSupport and LiveResponse 5 10-08-2007 08:11 AM
SMS Gateway - T-mobile netmotiv8 SupportSuite, eSupport and LiveResponse 3 08-08-2006 12:06 PM
HOWTO: Setup SMS Gateway and Configure Alerts atech SupportSuite, eSupport and LiveResponse 0 03-04-2006 06:55 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46