I think Kannel doesn't support Clickatell's http api out of the box.
I remember people working on it. Google on the Kannel archives for that.

>From the userguide:

This special "SMSC" is used for HTTP based connections with other gateways
and various other relay services, when direct SMSC is not available.
....
This module can be easily adopted to other HTTP-based interfaces.


Rene Kluwen
Chimit

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Kamlesh Kumar
Sent: dinsdag 18 oktober 2005 7:01
To: users@kannel.org
Subject: HTTP APi's Configuration Problem in Kannel


Hi

I am trying to configure clickatell's http api in Kannel. Though, i have
configured that but i am not getting sms. When i get the status i get
following comments which show that sms was failed.
Here is the status.

------------------------------------------------------
Status: running, uptime 0d 0h 2m 12s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
DLR: 0 queued, using internal storage
Box connections:
    smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 26s)
SMSC connections:
    clickatell    HTTP:kannel (online 132s, rcvd 0, sent 0, failed 1, queued
0 msgs)
--------------------------------------------------------


Here is the kennel's configuration
--------------------------------------------------------
group = core
admin-port = 13000
admin-password = bar
status-password = foo
smsbox-port = 3001
admin-allow-ip = "192.168.2.45;127.0.0.1;200.100.0.*"
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/tmp/kannel-access.log"

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 3003
sendsms-chars = "0123456789 +-"
global-sender = Kamlesh
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsbox-access.log"

# SMSC HTTP
 group = smsc
 smsc = http
 smsc-id = clickatell
 system-type = kannel
 smsc-username = testme
 smsc-password = testme
 connect-allow-ip = "192.168.2.45;127.0.0.1;200.100.0.*"
 port = 13015
 send-url =
"http://api.clickatell.com/http/sendmsg?api_id=1234&user=testme&password=tes
tme"

# SEND-SMS USERS

group = sendsms-user
username = testme
password = testme

# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
text = "No Thanks"
-------------------------------------------------------
Here is the log for the transaction.
-------------------------------------------------------
2005-10-18 09:39:11 [2197] [14] DEBUG: Octet string dump ends.
2005-10-18 09:39:11 [2197] [14] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2005-10-18 09:39:11 [2197] [14] DEBUG: HTTP: Received response:
2005-10-18 09:39:11 [2197] [14] DEBUG: Octet string at 0x81d1f78:
2005-10-18 09:39:11 [2197] [14] DEBUG:   len:  223
2005-10-18 09:39:11 [2197] [14] DEBUG:   size: 1024
2005-10-18 09:39:11 [2197] [14] DEBUG:   immutable: 0
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 44 61 74 65 3a 20 54 75 65 2c
20 31 38 20 4f 63   Date: Tue, 18 Oc
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 74 20 32 30 30 35 20 30 34 3a
33 39 3a 30 37 20   t 2005 04:39:07
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 47 4d 54 0d 0a 53 65 72 76 65
72 3a 20 41 70 61   GMT..Server: Apa
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 63 68 65 2f 31 2e 33 2e 33 33
20 28 55 6e 69 78   che/1.3.33 (Unix
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 29 20 50 48 50 2f 34 2e 34 2e
30 20 6d 6f 64 5f   ) PHP/4.4.0 mod_
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 73 73 6c 2f 32 2e 38 2e 32 33
20 4f 70 65 6e 53   ssl/2.8.23 OpenS
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 53 4c 2f 30 2e 39 2e 37 61 0d
0a 58 2d 50 6f 77   SL/0.9.7a..X-Pow
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 65 72 65 64 2d 42 79 3a 20 50
48 50 2f 34 2e 34   ered-By: PHP/4.4
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 2e 30 0d 0a 54 72 61 6e 73 66
65 72 2d 45 6e 63   .0..Transfer-Enc
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 6f 64 69 6e 67 3a 20 63 68 75
6e 6b 65 64 0d 0a   oding: chunked..
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 43 6f 6e 74 65 6e 74 2d 54 79
70 65 3a 20 74 65   Content-Type: te
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 78 74 2f 68 74 6d 6c 0d 0a 0d
0a 49 44 3a 20 32   xt/html....ID: 2
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 63 62 34 34 63 31 31 36 30 66
30 64 65 33 63 33   cb44c1160f0de3c3
2005-10-18 09:39:11 [2197] [14] DEBUG:   data: 62 35 35 65 30 65 36 32 32 66
61 30 62 38 34      b55e0e622fa0b84
2005-10-18 09:39:11 [2197] [14] DEBUG: Octet string dump ends.
2005-10-18 09:39:19 [2197] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2005-10-18 09:39:19 [2197] [3] DEBUG: HTTP: Destroying HTTPClient area
0x81d1110.
2005-10-18 09:39:19 [2197] [3] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2005-10-18 09:39:24 [2197] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2005-10-18 09:39:24 [2197] [3] DEBUG: HTTP: Destroying HTTPClient area
0x81d1150.
2005-10-18 09:39:24 [2197] [3] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
-------------------------------------------------------


Please do help me. Thanks in advance.
Kamlesh Kumar




Reply via email to