I was able to configure Kannel for the first time on Ununtu using
this<http://niteen.me/blog/tutorials/configure-kannel-on-ubuntu.html>guide
after configuration I can send SMS messages but depending on my
init-string nothing happens when I receive a message or bearerbox crashes.
This is the first config file I started with which results in nothing
happening when receiving sms and printing the message

2013-03-11 15:32:04 [13026] [4] DEBUG: AT2[/dev/ttyUSB1]: <--
^SMMEMFULL:"SM"
2013-03-11 15:32:06 [13026] [4] DEBUG: AT2[/dev/ttyUSB1]: <--
^BOOT:29951431,0,0,0,6
2013-03-11 15:32:08 [13026] [4] DEBUG: AT2[/dev/ttyUSB1]: <--
^SMMEMFULL:"SM"


group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "172.16.0.2"
wapbox-port = 13001
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"

group = smsc
smsc = at
modemtype = huawei
device = /dev/ttyUSB1
speed = 19200
my-number = 17242345401
validityperiod = 167

group = modems
id = huawei_e220_00
name = "Huawei E220"
detect-string = "huawei"
init-string = "AT+CNMI=2,1,2,2,0"
message-storage = sm
speed = 460800

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"

group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 3

group = sms-service
keyword = default
get-url = "http://localhost/kannel/receivesms.php?sender=%p&amp;text=%b";
accept-x-kannel-headers = true
max-messages = 3
concatenation = true
catch-all = true


When I modify the modem group to the following below ( I have added a new
init-string to delete all messages in sim)

group = modems
id = huawei_e220_00
name = "Huawei E220"
detect-string = "huawei"
init-string = "AT+CNMI=2,1,2,2,0"
init-string = "AT+CMGD=4"
message-storage = sm
speed = 460800


I get the following error

2013-03-11 15:38:21 [13056] [4] DEBUG: AT2[/dev/ttyUSB1]: <--
07912160130320F5040B914121528432F000003130115123306905CAFAF97C06
2013-03-11 15:38:21 [13056] [4] DEBUG: AT2[/dev/ttyUSB1]: received message
from SMSC: +12063130025
2013-03-11 15:38:21 [13056] [4] DEBUG: AT2[/dev/ttyUSB1]: Numeric sender
(international) <+1MYPHONENUMBER>
2013-03-11 15:38:21 [13056] [4] DEBUG: AT2[/dev/ttyUSB1]: User data length
read as (5)
2013-03-11 15:38:21 [13056] [4] DEBUG: AT2[/dev/ttyUSB1]: Udh decoding done
len=5 udhi=0 udhlen=0 udh=''
2013-03-11 15:38:21 [13056] [4] PANIC: gwlib/gw-rwlock.c:137:
gw_rwlock_rdlock: Assertion `lock != NULL' failed.
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox(gw_rwlock_rdlock+0x6c)
[0x80c6f2c]
2013-03-11 15:38:21 [13056] [4] PANIC:
bearerbox(route_incoming_to_boxc+0x65) [0x8058725]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox(bb_smscconn_receive+0x5d8)
[0x805bda8]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox() [0x806c040]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox() [0x806d321]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox() [0x806d631]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox() [0x806f05f]
2013-03-11 15:38:21 [13056] [4] PANIC: bearerbox() [0x80c8b3b]
2013-03-11 15:38:21 [13056] [4] PANIC:
/lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0xb76f0d4c]
2013-03-11 15:38:21 [13056] [4] PANIC:
/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb6f18d3e]


What can I do to fix this?

Reply via email to