DLRmask 1, smsbox crashesh (CIMD2)

"Shridhar Raju" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Visual Quest India
Message-ID <[email protected]>
Hi,

I'm using kannel 1.1.6 on RH7.1. We have developed small CIMD2 server using
CIMD Java API. When I connect kannel to server, they exchange packets
properly. Even submit_message goes smoothly.

But when I put dlrmask = 1 in HTTP sendsms, as soon as kannel receives
delivery report packet from server, smsbox crashesh. (See log). The packet
dump from server is

04-06-1999 17:02:08: Server is Listening at port :6789
04-06-1999 17:02:15: Client :01:001 010:foo 011:bar 59
04-06-1999 17:02:16: Server :51:001 3C
04-06-1999 17:04:13: Client :03:003 021:999 056:0 041:0 045:0 033:Welcome
to SMS Gateway 88
04-06-1999 17:04:13: Submit Message
04-06-1999 17:04:13: Server :53:003 021:999 060:020504050413 FA
04-06-1999 17:13:56: Client :03:035 021:5678 056:12 045:0 033:dlr test 38
04-06-1999 17:13:56: Submit Message
04-06-1999 17:13:56: Server :53:035 021:5678 060:020504051356 32
04-06-1999 17:13:56: Server :23:004 021:5678 046:0 060:020504051356
063:020504051356 061:4 062:0 91
04-06-1999 17:13:57: Client :73:004 43

http://kannelhost:13013/cgi-bin/sendsms?user=shridhar&pass=vqindia&to=5678&f
rom=1234&text=dlr%20test&dlrmask=1

Kannel.conf:

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = vqindia
log-file = "bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "access.log"

group = smsc
smsc = cimd2
smsc-id = ussd
host = 192.168.1.97
port = 6789
smsc-username = "foo"
smsc-password = "bar"
keepalive = 1

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 1234
log-file = "smsbox.log"
log-level = 0
sms-length = 200

group = sms-service
keyword = default
text = "Welcome to VQI Gateway"

group = sendsms-user
username = shridhar
password = vqindia
dlr-url = "http://localhost/dlr.html"

Bearerbox log:

2002-06-04 17:15:21 [4] DEBUG: Started thread 14 (gw/bb_boxc.c:function)
2002-06-04 17:15:21 [14] INFO: Client connected from <127.0.0.1>
2002-06-04 17:15:21 [14] DEBUG: Started thread 15 (gw/bb_boxc.c:boxc_sender)
2002-06-04 17:15:44 [14] DEBUG: boxc_receiver: sms received
2002-06-04 17:15:44 [6] DEBUG: smscconn_sender
(CIMD2:192.168.1.97:6789:foo): sending message
2002-06-04 17:15:44 [6] DEBUG: CIMD2 sending message.  Text:
2002-06-04 17:15:44 [6] DEBUG: Octet string at 0x820b178:
2002-06-04 17:15:44 [6] DEBUG:   len:  8
2002-06-04 17:15:44 [6] DEBUG:   size: 9
2002-06-04 17:15:44 [6] DEBUG:   immutable: 0
2002-06-04 17:15:44 [6] DEBUG:   data: 64 6c 72 20 74 65 73 74   dlr test
2002-06-04 17:15:44 [6] DEBUG: Octet string dump ends.
2002-06-04 17:15:44 [6] DEBUG: After CIMD2 encoding:
2002-06-04 17:15:44 [6] DEBUG: Octet string at 0x820b178:
2002-06-04 17:15:44 [6] DEBUG:   len:  8
2002-06-04 17:15:44 [6] DEBUG:   size: 9
2002-06-04 17:15:44 [6] DEBUG:   immutable: 0
2002-06-04 17:15:44 [6] DEBUG:   data: 64 6c 72 20 74 65 73 74   dlr test
2002-06-04 17:15:44 [6] DEBUG: Octet string dump ends.
2002-06-04 17:15:46 [5] DEBUG: Looking for DLR
smsc=CIMD2:192.168.1.97:6789:foo, ts=050405135625, dst=5678, type=1
2002-06-04 17:15:46 [5] DEBUG: created DLR message:
2002-06-04 17:15:46 [5] DEBUG: smscconn (CIMD2:192.168.1.97:6789:foo): new
message received
2002-06-04 17:15:46 [13] DEBUG: Thread 13 (gw/bb_boxc.c:boxc_sender)
terminates.
2002-06-04 17:15:46 [12] DEBUG: Thread 12 (gw/bb_boxc.c:function)
terminates.
2002-06-04 17:15:46 [14] INFO: Connection closed by the box <127.0.0.1>
2002-06-04 17:15:46 [15] DEBUG: boxc_sender: sent message to <127.0.0.1>
2002-06-04 17:15:46 [15] DEBUG: Thread 15 (gw/bb_boxc.c:boxc_sender)
terminates.
2002-06-04 17:15:46 [14] DEBUG: Thread 14 (gw/bb_boxc.c:function)
terminates.

SMSbox log:

2002-06-04 17:15:21 [0] INFO: Added logfile `smsbox.log' with level `0'.
2002-06-04 17:15:21 [0] INFO: Service global sender set as '123'
2002-06-04 17:15:21 [0] DEBUG: HTTP: Opening server at port 13013.
2002-06-04 17:15:21 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2002-06-04 17:15:21 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2002-06-04 17:15:21 [0] INFO: Set up send sms service at port 13013
2002-06-04 17:15:21 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2002-06-04 17:15:21 [0]
DEBUG: ----------------------------------------------
2002-06-04 17:15:21 [0] DEBUG: Kannel smsbox version 1.1.6 starting
2002-06-04 17:15:21 [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2002-06-04 17:15:21 [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2002-06-04 17:15:21 [0] INFO: Connected to bearerbox at localhost port
13001.
2002-06-04 17:15:21 [0] DEBUG: Started thread 6
(gw/heartbeat.c:heartbeat_thread)
2002-06-04 17:15:44 [2] DEBUG: HTTP: Creating HTTPClient for `192.168.1.97'.
2002-06-04 17:15:44 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms>
from <192.168.1.97>
2002-06-04 17:15:44 [3] INFO: sendsms used by <shridhar>
2002-06-04 17:15:44 [3] INFO: sendsms sender:<shridhar:1234> (192.168.1.97)
to:<5678> msg:<dlr test>
2002-06-04 17:15:44 [3] DEBUG: message length 8, sending 1 messages
2002-06-04 17:15:44 [3] DEBUG: Status: 202 Answer: <Sent.>
2002-06-04 17:15:44 [3] DEBUG: HTTP: Resetting HTTPClient for
`192.168.1.97'.
2002-06-04 17:15:46 [4] INFO: Starting delivery report <shridhar> from
<5678>
2002-06-04 17:15:46 [4] PANIC: gwlib/octstr.c:275: octstr_copy_real:
Assertion `len >= 0' failed.

Am I doing some thing wrong. Packets seems to be OK. Has anybody using dlr
with CIMD2. Suggestion please.

Shridhar Raju
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.