Yohann Lucas wrote:
So I guess the modem of my mobile phone is recognized, but when I send
an sms using this request :
http://localhost:13013/cgi-bin/sendsms?username=***&password=****&to=%2B
33664210033&text=Hello+world
I have a 3: Queued for Later delivery

I'm having the same problem with Kannel running on Ubuntu Dapper (installed with APT) and a Nokia 6136 ; I can't find how to effectively send queued messages :

----kannel.conf-----

group = core
admin-port = 13000
admin-port-ssl = false
admin-password = foo
status-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
#udp-deny-ip = "*.*.*.*"
udp-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 1

group = wapbox
bearerbox-host = "127.0.0.1"
timer-freq = 1

group = smsbox
bearerbox-host = "127.0.0.1"
#bearerbox-port
sendsms-port = 13131
global-sender = 0605040302
group = sendsms-user
username = foo
password = bar

group = smsc
smsc-id = nokiaphone
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
speed = 9600
log-file = "/var/log/kannel/smsbox.log"
log-level = 1

group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true


- _launching the bearerbox_ :

$ sudo /usr/sbin/bearerbox & /etc/kannel/kannel.conf
[1] 11437
bash: /etc/kannel/kannel.conf: Permission denied
[EMAIL PROTECTED]:/etc/kannel$ 2007-03-27 17:55:32 [11437] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 2007-03-27 17:55:32 [11437] [0] WARNING: DLR: using default 'internal' for storage type.
2007-03-27 17:55:32 [11437] [0] INFO: DLR using storage type: internal
2007-03-27 17:55:32 [11437] [0] DEBUG: Kannel bearerbox version `1.4.0'.
Build `May 20 2006 02:45:36', compiler `4.0.3 (Ubuntu 4.0.3-1ubuntu5)'.
System Linux, release 2.6.15-28-server, version #1 SMP Thu Feb 1 16:58:14 UTC 2007, machine i686.
Hostname localhost, IP 127.0.0.1.
Libxml version 2.6.24.
Using OpenSSL 0.9.8a 11 Oct 2005.
Compiled with MySQL 5.0.21, using MySQL 5.0.22.
Using native malloc.

2007-03-27 17:55:32 [11437] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
2007-03-27 17:55:32 [11437] [0] INFO: HTTP: Opening server at port 13000.
2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2007-03-27 17:55:32 [11437] [0] DEBUG: starting smsbox connection module
2007-03-27 17:55:32 [11437] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2007-03-27 17:55:32 [11437] [0] INFO: DLR rerouting for smsc id <nokiaphone> disabled. 2007-03-27 17:55:32 [11437] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `1'. 2007-03-27 17:55:32 [11437] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 11437. 2007-03-27 17:55:32 [11437] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 11437. 2007-03-27 17:55:32 [11437] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 11437. 2007-03-27 17:55:32 [11437] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 11437. 2007-03-27 17:55:32 [11437] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 11437. 2007-03-27 17:55:32 [11437] [0] INFO: AT2[nokiaphone]: configuration shows modemtype <nokiaphone> 2007-03-27 17:55:32 [11437] [0] DEBUG: AT2[nokiaphone]: Reading modem definitions from <kannel.conf> 2007-03-27 17:55:32 [11437] [0] DEBUG: AT2[nokiaphone]: Found <1> modems in config 2007-03-27 17:55:32 [11437] [0] INFO: AT2[nokiaphone]: read modem definition for <Nokia Phone> 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2007-03-27 17:55:32 [11437] [0] DEBUG: starting UDP sender/receiver module
2007-03-27 17:55:32 [11437] [0] INFO: Adding interface *
2007-03-27 17:55:32 [11437] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200> 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender)2007-03-27 17:55:32 [11437] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201> 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 11 (gw/bb_udp.c:udp_sender)
2007-03-27 17:55:32 [11437] [0] DEBUG: starting wapbox connection module
2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 12 (gw/bb_boxc.c:wdp_to_wapboxes) 2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 13 (gw/bb_boxc.c:wapboxc_run)
2007-03-27 17:55:32 [11437] [0] DEBUG: starting WDP router
2007-03-27 17:55:32 [11437] [0] DEBUG: Started thread 14 (gw/bearerbox.c:wdp_router) 2007-03-27 17:55:32 [11437] [0] INFO: ---------------------------------------- 2007-03-27 17:55:32 [11437] [0] INFO: Kannel bearerbox II version 1.4.0 starting2007-03-27 17:55:32 [11437] [0] INFO: MAIN: Start-up done, entering mainloop
2007-03-27 17:55:32 [11437] [0] DEBUG: AT2[nokiaphone]: start called
2007-03-27 17:55:32 [11437] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 11437. 2007-03-27 17:55:32 [11437] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/smsbox.log' with level `1'. 2007-03-27 17:55:32 [11437] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 11437.
2007-03-27 17:55:32 [11437] [7] DEBUG: sms_router: time to sleep
2007-03-27 17:55:32 [11437] [7] DEBUG: sms_router: gwlist_len = 0
2007-03-27 17:55:32 [11437] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 11437. 2007-03-27 17:55:32 [11437] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 11437. 2007-03-27 17:55:32 [11437] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) maps to pid 11437. 2007-03-27 17:55:32 [11437] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) maps to pid 11437. 2007-03-27 17:55:32 [11437] [12] DEBUG: Thread 12 (gw/bb_boxc.c:wdp_to_wapboxes) maps to pid 11437. 2007-03-27 17:55:32 [11437] [13] DEBUG: Thread 13 (gw/bb_boxc.c:wapboxc_run) maps to pid 11437. 2007-03-27 17:55:32 [11437] [14] DEBUG: Thread 14 (gw/bearerbox.c:wdp_router) maps to pid 11437. 2007-03-27 17:55:56 [11437] [5] DEBUG: Started thread 15 (gw/bb_boxc.c:function)2007-03-27 17:55:56 [11437] [15] DEBUG: Thread 15 (gw/bb_boxc.c:function) maps to pid 11437.
2007-03-27 17:55:56 [11437] [15] INFO: Client connected from <127.0.0.1>
2007-03-27 17:55:56 [11437] [15] DEBUG: Started thread 16 (gw/bb_boxc.c:boxc_sender) 2007-03-27 17:55:56 [11437] [16] DEBUG: Thread 16 (gw/bb_boxc.c:boxc_sender) maps to pid 11437. 2007-03-27 17:56:50 [11437] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2007-03-27 17:56:50 [11437] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2007-03-27 17:56:51 [11437] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
2007-03-27 17:56:59 [11437] [15] DEBUG: boxc_receiver: sms received
2007-03-27 17:56:59 [11437] [15] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2007-03-27 17:56:59 [11437] [7] DEBUG: sms_router: time to sleep
2007-03-27 17:57:04 [11437] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.


