Hi, 

Another point, did you see the warning:

> 2010-05-20 23:37:13 [29185] [0] WARNING: bool variable set to strange
> value, assuming 'true'

In your conf file, try change this property:

> transceiver-mode=1

to:
> transceiver-mode=true

This is not the root problem, just a suggestion. Updating Kannel version as 
Nikos mentioned is more relevant.

Regards,
Anderson


________________________________
De: Nikos Balkanas <nbalka...@gmail.com>
Para: Barry Murphy <ba...@unix.co.nz>; users@kannel.org
Enviadas: Sexta-feira, 21 de Maio de 2010 1:51:59
Assunto: Re: Problem with smsbox PANIC gwlib/conn.c:197

Hi,

Please download latest svn (or cvs) and install. 1.4.1 is ~10 y old(?).

Retry and repost.

Nikos
----- Original Message ----- 
From: "Barry Murphy" <ba...@unix.co.nz>
To: <users@kannel.org>
Sent: Friday, May 21, 2010 2:41 AM
Subject: Problem with smsbox PANIC gwlib/conn.c:197


> Hi,
>
> I'm new to kannel however have it all working except the smsbox to allow
> me to send SMS messages. smsbox starts as it should and I see the 
> following
> debug details:
> smsc:/etc/kannel# smsbox
> 2010-05-20 23:37:13 [29185] [0] INFO: Debug_lvl = -1, log_file = <none>,
> log_lvl = 0
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Kannel smsbox version `1.4.1'.
> Build `Oct 17 2006 02:55:06', compiler `4.1.2 20061007 (prerelease)
> (Debian 4.1.1-16)'.
> System Linux, release 2.6.18.8.xs5.5.0.13.442, version #1 SMP Wed Nov 11
> 12:01:55 UTC 2009, machine i686.
> Hostname smsc.unix.co.nz, IP 127.0.0.1.
> Libxml version 2.6.26.
> Using OpenSSL 0.9.8c 05 Sep 2006.
> Compiled with MySQL 5.0.24a, using MySQL 5.0.32.
> Using native malloc.
>
> 2010-05-20 23:37:13 [29185] [0] INFO: Starting to log to file
> /var/log/kannel/smsbox.log level 0
> 2010-05-20 23:37:13 [29185] [0] INFO: Added logfile
> `/var/log/kannel/smsbox.log' with level `0'.
> 2010-05-20 23:37:13 [29185] [0] INFO: Service global sender set as
> '6121234567'
> 2010-05-20 23:37:13 [29185] [0] INFO: HTTP: Opening server at port 13013.
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2010-05-20 23:37:13 [29185] [0] INFO: Set up send sms service at port
> 13013
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 3
> (gw/smsbox.c:sendsms_thread)
> 2010-05-20 23:37:13 [29185] [0] DEBUG:
> ----------------------------------------------
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Kannel smsbox version 1.4.1
> starting
> 2010-05-20 23:37:13 [29185] [0] WARNING: bool variable set to strange
> value, assuming 'true'
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 4
> (gw/smsbox.c:obey_request_thread)
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2010-05-20 23:37:13 [29185] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2010-05-20 23:37:13 [29185] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
> maps to pid 29185.
> 2010-05-20 23:37:13 [29185] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 29185.
> 2010-05-20 23:37:13 [29185] [3] DEBUG: Thread 3
> (gw/smsbox.c:sendsms_thread) maps to pid 29185.
> 2010-05-20 23:37:13 [29185] [4] DEBUG: Thread 4
> (gw/smsbox.c:obey_request_thread) maps to pid 29185.
> 2010-05-20 23:37:13 [29185] [5] DEBUG: Thread 5
> (gw/smsbox.c:url_result_thread) maps to pid 29185.
> 2010-05-20 23:37:13 [29185] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 29185.
>
> I then try send a message using the HTTP interface and the following
> appears in my debug and smsbox dies:
> 2010-05-20 23:37:48 [29185] [2] DEBUG: HTTP: Creating HTTPClient for
> `58.28.1.1'.
> 2010-05-20 23:37:48 [29185] [2] DEBUG: HTTP: Created HTTPClient area
> 0x8154568.
> 2010-05-20 23:37:48 [29185] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <58.28.1.1>
> 2010-05-20 23:37:48 [29185] [3] INFO: sendsms used by <userid>
> 2010-05-20 23:37:48 [29185] [3] INFO: sendsms sender:<userid:6121234567>
> (58.28.1.1) to:<64123456> msg:<Hello world>
> 2010-05-20 23:37:48 [29185] [3] DEBUG: Stored UUID
> dae04655-8875-44bf-91bc-b73273dfc8ae
> 2010-05-20 23:37:48 [29185] [3] DEBUG: message length 11, sending 1
> messages
> 2010-05-20 23:37:48 [29185] [3] PANIC: gwlib/conn.c:197: lock_out:
> Assertion `conn != NULL' failed.
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox(gw_panic+0x101) [0x8087051]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox(conn_write_withlen+0x1a8)
> [0x8077658]
> 2010-05-20 23:37:48 [29185] [3] PANIC:
> smsbox(write_to_bearerbox_real+0x2b) [0x80625bb]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox(write_to_bearerbox+0x1a)
> [0x806261a]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox [0x8054921]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox [0x8055d7a]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox [0x8059ce1]
> 2010-05-20 23:37:48 [29185] [3] PANIC: smsbox [0x807e310]
> 2010-05-20 23:37:48 [29185] [3] PANIC: /lib/tls/libpthread.so.0
> [0xb7f130bd]
> 2010-05-20 23:37:48 [29185] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5e)
> [0xb7a7701e]
> smsc:/etc/kannel#
>
> I have found many examples of people having issues from gwlib/conn.c:198
> but none like I'm seeing at gwlib/conn.c:197 .
>
> My configuration is as follows:
> smsc:/etc/kannel# cat kannel.conf
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> log-file = "/tmp/kannel.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group=smsc
> smsc=smpp
> smsc-id=internal
> interface-version=34
> host=myhostforSMPP
> port=7900
> system-id=mySMPPuser
> smsc-password=mySMPPpass
> system-type=default
> transceiver-mode=1
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> smsbox-id=asmsbox
> sendsms-port = 13013
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
> global-sender = 6121234567
>
> group = sendsms-user
> username = user
> password = pass
> concatenation= true
> max-messages = 10
>
> # SMS SERVICE 'default'
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
> catch-all = true # Catch all incoming messages
>                # regarding the keyword. If you
>                # define other services, remove
>                # this line.
> group = sms-service
> keyword = default
> #text = "No service specified"
> text=<480 Characters with spaces>
> concatenation=true
> max-messages=5
> smsc:/etc/kannel#
>
>
> bearerbox is running fine and I can see it downloading delivery status
> messages for the messages being sent from another host, so it appears this
> portion is working fine. My initial install was done using debian etch
> apt-get install kannel libxml2. I later downloaded the latest libxml2 and
> latests stable kannel from their websites and installed it, thinking that
> this may be an old box.
>
> Any help would be much appreciated.
>
> thanks
> Barry Murphy
>
>
>
> 


      

Reply via email to