Hi all I am a newbie to kannel. I need help with my kannel. It works fine but
when i try to send an sms i get "Unknown request". Where am i going wrong? I am
using playsms v0.9.5.3

Below is my smskannel configuration. I hav also included my kannel and smsbox
log outputs below.

Thanks for help

kavana


group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
smsbox-port = 13001
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

#---------------------------------------------
#SMSC CONNECTIONS
#
#SMSC connections are created in bearerbox and they handle SMSC specific
#protocol and message relying. You need these to actually receive and send
#messages to handset, but can use GSM modems as virtual SMSCs

#group = smsc
#smsc = fake
#smsc-id = FAKE

##tell kannel that we are going to use mobile as smsc
group = smsc
smsc-id = mysmsc
smsc = at
modemtype = auto
#device = /dev/modem
device = /dev/ttyUSB0
my-number = +xxxxxxxxxxxx
log-level = 0

#---------------------------------------------
#SMSBOX SETUP
#
#Smsbox(es) do higher-level SMS handling after they have been received from
#SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
smsbox-id = mysmsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = "+xxxxxxxxxxxx"
sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0

#---------------------------------------------
#SMSBOX ROUTE
#smsbox routing inside bearerbox
#
group = smsbox-route
smsbox-id = mysmsbox
smsc-id = mysmsc
shortcode = "1111;2222;3333"

#---------------------------------------------
#SEND-SMS USERS
#
#These users are used when Kannel smsbox sendsms interface is used to
#send PUSH sms messages, i.e. calling URL like
#http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar..

group = sendsms-user
username = tester
password = foobar
concatenation = true
max-messages = 10

#---------------------------------------------
#SERVICES
#
#These are 'responses' to sms PULL messages, i.e. messages arriving from
#handsets. The response is based on message content. Only one sms-service is
#applied, using the first one to match.
##Keyword: first word of sms msg sends sms msg to the right php-codes

group = sms-service
keyword = default
omit-empty = true
#get-url =
"http://localhost/kpsms/playsms/web/index.php?app=call&cat=gateway&;
plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q"

get-url =
"http://localhost/kpsms/playsms/plugin/gateway/kannel/geturl.php?
t=%t&q=%q&a=%a"

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

group = sms-service
keyword = default
text = "No service specified"

include = "/usr/local/src/gateway-1.5.0/gw/modems.conf"



my kannel log output
====================
...
...
2012-01-10 14:54:06 [28474] [0] DEBUG: Started thread 2 (gwlib/http.c:...)
2012-01-10 14:54:06 [28474] [2] DEBUG: Thread 2 (gwlib/http.c:...)
maps to pid 28474.
2012-01-10 14:54:06 [28474] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 28474.
2012-01-10 14:54:06 [28474] [2] DEBUG: HTTP: Including port 13000, fd 7 for
polling in server thread
2012-01-10 14:54:06 [28474] [0] DEBUG: starting smsbox connection module
2012-01-10 14:54:06 [28474] [0] INFO: BOXC: 'smsbox-max-p...
...

2012-01-10 14:54:16 [28474] [6] DEBUG: AT2[mysmsc]: <-- +CSMS: (0-1)
2012-01-10 14:54:16 [28474] [6] DEBUG: AT2[mysmsc]: <-- OK
2012-01-10 14:54:16 [28474] [6] INFO: AT2[mysmsc]: AT SMSC successfully opened.
2012-01-10 14:54:16 [28474] [6] DEBUG: AT2[mysmsc]: <-- OK
2012-01-10 14:54:16 [28474] [5] INFO: Client connected from <127.0.0.1> 
2012-01-10 14:54:16 [28474] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2012-01-10 14:54:16 [28474] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to
pid 28474.
2012-01-10 14:54:16 [28474] [8] DEBUG: boxc_receiver: got boxc_id<mysmsbox>
from <127.0.0.1>
2012-01-10 14:54:30 [28474] [8] DEBUG: boxc_receiver: sms received
2012-01-10 14:54:30 [28474] [8] DEBUG: send_msg: sending msg to boxc:<mysmsbox>
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: --> AT+CMGS=28^M
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: <-- >
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: send command status: 1
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: -->
0031000C915276091834820011A710723968FEFE815A20383B9C9F36A7
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: --> ^Z
2012-01-10 14:54:32 [28474] [6] DEBUG: AT2[mysmsc]: <-- >
2012-01-10 14:54:36 [28474] [6] DEBUG: AT2[mysmsc]: <-- +CMGS: 212
2012-01-10 14:54:36 [28474] [6] DEBUG: AT2[mysmsc]: <-- OK
2012-01-10 14:54:36 [28474] [6] DEBUG: AT2[mysmsc]: send command status: 0
2012-01-10 14:54:36 [28474] [6] DEBUG: DLR[internal]: Adding DLR smsc=mysmsc,
ts=212, src=+xxxxxxxxxxxx, dst=+yyyyyyyyyyyy, mask=31, boxc=mysmsbox
2012-01-10 14:54:36 [28474] [6] DEBUG: SMSC[mysmsc]: creating DLR message
2012-01-10 14:54:36 [28474] [6] DEBUG: SMSC[mysmsc]: DLR =
http://localhost:13013/kpsms//index.php?app=call&cat=gateway&plugin=kannel
&access=dlr&type=%d&slid=19&uid=1
2012-01-10 14:54:36 [28474] [9] DEBUG: send_msg: sending msg to boxc:<mysmsbox>
2012-01-10 14:54:36 [28474] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2012-01-10 14:54:36 [28474] [8] DEBUG: boxc_receiver: got ack
2012-01-10 14:54:47 [28474] [8] DEBUG: boxc_receiver: heartbeat with load value
0 received


