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:
>     unknown    AT2[/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
> '+1111111'
> 2005-12-03 23:14:35 [30363] [0] INFO: Service global sender set as
> '+1111111'
> 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 server
> `localhost' at port `13001'
> 2005-12-03 23:14:35 [30363] [0] PANIC: Couldn't connect to the
> bearerbox.
> 2005-12-03 23:14:35 [30363] [0] PANIC: Couldn't connect to the
> bearerbox.
> 2005-12-03 23:14:35 [30363] [0] PANIC: /usr/sbin/smsbox(gw_panic+0xca)
> [0x807aeea]
> 2005-12-03 23:14:35 [30363] [0] PANIC: /usr/sbin/smsbox(gw_panic+0xca)
> [0x807aeea]
> 2005-12-03 23:14:35 [30363] [0] PANIC: [(nil)]
> 2005-12-03 23:14:35 [30363] [0] PANIC: [(nil)]
> 2005-12-03 23:14:35 [30379] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 30379.
> 2005-12-03 23:14:35 [30379] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 30379.
>
> Somehow it seems that it cannot connect to port 13001. But when I do a
> telnet connect to this port I get a connection:
>
> tux1 kannel # telnet localhost 13001
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
>
>
> My config (kannel.conf) looks like this:
>
> group = core
> admin-port = 13000
> admin-password = es74562
> status-password = es74562
> log-file = "kannel.log"
> log-level = 0
> smsbox-port = 13001
> box-allow-ip = "127.0.0.1"
> store-file = "kannel.store"
>
> # SMSC GSM
> group = smsc
> smsc = at
> modemtype = ericsson
> #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
> nokiaphone | ericsson
> device = /dev/tts/USB0
> pin = 5118
> validityperiod = 167
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> sendsms-chars = "0123456789 +-"
> global-sender = +41764729711
> log-file = "smsbox.log"
> log-level = 0
>
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
> # this sender is for Kannel relay testing (http_smsc)
>
> group = sendsms-user
> username = kannel
> password = rL4y
> user-deny-ip = "*.*.*.*"
> user-allow-ip = "127.0.0.1"
>
>
> # SMS SERVICES
>
> # SMS SERVICE Default
> # there should be default always
> group = sms-service
> keyword = default
> text = "No service specified"
>
> group = modems
> id = ericsson_t68
> name = "Ericsson T68"
> detect-string = "T68"
> init-string = "AT+CNMI=3,3"
> keepalive-cmd = "AT+CBC;+CSQ"
> broken = true
>
>
> Does anybody see what I'm doing wrong here?
> Thanks for any help.
>
> Regards,
> Marc

Reply via email to