Hi,

I am trying to setup a box as a sms gateway, but can't get beyond a
"queued for later delivery" message. unfortunately, i can't tell from
the log files what the problem is. My guess is that I need a "groups =
modems" entry in the kannel.conf file, but I don't know what that is
suppsed to look like for them modem. It is a zoom 3g mobile broadbend
modem, model 4596.

Here is my config:

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
smsbox-port = 13001
wapbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB0
my-number = 303XXXXXXX
connect-allow-ip = 127.0.0.1
log-file = "/var/log/kannel/smsc.log"
log-level = 0

group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
log-level = 0

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 303XXXXXXX
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

group = sendsms-user
username = kanneluser
password = df89asj89I23hvcxSDasdf3298jvkjc839
concatenation= true
max-messages = 10
#log-file = "/var/log/kannel/sendsms-user.log"
#log-level = 0

group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://localhost/sms?phone=%p&text=%a";

this is what the logfiles look like after startup and going to this url:
http://localhost:13013/cgi-bin/sendsms?username=kanneluser&password=df89asj89I23hvcxSDasdf3298jvkjc839&to=720XXXXXXX&text=Hello+world

bearerbox.log
2010-07-09 15:48:42 [7029] [0] INFO: ----------------------------------------
2010-07-09 15:48:42 [7029] [0] INFO: Kannel bearerbox II version 1.4.1 starting
2010-07-09 15:48:42 [7029] [0] INFO: MAIN: Start-up done, entering mainloop
2010-07-09 15:48:42 [7029] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
2010-07-09 15:48:42 [7029] [7] DEBUG: sms_router: gwlist_len = 0
2010-07-09 15:48:42 [7029] [14] DEBUG: Thread 14
(gw/bearerbox.c:wdp_router) maps to pid 7029.
2010-07-09 15:48:43 [7029] [5] INFO: Client connected from <127.0.0.1>
2010-07-09 15:48:43 [7029] [15] DEBUG: Thread 15
(gw/bb_boxc.c:function) maps to pid 7029.
2010-07-09 15:48:43 [7029] [5] DEBUG: Started thread 15 (gw/bb_boxc.c:function)
2010-07-09 15:48:43 [7029] [16] DEBUG: Thread 16
(gw/bb_boxc.c:boxc_sender) maps to pid 7029.
2010-07-09 15:48:43 [7029] [15] DEBUG: Started thread 16
(gw/bb_boxc.c:boxc_sender)
2010-07-09 15:48:43 [7029] [13] INFO: Client connected from <127.0.0.1>
2010-07-09 15:48:43 [7029] [17] DEBUG: Thread 17
(gw/bb_boxc.c:function) maps to pid 7029.
2010-07-09 15:48:43 [7029] [17] DEBUG: setting up systems for new wapbox
2010-07-09 15:48:43 [7029] [13] DEBUG: Started thread 17 (gw/bb_boxc.c:function)
2010-07-09 15:48:43 [7029] [18] DEBUG: Thread 18
(gw/bb_boxc.c:boxc_sender) maps to pid 7029.
2010-07-09 15:48:43 [7029] [17] DEBUG: Started thread 18
(gw/bb_boxc.c:boxc_sender)
2010-07-09 15:48:51 [7029] [15] DEBUG: boxc_receiver: sms received
2010-07-09 15:48:51 [7029] [15] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-07-09 15:48:51 [7029] [7] DEBUG: sms_router: handling message
(0x8192890 vs 0x8192890)
2010-07-09 15:48:51 [7029] [7] DEBUG: sms_router: handling message
(0x8192890 vs 0x8192890)
2010-07-09 15:48:51 [7029] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2010-07-09 15:49:21 [7029] [7] DEBUG: sms_router: gwlist_len = 1

smsc.log
2010-07-09 15:48:42 [7029] [6] DEBUG: AT2[/dev/ttyUSB0]: detecting modem speed.
2010-07-09 15:48:42 [7029] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-07-09 15:48:42 [7029] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-07-09 15:48:43 [7029] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
2010-07-09 15:48:43 [7029] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-07-09 15:48:43 [7029] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M

