I try to connect to clickatell with kannel on HTTP API. I had many problems and try to fix them. I have been reading source code and try to find the exact steps. As I couldn't find any good guide I think I can post my steps here for using by others.
this configuration of kannel work for me group = smsc smsc = http smsc-id = click system-id = xxxx #apiid system-type = clickatell smsc-username = xxx # username smsc-password = xxxx # password send-url = "http://api.clickatell.com/http/sendmsg" port = 13015 denied-smsc-id = modem allowed-smsc-id = click connect-allow-ip = "127.0.0.1;192.168.*.*;196.30.96.134" 196.30.96.134 this ip needed for callback from clickatell and callback url can be set as http://xxx.xxx.xxx.xxx:13015/cgi-bin/sendsms which set to your ip address and port this work with kannel 1.4.1 or newer it will handle all needed parameters and processes if you have problem on system-type=clickatell it was result of unknown clickatell and you should upgrade your kannel if you got authentication failed it is result of not sending api-id with system-type if you didn't get DLR it can be caused by blocked IP of clickatell if you want to send more parameters to server like cliMsgID or so on, you can use binfo. It will passed to clickatell like &binfo=cliMsgID%3D123 wich set client message id to 123. don't forget to encode the url like %3D instead of '=' sign. -- --Vahid Ghafarpour. http://vahid.ghafarpour.ir/ vahid at ghafarpour dot ir ghafarpour at gmail dot com
