Hi, All

Right now I'm using kannel with latest CVS running on Fedora Core 6.
Testing with kannel using wavecom fasttrack 1306B as virtual SMSC.
It is running fine when I'm sending sms without asking DLR with this command

links -dump
"http://127.0.0.1:13013/cgi-bin/sendsms?username=XXX&password=XXX&from=+XXXX
XXXXXX&to=+XXXXXXXX&text=Hello+World"

We can send the message.

But, when we are asking DLR while sending sms with command below 

links -dump
"http://127.0.0.1:13013/cgi-bin/sendsms?username=XXX&password=XXX&from=+XXXX
XXXXXX&to=+XXXXXXXX&dlr-mask=31&text=Hello+World"

kannel is consuming my memory and finally panic.
This is my bearerbox log

2007-04-19 22:24:15 [7915] [6] DEBUG: AT2[wavecom]: --> AT+CMGS=24^M
2007-04-19 22:24:15 [7915] [6] DEBUG: AT2[wavecom]: <-- >
2007-04-19 22:24:15 [7915] [6] DEBUG: AT2[wavecom]: send command status: 1
2007-04-19 22:24:15 [7915] [6] DEBUG: AT2[wavecom]: -->
0031000C812618822170870000A70BC8329BFD065DDF723619
2007-04-19 22:24:15 [7915] [6] DEBUG: AT2[wavecom]: --> ^Z
2007-04-19 22:24:17 [7915] [6] DEBUG: AT2[wavecom]: <-- >
2007-04-19 22:24:17 [7915] [6] DEBUG: AT2[wavecom]: <-- +CMGS: 24
2007-04-19 22:24:17 [7915] [6] DEBUG: AT2[wavecom]: <-- OK
2007-04-19 22:24:17 [7915] [6] DEBUG: AT2[wavecom]: send command status: 0
2007-04-19 22:24:17 [7915] [6] DEBUG: DLR[mysql]: Adding DLR smsc=wavecom,
ts=24, src= XXXXXXXXXX, dst=XXXXXXXXXXX, mask=31, boxc=
2007-04-19 22:24:17 [7915] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts,
source, destination, service, url, mask, boxc, status) VALUES ('wavecom',
'24', ' XXXXXXXXXX', 'XXXXXXXXXXX', 'ade', '', '31', '', '0');
2007-04-19 22:24:17 [7915] [6] DEBUG: SMSC[wavecom]: creating DLR message
2007-04-19 22:24:17 [7915] [6] DEBUG: SMSC[wavecom]: DLR = 
2007-04-19 22:24:17 [7915] [16] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2007-04-19 22:24:17 [7915] [16] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2007-04-19 22:24:17 [7915] [15] DEBUG: boxc_receiver: got ack
2007-04-19 22:24:24 [7915] [6] DEBUG: AT2[wavecom]: <-- +CDS: 25
2007-04-19 22:24:24 [7915] [6] DEBUG: AT2[wavecom]: <--
0006180C81261882217087704091224212827040912242128200
2007-04-19 22:24:30 [7915] [15] DEBUG: boxc_receiver: heartbeat with load
value 0 received
2007-04-19 22:25:59 [7915] [6] PANIC: Memory re-allocation failed
2007-04-19 22:25:59 [7915] [6] PANIC: System error 12: Cannot allocate
memory
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox(gw_panic+0xc2)
[0x80c6652]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox(gw_native_realloc+0x3e)
[0x80bc5ce]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox [0x80c70fd]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox(octstr_insert_data+0x3c)
[0x80c897c]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox(octstr_append_char+0x2d)
[0x80c8a9d]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox [0x8068c8b]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox [0x806bee7]
2007-04-19 22:26:01 [7915] [6] PANIC: gw/bearerbox [0x80bdf41]
2007-04-19 22:26:01 [7915] [6] PANIC: /lib/libpthread.so.0 [0x4f43db]
2007-04-19 22:26:01 [7915] [6] PANIC: /lib/libc.so.6(clone+0x5e) [0x44e06e]

And this is my kannel configuration.

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = XXXXXXX
status-password = XXXXXXXXXXXX
#admin-deny-ip = ""
#admin-allow-ip = ""
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.0.*"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
dlr-storage = mysql

# WAPBOX SETUP, for pushing and for pulling (fetching) the wap data 

group = wapbox
bearerbox-host = 127.0.0.1
#log-file = "/tmp/wapbox.log"
#log-level = 0
syslog-level = none


group=smsc
smsc=at
smsc-id=wavecom
host=localhost
port=13013
modemtype=wave2
device=/dev/ttyS0
#speed=115200
sms-center=+XXXXXXXXXXX
#sim-buffering=true

# Fastrack Wavecom CMGF should be udh mode
group = modems
id = wave2
name = "wave2"
detect-string = "WAVECOM"
#need-sleep = true
#keepalive-cmd = "AT+CBC;+CSQ"
#enable-hwhs = "AT+IFC=2,2"
#init-string = "ATE0+CNMI=2,2,0,1,0;+CMEE=1;+CMGF=0"
speed = 115200
#message-storage = "SM"
#broken = true

# SMSBOX SETUP

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


# SEND-SMS USERS.

group = sendsms-user
username = tester
password = foobar
dlr-url =
"http://192.168.0.180/smshandler/dlr.asp?oa=%s&da=%P&smsc=%i&status=%d";
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"

group = sendsms-user
username = XXX
password = XXX
dlr-url =
"http://localhost/dlr.php?oa=%p&da=%P&smsc=%i&status=%d&ts=%t&service=%n";
#dlr-url = "*"
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;192.168.0.*"

# SERVICES

group = sms-service
name = asalary
keyword = salary
keyword-regex = ^(SALARY|SAL|Salary)$
#white-list = http://zabogar/smshandler/salwhitelist.asp
#black-list = http://zabogar/smshandler/salblacklist.asp
get-url = "http://localhost/salreply.php?username=%s";

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

group = sms-service
keyword = default
text = "No service specified"


group = mysql-connection
id = mydlr
host = 192.168.0.5
username = XXX
password = XXXXX
database = kannel
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 5

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

Is it a bug ?
Plz Help

Ade


Reply via email to