- _launching the smsbox_ :

$ sudo /usr/sbin/smsbox & /etc/kannel/kannel.conf
[1] 11495
bash: /etc/kannel/kannel.conf: Permission denied
[EMAIL PROTECTED]:/etc/kannel$ 2007-03-27 17:55:56 [11495] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2007-03-27 17:55:56 [11495] [0] DEBUG: Kannel smsbox version `1.4.0'.
Build `May 20 2006 02:45:36', compiler `4.0.3 (Ubuntu 4.0.3-1ubuntu5)'.
System Linux, release 2.6.15-28-server, version #1 SMP Thu Feb 1 16:58:14 UTC 2007, machine i686.
Hostname localhost, IP 127.0.0.1.
Libxml version 2.6.24.
Using OpenSSL 0.9.8a 11 Oct 2005.
Compiled with MySQL 5.0.21, using MySQL 5.0.22.
Using native malloc.

2007-03-27 17:55:56 [11495] [0] INFO: Service global sender set as '0605040302'
2007-03-27 17:55:56 [11495] [0] INFO: HTTP: Opening server at port 13131.
2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2007-03-27 17:55:56 [11495] [0] INFO: Set up send sms service at port 13131
2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2007-03-27 17:55:56 [11495] [0] DEBUG: ----------------------------------------------
2007-03-27 17:55:56 [11495] [0] DEBUG: Kannel smsbox version 1.4.0 starting
2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2007-03-27 17:55:56 [11495] [0] INFO: Connected to bearerbox at 127.0.0.1 port 13001. 2007-03-27 17:55:56 [11495] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2007-03-27 17:55:56 [11495] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 11495. 2007-03-27 17:55:56 [11495] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 11495. 2007-03-27 17:55:56 [11495] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 11495. 2007-03-27 17:55:56 [11495] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 11495. 2007-03-27 17:55:56 [11495] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 11495. 2007-03-27 17:55:56 [11495] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 11495. 2007-03-27 17:55:56 [11495] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 11495. 2007-03-27 17:56:59 [11495] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2007-03-27 17:56:59 [11495] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2007-03-27 17:56:59 [11495] [3] INFO: sendsms used by <foo>
2007-03-27 17:56:59 [11495] [3] INFO: sendsms sender:<foo:0605040302> (127.0.0.1) to:<0605040302> msg:<Hello world>
2007-03-27 17:56:59 [11495] [3] DEBUG: message length 11, sending 1 messages
2007-03-27 17:56:59 [11495] [3] DEBUG: Status: 202 Answer: <Sent.>
2007-03-27 17:56:59 [11495] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2007-03-27 17:56:59 [11495] [3] INFO: smsbox: Got HTTP request </favicon.ico> from <127.0.0.1> 2007-03-27 17:56:59 [11495] [3] DEBUG: Status: 404 Answer: <Unknown request.> 2007-03-27 17:56:59 [11495] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.


