Hi,
I've found the problem under redis backend crash.
My dlr-url (
http://my.fqdn.name/DlrManager.aspx31oa=%p&da=%P&smsc=%i&dlrtype=%d&detail=%a&tempo=%T&id=%i&delr=%A&user=%n&foreign=%F&idgen=0|1|2|3|4|5|6)
contais many parameters with values as %[char], some of this broke
/usr/bin/bearerbox, some not but store on Redis backend different values:
%p %P %T %n => PANIC
%a is soted as 0x0.07f1160003b48p-1022
%A is soted as 0x0.07f1160003b48p-1022
%F is soted as 0.000000
%i is soted as 378
%d is soted as 378

The dlr-url is passed is urlencoded, so I guess the issue is when the
bearer decode and evaluate per params sent to
http://kannel-ip:13013/cgi-bin/sendsms.

Last thing, I've tried to register under Kannel Redmine, but after
successully registration I cannot login because I've nevere recevied the
confirmation mail.
For admins: could you kinldy check my account and unlock my account?

Thanks in advance
Bagni


2014-03-12 16:06 GMT+01:00 Lorenzo Bagni <ba...@networkweb.net>:

> Hi,
> I've activated the REDIS_DEBUG but the HMSET command works on redis-cli,
> but not with Kannel:
> bearerbox.log:
> 2014-03-12 15:54:14 [30938] [8] DEBUG: DLR[redis]: Adding DLR
> smsc=kannelfake, ts=8f3d43b4-f93c-4d8f-b681-35b658f74d90, src=51303,
> dst=393280000000, mask=31, boxc=
> 2014-03-12 15:54:14 [30938] [8] DEBUG: Adding DLR into keystore
> 2014-03-12 15:54:14 [30938] [8] DEBUG: redis cmd: HMSET
> dlr:kannelfake:8f3d43b4-f93c-4d8f-b681-35b658f74d90:4677782 smsc kannelfake
> ts 8f3d43b4-f93c-4d8f-b681-35b658f74d90 source 51303 destination
> 3932800000000 service user_mobyt_fake url
> http://my.fqdn.name/DlrManager.aspx31oa=%p&da=%P&smsc=%i&dlrtype=%d&detail=%a&tempo=%T&id=%i&delr=%A&user=%n&foreign=%F&idgen=0|1|2|3|4|5|6mask
>  _NULL_ boxc ? status 0
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x4a810c]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libpthread.so.0(+0xf710)
> [0x7f3d26ec0710]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x48d431]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x41fa63]
> 2014-03-12 15:54:14 [30938] [8] PANIC:
> /usr/sbin/bearerbox(dlr_add_real+0x3a3) [0x41cf63]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x457b7f]
> 2014-03-12 15:54:14 [30938] [8] PANIC:
> /usr/sbin/bearerbox(smscconn_send+0x5f) [0x42406f]
> 2014-03-12 15:54:14 [30938] [8] PANIC:
> /usr/sbin/bearerbox(smsc2_rout+0x428) [0x417f68]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x418e1d]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x491da9]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libpthread.so.0(+0x79d1)
> [0x7f3d26eb89d1]
> 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libc.so.6(clone+0x6d)
> [0x7f3d25c50b6d]
>
> Any clue for this?
> Thanks in advance
> Bagni
>
>
> 2014-03-06 12:37 GMT+01:00 Lorenzo Bagni <ba...@networkweb.net>:
>
>  Hi all,
>> I'm facing a blocking problem on redis backend for delivery report.
>> I'm sendig correctly (and receive on my MT) but the bearerbox hangs when
>> try to write on redis:
>>
>> smsc log:
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP[mobytusaprod]: Got PDU:
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP PDU 0x7f6c08000a10 dump:
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:   type_name: submit_sm_resp
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:   command_id: 2147483652 =
>> 0x80000004
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:   command_status: 0 = 0x00000000
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:   sequence_number: 2 = 0x00000002
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:   message_id:
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:    Octet string at 0x7f6c080011a0:
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      len:  36
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      size: 37
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      immutable: 0
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      data: 37 35 33 31 62 34 32 61
>> 2d 66 34 34 66 2d 34 33   7531b42a-f44f-43
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      data: 38 31 2d 39 63 35 61 2d
>> 36 31 37 65 32 32 33 31   81-9c5a-617e2231
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:      data: 36 30 35 63
>>                           605c
>> 2014-03-06 11:44:54 [25724] [7] DEBUG:    Octet string dump ends.
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP PDU dump ends.
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: new group created `smpp'
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: group=`smpp'
>> key=`mobyt_campaignid' value=`1245'
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: DLR[redis]: Adding DLR
>> smsc=mobytusaprod, ts=7531b42a-f44f-4381-9c5a-617e2231605c, src=51303,
>> dst=393284677782, mask=31, boxc=
>> 2014-03-06 11:44:54 [25724] [7] DEBUG: Adding DLR into keystore
>>
>> bearerbox log:
>> 2014-03-06 11:44:33 [25724] [9] DEBUG: Started thread 10
>> (gw/bb_boxc.c:boxc_sender)
>> 2014-03-06 11:44:33 [25724] [10] DEBUG: Thread 10
>> (gw/bb_boxc.c:boxc_sender) maps to pid 25724.
>> 2014-03-06 11:44:54 [25724] [9] DEBUG: boxc_receiver: sms received
>> 2014-03-06 11:44:54 [25724] [9] DEBUG: send_msg: sending msg to box:
>> <127.0.0.1>
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x4a7f7c]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /lib64/libpthread.so.0(+0xf710)
>> [0x7f6c21df5710]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x48d407]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x41fa63]
>> 2014-03-06 11:44:54 [25724] [7] PANIC:
>> /usr/sbin/bearerbox(dlr_add_real+0x3a3) [0x41cf63]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x4682c2]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x469395]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /usr/sbin/bearerbox() [0x491c19]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /lib64/libpthread.so.0(+0x79d1)
>> [0x7f6c21ded9d1]
>> 2014-03-06 11:44:54 [25724] [7] PANIC: /lib64/libc.so.6(clone+0x6d)
>> [0x7f6c20b85b6d]
>>
>> I've compiled kannel 1.5.0 trunk version 5081:
>> Kannel bearerbox version `svn-runknown'. Build `Mar 5 2014 14:57:57',
>> compiler `4.4.7 20120313 (Red Hat 4.4.7-4)'. System Linux, release
>> 2.6.32-431.el6.x86_64, version #1 SMP Fri Nov 22 03:15:09 UTC 2013, machine
>> x86_64. Hostname xxx.xxx.xxx, IP xxx.xxx.xxx.xxx. Libxml version 2.7.6.
>> Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.1.71, using
>> MySQL 5.1.71. Using hiredis API 0.10.1 Using native malloc.
>>
>> The same flow works perfectly if I use the MySql backend, so I guess a
>> misconfiguration, here's the redis related config:
>> dlr-storage = redis
>>
>> group = redis-connection
>> id = redisdlr
>> host = 127.0.0.1
>> port = 6379
>> #password = foo
>> database = 0
>> max-connections = 1
>>
>> group = dlr-db
>> id = redisdlr
>> table = dlr
>> ttl = 604800
>> 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
>>
>> Redis works on the same box of kannel, accepts bindigs on all intefraces,
>> and I've try to perform a CRUD operation from redis-cli without problems.
>>
>> Thanks in advance
>> Bagni
>>
>>
>

Reply via email to