Hi Rene, we have some problems with our instance of Kannel/OpenSMPPBox
We have installed the last version from sources (r5048 for Kannel and r75 for OpenSMPPBox build with support for MySql even if we do not use it) As said in the subject, everytime we recieve a multipart message, OpenSMPPBox reassemle the parts, pass it to Kannel and dies ("seems_valid_real: Assertion `ostr->data != NULL' failed" or other Assertion in the same function from gwlib/octstr.c)

It happens either if we send the message from another Kannel instance or if from other servers (not Kannels)
Also happens if we have also recieved some others non-multipart messages

Can you help us or have any suggestion?
Ask if need more info

Thanks


Here is a log from OpenSMPPBox

2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP[270087910107588]: Got PDU:
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU 0x8188980 dump:
2013-09-11 15:41:13 [30090] [10] DEBUG:   type_name: submit_sm
2013-09-11 15:41:13 [30090] [10] DEBUG:   command_id: 4 = 0x00000004
2013-09-11 15:41:13 [30090] [10] DEBUG:   command_status: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG: sequence_number: 24398 = 0x00005f4e
2013-09-11 15:41:13 [30090] [10] DEBUG:   service_type: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr_ton: 5 = 0x00000005
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr_npi: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr: "FIXAT"
2013-09-11 15:41:13 [30090] [10] DEBUG:   dest_addr_ton: 1 = 0x00000001
2013-09-11 15:41:13 [30090] [10] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-09-11 15:41:13 [30090] [10] DEBUG:   destination_addr: "393381361018"
2013-09-11 15:41:13 [30090] [10] DEBUG:   esm_class: 67 = 0x00000043
2013-09-11 15:41:13 [30090] [10] DEBUG:   protocol_id: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   priority_flag: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   schedule_delivery_time: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG:   validity_period: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG: registered_delivery: 0 = 0x00000000 2013-09-11 15:41:13 [30090] [10] DEBUG: replace_if_present_flag: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   data_coding: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   sm_length: 159 = 0x0000009f
2013-09-11 15:41:13 [30090] [10] DEBUG:   short_message:
2013-09-11 15:41:13 [30090] [10] DEBUG:    Octet string at 0x8188ac8:
2013-09-11 15:41:13 [30090] [10] DEBUG:      len:  159
2013-09-11 15:41:13 [30090] [10] DEBUG:      size: 160
2013-09-11 15:41:13 [30090] [10] DEBUG:      immutable: 0
2013-09-11 15:41:13 [30090] [10] DEBUG: data: 05 00 03 3f 02 01 42 6f 6c 6c 65 74 74 69 6e 6f ...?..Bollettino
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG: data: 6d 61 7a 69 6f 6e 69 20 63 6f 6e 74 61 74 74 mazioni contatt
2013-09-11 15:41:13 [30090] [10] DEBUG:    Octet string dump ends.
2013-09-11 15:41:13 [30090] [10] DEBUG: more_messages_to_send: 1 = 0x00000001
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU dump ends.
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP[270087910107588]: UDH length read as 6
2013-09-11 15:41:13 [30090] [10] DEBUG: assemble multi-part message.
2013-09-11 15:41:13 [30090] [10] DEBUG: received 1 of 2.
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP[270087910107588]: Sending PDU:
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU 0x8171830 dump:
2013-09-11 15:41:13 [30090] [10] DEBUG:   type_name: submit_sm_resp
2013-09-11 15:41:13 [30090] [10] DEBUG: command_id: 2147483652 = 0x80000004
2013-09-11 15:41:13 [30090] [10] DEBUG:   command_status: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG: sequence_number: 24398 = 0x00005f4e
2013-09-11 15:41:13 [30090] [10] DEBUG:   message_id: "9007b6d7"
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU dump ends.
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP[270087910107588]: Got PDU:
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU 0x8171830 dump:
2013-09-11 15:41:13 [30090] [10] DEBUG:   type_name: submit_sm
2013-09-11 15:41:13 [30090] [10] DEBUG:   command_id: 4 = 0x00000004
2013-09-11 15:41:13 [30090] [10] DEBUG:   command_status: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG: sequence_number: 24399 = 0x00005f4f
2013-09-11 15:41:13 [30090] [10] DEBUG:   service_type: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr_ton: 5 = 0x00000005
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr_npi: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   source_addr: "FIXAT"
2013-09-11 15:41:13 [30090] [10] DEBUG:   dest_addr_ton: 1 = 0x00000001
2013-09-11 15:41:13 [30090] [10] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-09-11 15:41:13 [30090] [10] DEBUG:   destination_addr: "393381361018"
2013-09-11 15:41:13 [30090] [10] DEBUG:   esm_class: 67 = 0x00000043
2013-09-11 15:41:13 [30090] [10] DEBUG:   protocol_id: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   priority_flag: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   schedule_delivery_time: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG:   validity_period: NULL
2013-09-11 15:41:13 [30090] [10] DEBUG: registered_delivery: 0 = 0x00000000 2013-09-11 15:41:13 [30090] [10] DEBUG: replace_if_present_flag: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   data_coding: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-09-11 15:41:13 [30090] [10] DEBUG:   sm_length: 49 = 0x00000031
2013-09-11 15:41:13 [30090] [10] DEBUG:   short_message:
2013-09-11 15:41:13 [30090] [10] DEBUG:    Octet string at 0x8188a18:
2013-09-11 15:41:13 [30090] [10] DEBUG:      len:  49
2013-09-11 15:41:13 [30090] [10] DEBUG:      size: 50
2013-09-11 15:41:13 [30090] [10] DEBUG:      immutable: 0
2013-09-11 15:41:13 [30090] [10] DEBUG: data: 05 00 03 3f 02 02 61 72 65 20 73 6f 6c 6f 20 69 ...?..are solo i
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG:      // obscured data
2013-09-11 15:41:13 [30090] [10] DEBUG: data: 2e .
2013-09-11 15:41:13 [30090] [10] DEBUG:    Octet string dump ends.
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP PDU dump ends.
2013-09-11 15:41:13 [30090] [10] DEBUG: SMPP[270087910107588]: UDH length read as 6
2013-09-11 15:41:13 [30090] [10] DEBUG: assemble multi-part message.
2013-09-11 15:41:13 [30090] [10] DEBUG: received 2 of 2.
2013-09-11 15:41:13 [30090] [10] DEBUG: received all parts of multi-part message.
2013-09-11 15:41:13 [30090] [10] DEBUG: multi-part message, length: 196.
2013-09-11 15:41:13 [30090] [9] PANIC: gwlib/octstr.c:2565: seems_valid_real: Assertion `ostr->data != NULL' failed. (Called from gwlib/octstr.c:876:octstr_compare.) 2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox(gw_backtrace+0xc6) [0x80963e6] 2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox(gw_panic+0xc0) [0x80964b0]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox() [0x80a2fd0]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox(octstr_compare+0x3f) [0x80a4a6f]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox() [0x8094f29]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox(gwlist_search+0x53) [0x8098163] 2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox(dict_get+0x3f) [0x809516f]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox() [0x805539f]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox() [0x805754c]
2013-09-11 15:41:13 [30090] [9] PANIC: opensmppbox() [0x8093a7b]
2013-09-11 15:41:13 [30090] [9] PANIC: /lib/libpthread.so.0(+0x6a59) [0xb745ba59] 2013-09-11 15:41:13 [30090] [9] PANIC: /lib/libc.so.6(clone+0x5e) [0xb71f65de]

Here are part of the configurations file

////  opensmpp.conf
include = "/etc/kannel/kannel.conf"

# incoming opensmpp
group = opensmppbox
opensmppbox-id = ""
opensmppbox-port = 13031
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
our-system-id = remote
smpp-logins = /etc/kannel/clients.conf
use-systemid-as-smsboxid=true
log-file = "/var/log/kannel/opensmppbox.log"
log-level = 0
route-to-smsc = httpunicode

//// kannel.conf
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = "/var/log/kannel/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.4.*"
access-log = "/var/log/kannel/access.log"
dlr-storage = internal
store-type = spool
store-location = "/etc/kannel/spoolsms"

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

Reply via email to