- _HTTP interface_ :

Kannel bearerbox version `1.4.0'. Build `May 20 2006 02:45:36', compiler `4.0.3 (Ubuntu 4.0.3-1ubuntu5)'. System Linux, release 2.6.15-28-server, version #1 SMP Thu Feb 1 16:58:14 UTC 2007, machine i686. Hostname localhost, IP 127.0.0.1. Libxml version 2.6.24. Using OpenSSL 0.9.8a 11 Oct 2005. Compiled with MySQL 5.0.21, using MySQL 5.0.22. Using native malloc.

Status: running, uptime 0d 0h 1m 32s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (*1 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 8s)
SMSC connections:
nokiaphone AT2[nokiaphone] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs)


- _stopping the bearerbox process_ :

$ sudo kill 11437
[EMAIL PROTECTED]:/etc/kannel$ 2007-03-27 17:58:33 [11437] [0] WARNING: Killing signal or HTTP admin command received, shutting down...
2007-03-27 17:58:33 [11437] [0] DEBUG: Shutting down Kannel...
2007-03-27 17:58:33 [11437] [0] DEBUG: shutting down smsc
2007-03-27 17:58:33 [11437] [0] DEBUG: AT2[nokiaphone]: Shutting down SMSCConn, slow
2007-03-27 17:58:33 [11437] [0] DEBUG: shutting down udp
2007-03-27 17:58:33 [11437] [0] DEBUG: udp_shutdown: Starting avalanche
2007-03-27 17:58:33 [11437] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) termi nates.
2007-03-27 17:58:33 [11437] [7] DEBUG: sms_router: gwlist_len = 1
2007-03-27 17:58:33 [11437] [12] DEBUG: wdp_to_wapboxes: destroying lists
2007-03-27 17:58:33 [11437] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) terminates. 2007-03-27 17:58:33 [11437] [12] DEBUG: Thread 12 (gw/bb_boxc.c:wdp_to_wapboxes) terminates. 2007-03-27 17:58:34 [11437] [13] DEBUG: Thread 13 (gw/bb_boxc.c:wapboxc_run) terminates. 2007-03-27 17:58:34 [11437] [14] DEBUG: udp_die: removing producers from udp-lis ts 2007-03-27 17:58:34 [11437] [14] DEBUG: Thread 14 (gw/bearerbox.c:wdp_router) terminates. 2007-03-27 17:58:34 [11437] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) terminates. 2007-03-27 17:58:34 [11437] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) terminates. 2007-03-27 17:58:34 [11437] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates. 2007-03-27 17:58:34 [11437] [16] DEBUG: send_msg: sending msg to box: <127.0.0.1 > 2007-03-27 17:58:34 [11437] [16] DEBUG: Thread 16 (gw/bb_boxc.c:boxc_sender) terminates. 2007-03-27 17:58:35 [11437] [15] INFO: Connection closed by the box <127.0.0.1> 2007-03-27 17:58:35 [11437] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates. 2007-03-27 17:58:35 [11437] [15] DEBUG: Thread 15 (gw/bb_boxc.c:function) terminates. 2007-03-27 17:58:35 [11437] [0] INFO: All flow threads have died, killing core 2007-03-27 17:58:35 [11437] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates. 2007-03-27 17:58:35 [11437] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread ) to terminate 2007-03-27 17:58:35 [11437] [3] DEBUG: HTTP: No clients with requests, quitting. 2007-03-27 17:58:36 [11437] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates. 2007-03-27 17:58:36 [11437] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2007-03-27 17:58:36 [11437] [1] WARNING: Destroying fdset with 1 active entries. 2007-03-27 17:58:36 [11437] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminate s.
2007-03-27 17:58:36 [11437] [0] INFO: Total WDP messages: received 0, sent 0
2007-03-27 17:58:36 [11437] [0] INFO: Total SMS messages: received 0, sent 0
2007-03-27 17:58:36 [11437] [0] DEBUG: Immutable octet strings: 313.

[1]+  Done                    sudo /usr/sbin/bearerbox

Could someone, please, enlighten us ?

--
kael


Reply via email to