Re: Trying to get kannel working with T68i connected
Hi Mark, Aparently the config file is right and it seems that bearerbox is up and running. So I can only guess: 1. You started smsbox before bearerbox (and that's because smsbox could not connect to bearerbox). You should start bearerbox first. 2. You are starting smsbox in another machine that bearerbox. Point 1 is the most probably ;-) Regards, Alberto On Saturday 03 December 2005 23:16, Marc Eggenberger wrote: Hi there. I'm new to kannel so please be patient with me ;-) I try to set up kannel 1.4.0 on a Gentoo System with kernel 2.6.13 I read the docs and tried to setup the corresponding kannel.conf but I seem to have some problems. I can connect to the admin interface and get the status: Kannel bearerbox version `1.4.0'. Build `Nov 10 2005 23:53:56', compiler `3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)'. System Linux, release 2.6.13-gentoo-r5, version #1 SMP Mon Oct 31 17:43:40 CET 2005, machine i686. Hostname tux1.devnull.ch, IP 213.144.141.120. Libxml version 2.6.22. Using OpenSSL 0.9.7e 25 Oct 2004. Using native malloc. Status: running, uptime 0d 0h 0m 43s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size 0 SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec DLR: 0 queued, using internal storage No boxes connected SMSC connections: unknownAT2[/dev/tts/USB0] (online 35s, rcvd 0, sent 0, failed 0, queued 0 msgs) But the smsbox.log gives me an error: 2005-12-03 23:14:35 [30363] [0] INFO: Starting to log to file smsbox.log level 0 2005-12-03 23:14:35 [30363] [0] INFO: Added logfile `smsbox.log' with level `0'. 2005-12-03 23:14:35 [30363] [0] INFO: Added logfile `smsbox.log' with level `0'. 2005-12-03 23:14:35 [30363] [0] INFO: Service global sender set as '+111' 2005-12-03 23:14:35 [30363] [0] INFO: Service global sender set as '+111' 2005-12-03 23:14:35 [30363] [0] INFO: HTTP: Opening server at port 13013. 2005-12-03 23:14:35 [30363] [0] INFO: HTTP: Opening server at port 13013. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2005-12-03 23:14:35 [30367] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 30367. 2005-12-03 23:14:35 [30367] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 30367. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2005-12-03 23:14:35 [30369] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 30369. 2005-12-03 23:14:35 [30369] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 30369. 2005-12-03 23:14:35 [30363] [0] INFO: Set up send sms service at port 13013 2005-12-03 23:14:35 [30363] [0] INFO: Set up send sms service at port 13013 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: -- 2005-12-03 23:14:35 [30363] [0] DEBUG: -- 2005-12-03 23:14:35 [30363] [0] DEBUG: Kannel smsbox version 1.4.0 starting 2005-12-03 23:14:35 [30363] [0] DEBUG: Kannel smsbox version 1.4.0 starting 2005-12-03 23:14:35 [30371] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 30371. 2005-12-03 23:14:35 [30371] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 30371. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2005-12-03 23:14:35 [30373] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 30373. 2005-12-03 23:14:35 [30373] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 30373. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-12-03 23:14:35 [30376] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 30376. 2005-12-03 23:14:35 [30376] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 30376. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-12-03 23:14:35 [30363] [0] ERROR: connect failed 2005-12-03 23:14:35 [30363] [0] ERROR: System error 111: Connection refused 2005-12-03 23:14:35 [30363] [0] ERROR: connect failed 2005-12-03 23:14:35 [30363] [0] ERROR: System error 111: Connection refused 2005-12-03 23:14:35 [30363] [0] ERROR: error connecting to server `localhost' at port `13001' 2005-12-03 23:14:35 [30363] [0] ERROR: error connecting to
Re: Trying to get kannel working with T68i connected
If you are starting bearerbox smsbox from a script: Try to put a sleep in between starting bearerbox smsbox consequently. Rene Kluwen Chimit Hi Mark, Aparently the config file is right and it seems that bearerbox is up and running. So I can only guess: 1. You started smsbox before bearerbox (and that's because smsbox could not connect to bearerbox). You should start bearerbox first. 2. You are starting smsbox in another machine that bearerbox. Point 1 is the most probably ;-) Regards, Alberto On Saturday 03 December 2005 23:16, Marc Eggenberger wrote: Hi there. I'm new to kannel so please be patient with me ;-) I try to set up kannel 1.4.0 on a Gentoo System with kernel 2.6.13 I read the docs and tried to setup the corresponding kannel.conf but I seem to have some problems. I can connect to the admin interface and get the status: Kannel bearerbox version `1.4.0'. Build `Nov 10 2005 23:53:56', compiler `3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)'. System Linux, release 2.6.13-gentoo-r5, version #1 SMP Mon Oct 31 17:43:40 CET 2005, machine i686. Hostname tux1.devnull.ch, IP 213.144.141.120. Libxml version 2.6.22. Using OpenSSL 0.9.7e 25 Oct 2004. Using native malloc. Status: running, uptime 0d 0h 0m 43s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size 0 SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec DLR: 0 queued, using internal storage No boxes connected SMSC connections: unknownAT2[/dev/tts/USB0] (online 35s, rcvd 0, sent 0, failed 0, queued 0 msgs) But the smsbox.log gives me an error: 2005-12-03 23:14:35 [30363] [0] INFO: Starting to log to file smsbox.log level 0 2005-12-03 23:14:35 [30363] [0] INFO: Added logfile `smsbox.log' with level `0'. 2005-12-03 23:14:35 [30363] [0] INFO: Added logfile `smsbox.log' with level `0'. 2005-12-03 23:14:35 [30363] [0] INFO: Service global sender set as '+111' 2005-12-03 23:14:35 [30363] [0] INFO: Service global sender set as '+111' 2005-12-03 23:14:35 [30363] [0] INFO: HTTP: Opening server at port 13013. 2005-12-03 23:14:35 [30363] [0] INFO: HTTP: Opening server at port 13013. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2005-12-03 23:14:35 [30367] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 30367. 2005-12-03 23:14:35 [30367] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 30367. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2005-12-03 23:14:35 [30369] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 30369. 2005-12-03 23:14:35 [30369] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 30369. 2005-12-03 23:14:35 [30363] [0] INFO: Set up send sms service at port 13013 2005-12-03 23:14:35 [30363] [0] INFO: Set up send sms service at port 13013 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: -- 2005-12-03 23:14:35 [30363] [0] DEBUG: -- 2005-12-03 23:14:35 [30363] [0] DEBUG: Kannel smsbox version 1.4.0 starting 2005-12-03 23:14:35 [30363] [0] DEBUG: Kannel smsbox version 1.4.0 starting 2005-12-03 23:14:35 [30371] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 30371. 2005-12-03 23:14:35 [30371] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 30371. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2005-12-03 23:14:35 [30373] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 30373. 2005-12-03 23:14:35 [30373] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 30373. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2005-12-03 23:14:35 [30376] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 30376. 2005-12-03 23:14:35 [30376] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 30376. 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-12-03 23:14:35 [30363] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2005-12-03 23:14:35 [30363] [0] ERROR: connect failed 2005-12-03 23:14:35 [30363] [0] ERROR: System error 111: Connection refused 2005-12-03 23:14:35 [30363] [0] ERROR: connect failed 2005-12-03 23:14:35 [30363] [0] ERROR: System error 111: Connection refused