smsbox.log
2010-07-09 15:48:43 [7052] [0] DEBUG:
----------------------------------------------
2010-07-09 15:48:43 [7052] [0] DEBUG: Kannel smsbox version 1.4.1 starting
2010-07-09 15:48:43 [7052] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2010-07-09 15:48:43 [7052] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2010-07-09 15:48:43 [7052] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) maps to pid 7052.
2010-07-09 15:48:43 [7052] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) maps to pid 7052.
2010-07-09 15:48:43 [7052] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) maps to pid 7052.
2010-07-09 15:48:43 [7052] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2010-07-09 15:48:43 [7052] [0] INFO: Connected to bearerbox at
127.0.0.1 port 13001.
2010-07-09 15:48:43 [7052] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) maps to pid 7052.
2010-07-09 15:48:43 [7052] [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2010-07-09 15:48:51 [7052] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2010-07-09 15:48:51 [7052] [2] DEBUG: HTTP: Created HTTPClient area 0x81507c0.
2010-07-09 15:48:51 [7052] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2010-07-09 15:48:51 [7052] [3] INFO: sendsms used by <kanneluser>
2010-07-09 15:48:51 [7052] [3] INFO: sendsms
sender:<kanneluser:303XXXXXXX> (127.0.0.1) to:< 172XXXXXXX> msg:<Hello
worlds>
2010-07-09 15:48:51 [7052] [3] DEBUG: Stored UUID
522acda9-90bb-4482-9a66-947b27e596d8
2010-07-09 15:48:51 [7052] [3] DEBUG: message length 12, sending 1 messages
2010-07-09 15:48:51 [7052] [3] DEBUG: Status: 202 Answer: <Sent.>
2010-07-09 15:48:51 [7052] [3] DEBUG: Delayed reply - wait for bearerbox
2010-07-09 15:48:51 [7052] [0] DEBUG: Got ACK (3) of
522acda9-90bb-4482-9a66-947b27e596d8
2010-07-09 15:48:51 [7052] [0] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.

wapbox.log
2010-07-09 15:48:43 [7048] [0] INFO:
------------------------------------------------------------
2010-07-09 15:48:43 [7048] [0] INFO: Kannel wapbox version 1.4.1 starting up.
2010-07-09 15:48:43 [7048] [1] DEBUG: Thread 1
(wap/wsp_session.c:main_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 1
(wap/wsp_session.c:main_thread)
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 2
(wap/wsp_unit.c:main_thread)
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 3
(wap/wsp_push_client.c:main_thread)
2010-07-09 15:48:43 [7048] [2] DEBUG: Thread 2
(wap/wsp_unit.c:main_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [4] DEBUG: Thread 4
(wap/timers.c:watch_timers) maps to pid 7048.
2010-07-09 15:48:43 [7048] [3] DEBUG: Thread 3
(wap/wsp_push_client.c:main_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 4
(wap/timers.c:watch_timers)
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 5
(wap/wtp_resp.c:main_thread)
2010-07-09 15:48:43 [7048] [5] DEBUG: Thread 5
(wap/wtp_resp.c:main_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 6
(gw/wap-appl.c:main_thread)
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 7
(gw/wap-appl.c:return_replies_thread)
2010-07-09 15:48:43 [7048] [7] DEBUG: Thread 7
(gw/wap-appl.c:return_replies_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [6] DEBUG: Thread 6
(gw/wap-appl.c:main_thread) maps to pid 7048.
2010-07-09 15:48:43 [7048] [0] INFO: Connected to bearerbox at
localhost port 13002.
2010-07-09 15:48:43 [7048] [0] DEBUG: Started thread 8
(gw/heartbeat.c:heartbeat_thread)
2010-07-09 15:48:43 [7048] [8] DEBUG: Thread 8
(gw/heartbeat.c:heartbeat_thread) maps to pid 7048.

Any ideas???

Thanks,

Wolfgang

Reply via email to