-------- Original Message --------
Subject:        Help in setting up SMS gateway with Clickatell
Date:   Tue, 13 Sep 2011 16:42:49 -0500
From:   Alvin Kuo <[email protected]>
To:     [email protected], [email protected]



Hi I am trying to integrate a SMS gateway with my application in an Amazon EC2 instance (Ubuntu Linux), and I downloaded, installed, and configured the conf file associated with Kannel. What I am trying to achieve is to have Kannel work with Clickatell to receive and send SMS's, and how it works is as follows: 1) Kannel receives SMS from Clickatell and parses the first word of the sent text to send to the appropriate url with sms-service group, 2) a php script will take in the data, send it to mysql database, and retrieves the necessary info to send back in a SMS, 3) the script signals Kannel to send the SMS to Clickatell to send to mobile phones. To my knowledge, this is doable through Kannel, and I do not want to use a GSM modem for increase in scaling of SMS volume. If there is a way to skip Clickatell, and still follow the outlined process of receiving and sending SMS, please inform me.

As of now it seems both the bearerbox and smsbox are working without errors, though I do need to exit out of PuTTY's SSH client after I run each box as it stalls in the command line. However, even when using the /lynx/ command inside Ubuntu, I cannot send messages through the normal way of the http interface suggested in the user manual (using this general command: /http://smsbox.localhost:port#/cgi-bin/sendsms?api_id=apiid#&username=clickatell username&password=clickatell password&from="From Align"&to=12345&text=Testing/), even when I open up access to the ports specified in smsc and smsbox group. From what I can tell, lynx does recognize the info after "/&from/" in the command above. Also do I need to make a script for Kannel to download the SMS from Clickatell?

Though I could set up Kannel on a local computer, it would better to set it up on the EC2 instance. As I have seen a few times when people sought help to connect to Clickatell, I can sure use your collective expertise to help me resolve this. Here are the relevant settings in the conf file.

*Omitted some details in the core group

group = core
admin-port = #####
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1";"196.30.96.134"
smsbox-port = 13728
store-type = spool
dlr-storage = "internal"

group = smsc
smsc = http
smsc-id = click
system-id = #apiid
system-type = clickatell
smsc-username = #clickatell username
smsc-password = #clickatell password
send-url = "http://api.clickatell.com/http/sendsmg";
log-file = "/var/log/kannel/smsc_http.log"
log-level = 0
port = 13493
connect-allow-ip = "127.0.0.1;192.168.*.*;196.30.96.134";

group = sendsms-user
username = clickatell username
password = clickatell password
user-allow-ip = "127.0.0.1";"196.30.96.134"
concatenation = true
max-messages = 10

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13728
log-file = "/var/log/kannel/smsbox.log"
log-level = 0


--
Alvin Kuo, Align Co-founder & CIO
(630)-729-4384 <tel:%28630%29-729-4384>


Reply via email to