
Dear late-night geeks who do kannel in the dark, I'm getting the output below from smsbox -v 0 /etc/kannel.conf: 2010-09-09 22:17:50 [13318] [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0 2010-09-09 22:17:50 [13318] [0] DEBUG: Loading include file `/etc/modems.conf' (on line 15 of file /etc/kannel.conf). 2010-09-09 22:17:50 [13318] [0] DEBUG: Kannel smsbox version `1.4.2'. Build `Jan 21 2009 15:21:38', compiler `4.1.2 20071124 (Red Hat 4.1.2-42)'. System Linux, release 2.6.18-164.el5, version #1 SMP Thu Sep 3 03:33:56 EDT 2009, machine i686. Hostname test.example.com, IP 127.0.0.1. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006. Using SQLite 3.3.6. Using native malloc. 2010-09-09 22:17:50 [13318] [0] INFO: HTTP: Opening server at port 13013. 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-09-09 22:17:50 [13318] [0] INFO: Set up send sms service at port 13013 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2010-09-09 22:17:50 [13318] [0] DEBUG: ---------------------------------------------- 2010-09-09 22:17:50 [13318] [0] DEBUG: Kannel smsbox version 1.4.2 starting 2010-09-09 22:17:50 [13318] [0] DEBUG: dumping group (sendsms-user): 2010-09-09 22:17:50 [13318] [0] DEBUG: <group> = <sendsms-user> 2010-09-09 22:17:50 [13318] [0] DEBUG: <max-messages> = <10> 2010-09-09 22:17:50 [13318] [0] DEBUG: <username> = <kanneluser> 2010-09-09 22:17:50 [13318] [0] DEBUG: <concatenation> = <true> 2010-09-09 22:17:50 [13318] [0] DEBUG: <password> = <password> 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2010-09-09 22:17:50 [13318] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 13318. 2010-09-09 22:17:50 [13318] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2010-09-09 22:17:50 [13318] [0] ERROR: connect failed 2010-09-09 22:17:50 [13318] [0] ERROR: System error 111: Connection refused 2010-09-09 22:17:50 [13318] [0] ERROR: error connecting to server `127.0.0.1' at port `13001' 2010-09-09 22:17:50 [13318] [0] PANIC: Couldn't connect to the bearerbox. 2010-09-09 22:17:50 [13318] [0] PANIC: smsbox(gw_panic+0xe2) [0x8088922] 2010-09-09 22:17:50 [13318] [0] PANIC: smsbox(main+0xf31) [0x8053f51] 2010-09-09 22:17:50 [13318] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x3b5e9c] 2010-09-09 22:17:50 [13318] [0] PANIC: smsbox [0x8052831] My kannel.conf looks as follows: group = core admin-port = 13000 admin-password = adminpwd #status-password = statpwd admin-deny-ip = "" admin-allow-ip = "*.*.*.*" smsbox-port = 13001 wapbox-port = 13002 box-deny-ip = "" box-allow-ip = "*.*.*.*" wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 1 include = "/etc/modems.conf" group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #global-sender = +254729xxxxxx log-level = 0 group = smsc smsc = fake device = /dev/ttyACM0 modemtype = auto #my-number = "FAKE" sms-center = +254722500029 speed = 0 host = localhost port = 13013 smsc-id = FAKE group = sendsms-user username = kanneluser password = password concatenation = true max-messages = 10 group = sms-service #keyword = keyword-regex = .* catch-all = yes max-messages = 1 get-url = "http://localhost/sms?phone=%p&text=%a" And my modems.conf is the default one that you find somewhere in the kannel documentation online [and shouldn't be an issue, I suppose]. What am I doing wrong? Me.