my smsbox log output
====================
...
...

2012-01-10 14:54:16 [28484] [0] DEBUG: Kannel smsbox version 1.5.0 starting
2012-01-10 14:54:16 [28484] [0] DEBUG:   dumping group (sendsms-user):
2012-01-10 14:54:16 [28484] [0] DEBUG:     <group> = <sendsms-user>
2012-01-10 14:54:16 [28484] [0] DEBUG:     <max-messages> = <10>
2012-01-10 14:54:16 [28484] [0] DEBUG:     <username> = <tester>
2012-01-10 14:54:16 [28484] [0] DEBUG:     <concatenation> = <true>
2012-01-10 14:54:16 [28484] [0] DEBUG:     <password> = <foobar>
2012-01-10 14:54:16 [28484] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
...
...

2012-01-10 14:54:16 [28484] [0] DEBUG: Connecting to <127.0.0.1>
2012-01-10 14:54:16 [28484] [0] INFO: Connected to bearerbox at localhost port
13001.
...
...
2012-01-10 14:54:30 [28484] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2012-01-10 14:54:30 [28484] [3] INFO: sendsms used by <tester>
2012-01-10 14:54:30 [28484] [3] INFO: sendsms sender:<tester:+xxxxxxxxxxxx>
(127.0.0.1) to:<+yyyyyyyyyyyy> msg:<rr so? - playSMS>
2012-01-10 14:54:30 [28484] [3] DEBUG: Stored UUID
c98c15c2-887d-49c9-a667-2537f3eb29af
2012-01-10 14:54:30 [28484] [3] DEBUG: message length 16, sending 1 messages
2012-01-10 14:54:30 [28484] [3] DEBUG: Status: 202 Answer: <Sent.>
2012-01-10 14:54:30 [28484] [3] DEBUG: Delayed reply - wait for bearerbox
2012-01-10 14:54:30 [28484] [0] DEBUG: Got ACK (0) of
c98c15c2-887d-49c9-a667-2537f3eb29af
2012-01-10 14:54:36 [28484] [4] INFO: Starting delivery report <tester> from
<+256791936183>
2012-01-10 14:54:36 [28484] [4] DEBUG: Started thread 8 (gwlib/fdset.c:poller)
2012-01-10 14:54:36 [28484] [4] DEBUG: Started thread 9
(gwlib/http.c:write_request_thread)
2012-01-10 14:54:36 [28484] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) maps to pid 28484.
2012-01-10 14:54:36 [28484] [9] DEBUG: Queue contains 0 pending requests.
2012-01-10 14:54:36 [28484] [9] DEBUG: Parsing URL
`http://localhost:13013/kpsms//index.php?app=call&cat=gateway&plugin=kannel
&access=dlr&type=8&slid=19&uid=1':
2012-01-10 14:54:36 [28484] [9] DEBUG:   Scheme: http://
2012-01-10 14:54:36 [28484] [9] DEBUG:   Host: localhost
2012-01-10 14:54:36 [28484] [9] DEBUG:   Port: 13013
2012-01-10 14:54:36 [28484] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps to
pid 28484.
2012-01-10 14:54:36 [28484] [9] DEBUG:   Username: (null)
2012-01-10 14:54:36 [28484] [9] DEBUG:   Password: (null)
2012-01-10 14:54:36 [28484] [9] DEBUG:   Path: /kpsms//index.php
2012-01-10 14:54:36 [28484] [9] DEBUG:   Query:
app=call&cat=gateway&plugin=kannel&access=dlr&type=8&slid=19&uid=1
2012-01-10 14:54:36 [28484] [9] DEBUG:   Fragment: (null)
2012-01-10 14:54:36 [28484] [9] DEBUG: Connecting nonblocking to <127.0.0.1>
2012-01-10 14:54:36 [28484] [9] DEBUG: HTTP: Opening connection to
`localhost:13013' (fd=27).
2012-01-10 14:54:36 [28484] [9] DEBUG: Socket connecting
2012-01-10 14:54:36 [28484] [8] DEBUG: Get info about connecting socket
2012-01-10 14:54:36 [28484] [8] DEBUG: HTTP: Sending request:
2012-01-10 14:54:36 [28484] [8] DEBUG: Octet string at 0xb4e01010:
2012-01-10 14:54:36 [28484] [8] DEBUG:   len:  174
2012-01-10 14:54:36 [28484] [8] DEBUG:   size: 1024
2012-01-10 14:54:36 [28484] [8] DEBUG:   immutable: 0
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 47 45 54 20 2f 6b 70 73 6d 73 2f
2f 69 6e 64 65   GET /kpsms//inde
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 78 2e 70 68 70 3f 61 70 70 3d 63
61 6c 6c 26 63   x.php?app=call&c
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 61 74 3d 67 61 74 65 77 61 79 26
70 6c 75 67 69   at=gateway&plugi
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 6e 3d 6b 61 6e 6e 65 6c 26 61 63
63 65 73 73 3d   n=kannel&access=
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 64 6c 72 26 74 79 70 65 3d 38 26
73 6c 69 64 3d   dlr&type=8&slid=
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 31 39 26 75 69 64 3d 31 20 48 54
54 50 2f 31 2e   19&uid=1 HTTP/1.
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 31 0d 0a 48 6f 73 74 3a 20 6c 6f
63 61 6c 68 6f   1..Host: localho
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 73 74 3a 31 33 30 31 33 0d 0a 43
6f 6e 6e 65 63   st:13013..Connec
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 74 69 6f 6e 3a 20 6b 65 65 70 2d
61 6c 69 76 65   tion: keep-alive
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 0d 0a 55 73 65 72 2d 41 67 65 6e
74 3a 20 4b 61   ..User-Agent: Ka
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 6e 6e 65 6c 2f 31 2e 35 2e 30 0d
0a 0d 0a         nnel/1.5.0....
2012-01-10 14:54:36 [28484] [8] DEBUG: Octet string dump ends.
2012-01-10 14:54:36 [28484] [3] INFO: smsbox: Got HTTP request
</kpsms//index.php> from <127.0.0.1>
2012-01-10 14:54:36 [28484] [3] DEBUG: Status: 404 Answer: <Unknown request.>
2012-01-10 14:54:36 [28484] [8] DEBUG: HTTP: Received response:
2012-01-10 14:54:36 [28484] [8] DEBUG: Octet string at 0xb4e00df8:
2012-01-10 14:54:36 [28484] [8] DEBUG:   len:  165
2012-01-10 14:54:36 [28484] [8] DEBUG:   size: 1024
2012-01-10 14:54:36 [28484] [8] DEBUG:   immutable: 0
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 53 65 72 76 65 72 3a 20 4b 61 6e
6e 65 6c 2f 31   Server: Kannel/1
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 2e 35 2e 30 0d 0a 44 61 74 65 3a
20 54 75 65 2c   .5.0..Date: Tue,
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 20 31 30 20 4a 61 6e 20 32 30 31
32 20 31 34 3a    10 Jan 2012 14:
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 35 34 3a 33 36 20 47 4d 54 0d 0a
43 6f 6e 74 65   54:36 GMT..Conte
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 6e 74 2d 4c 65 6e 67 74 68 3a 20
31 36 0d 0a 43   nt-Length: 16..C
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 6f 6e 74 65 6e 74 2d 74 79 70 65
3a 20 74 65 78   ontent-type: tex
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 74 2f 68 74 6d 6c 0d 0a 50 72 61
67 6d 61 3a 20   t/html..Pragma: 
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 6e 6f 2d 63 61 63 68 65 0d 0a 43
61 63 68 65 2d   no-cache..Cache-
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 43 6f 6e 74 72 6f 6c 3a 20 6e 6f
2d 63 61 63 68   Control: no-cach
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 65 0d 0a 0d 0a 55 6e 6b 6e 6f 77
6e 20 72 65 71   e....Unknown req
2012-01-10 14:54:36 [28484] [8] DEBUG:   data: 75 65 73 74 2e                  
                 uest.
2012-01-10 14:54:36 [28484] [8] DEBUG: Octet string dump ends.
2012-01-10 14:55:36 [28484] [1] DEBUG: Timeout for fd:28 appeares.
2012-01-10 14:55:36 [28484] [8] DEBUG: HTTP: Server closed connection,
destroying it <localhost:13013:0::><0xb4c00ae0><fd:27>.




Reply via email to