You config file seems to be mixing stuff up (i.e. smsc=fake you set device=/dev/ttyACM0 wont work!). Are you sure your modem is on /dev/ttyACM0 and not ACM1 or /dev/ttyUSB0 ? And I dont think the smsc group should have host and port values (unless you are working with the fake-smsc). And you cant just use the modems.conf as is, it has to match your modem. What modem are you using and whats the device i.e /dev/* ? Maybe I could help you out -Billy

Hi Billy, When I connect my Falcom GSM/GPRS modem then type dmesg, the last line reads cdc_acm 2-2:1.0: ttyACM0: USB ACM device Let me work on my modems.conf and see how it goes. Will keep you posted. Simon On 9 September 2010 23:40, Billy <billyx5@gmail.com> wrote:
You config file seems to be mixing stuff up (i.e. smsc=fake you set device=/dev/ttyACM0 wont work!). Are you sure your modem is on /dev/ttyACM0 and not ACM1 or /dev/ttyUSB0 ? And I dont think the smsc group should have host and port values (unless you are working with the fake-smsc).
And you cant just use the modems.conf as is, it has to match your modem. What modem are you using and whats the device i.e /dev/* ? Maybe I could help you out
-Billy
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Billy, There is a comment in my modems.conf that says, "If modemtype=auto, try everyone and defaults to this one". modemtype =auto in my kannel.conf so I guess it's cool, no? What sayest thou? Me On 10 September 2010 08:50, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Hi Billy,
When I connect my Falcom GSM/GPRS modem then type dmesg, the last line reads cdc_acm 2-2:1.0: ttyACM0: USB ACM device
Let me work on my modems.conf and see how it goes. Will keep you posted.
Simon
On 9 September 2010 23:40, Billy <billyx5@gmail.com> wrote:
You config file seems to be mixing stuff up (i.e. smsc=fake you set device=/dev/ttyACM0 wont work!). Are you sure your modem is on /dev/ttyACM0 and not ACM1 or /dev/ttyUSB0 ? And I dont think the smsc group should have host and port values (unless you are working with the fake-smsc).
And you cant just use the modems.conf as is, it has to match your modem. What modem are you using and whats the device i.e /dev/* ? Maybe I could help you out
-Billy
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Hi Simon, I think you need to have started bearerbox first, then smsbox. smsbox connects to an active bearerbox instance, and thats why you get the `connect failed` in your logs. On 10 September 2010 05:54, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Billy,
There is a comment in my modems.conf that says, "If modemtype=auto, try everyone and defaults to this one". modemtype =auto in my kannel.conf so I guess it's cool, no?
What sayest thou?
Me
On 10 September 2010 08:50, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Hi Billy,
When I connect my Falcom GSM/GPRS modem then type dmesg, the last line reads cdc_acm 2-2:1.0: ttyACM0: USB ACM device
Let me work on my modems.conf and see how it goes. Will keep you posted.
Simon
On 9 September 2010 23:40, Billy <billyx5@gmail.com> wrote:
You config file seems to be mixing stuff up (i.e. smsc=fake you set device=/dev/ttyACM0 wont work!). Are you sure your modem is on /dev/ttyACM0 and not ACM1 or /dev/ttyUSB0 ? And I dont think the smsc group should have host and port values (unless you are working with the fake-smsc).
And you cant just use the modems.conf as is, it has to match your modem. What modem are you using and whats the device i.e /dev/* ? Maybe I could help you out
-Billy
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Hi Kyalo, Thanks. It's running now, but I wanted it to run as a daemon. What I've done is bearerbox -v 0 /etc/kannel.conf & ; smsbox -v 0 /etc/kannel.conf When I do a service kannel start, it shows that bearerbox, smsbox and wapbox have all started, but when I do a service kannel status, none is running. So I think it was trying to start them all at once, i.e. without having smsbox waiting for bearerbox to start. Thanks man... Me On 10 September 2010 10:01, Ndungi Kyalo <ndungi@gmail.com> wrote:
Hi Simon,
I think you need to have started bearerbox first, then smsbox. smsbox connects to an active bearerbox instance, and thats why you get the `connect failed` in your logs.
On 10 September 2010 05:54, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Billy,
There is a comment in my modems.conf that says, "If modemtype=auto, try everyone and defaults to this one". modemtype =auto in my kannel.conf so I guess it's cool, no?
What sayest thou?
Me
On 10 September 2010 08:50, Simon Mbuthia <simon.mbuthia@gmail.com>wrote:
Hi Billy,
When I connect my Falcom GSM/GPRS modem then type dmesg, the last line reads cdc_acm 2-2:1.0: ttyACM0: USB ACM device
Let me work on my modems.conf and see how it goes. Will keep you posted.
Simon
On 9 September 2010 23:40, Billy <billyx5@gmail.com> wrote:
You config file seems to be mixing stuff up (i.e. smsc=fake you set device=/dev/ttyACM0 wont work!). Are you sure your modem is on /dev/ttyACM0 and not ACM1 or /dev/ttyUSB0 ? And I dont think the smsc group should have host and port values (unless you are working with the fake-smsc).
And you cant just use the modems.conf as is, it has to match your modem. What modem are you using and whats the device i.e /dev/* ? Maybe I could help you out
-Billy
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (3)
-
Billy
-
Ndungi Kyalo
-
Simon Mbuthia