Hi,
On one of the SMSC's I am connecting to Kannel cannot handle the DLR
correctly.
I don't know exactly why it cannot handle it correctly but the one thing
I did find was that the TS is hex upon sending the text and non-hex when
receiving DLR updates.
When I checked the mysql it is saved as D133BB91 but when it searches
for it, it uses the non-hex 3509828497.
Is there anyway of handling this?
Sending:
2011-10-11 10:45:07 [15895] [11] DEBUG: SMPP[XXX]: Got PDU:
2011-10-11 10:45:07 [15895] [11] DEBUG: SMPP PDU 0x22061f0 dump:
2011-10-11 10:45:07 [15895] [11] DEBUG: type_name: submit_sm_resp
2011-10-11 10:45:07 [15895] [11] DEBUG: command_id: 2147483652 =
0x80000004
2011-10-11 10:45:07 [15895] [11] DEBUG: command_status: 0 = 0x00000000
2011-10-11 10:45:07 [15895] [11] DEBUG: sequence_number: 3056 = 0x00000bf0
2011-10-11 10:45:07 [15895] [11] DEBUG: message_id: "D133BB91"
2011-10-11 10:45:07 [15895] [11] DEBUG: SMPP PDU dump ends.
2011-10-11 10:45:07 [15895] [11] DEBUG: DLR[mysql]: Adding DLR smsc=XXX,
ts=D133BB91, src=PHONE1, dst=PHONE2, mask=31, boxc=
DLR:
2011-10-11 10:45:10 [15895] [11] DEBUG: SMPP PDU 0x22061f0 dump:
2011-10-11 10:45:10 [15895] [11] DEBUG: type_name: deliver_sm
2011-10-11 10:45:10 [15895] [11] DEBUG: command_id: 5 = 0x00000005
2011-10-11 10:45:10 [15895] [11] DEBUG: command_status: 0 = 0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: sequence_number: 278335489 =
0x10971001
2011-10-11 10:45:10 [15895] [11] DEBUG: service_type: NULL
2011-10-11 10:45:10 [15895] [11] DEBUG: source_addr_ton: 1 = 0x00000001
2011-10-11 10:45:10 [15895] [11] DEBUG: source_addr_npi: 1 = 0x00000001
2011-10-11 10:45:10 [15895] [11] DEBUG: source_addr: "PHONE2"
2011-10-11 10:45:10 [15895] [11] DEBUG: dest_addr_ton: 1 = 0x00000001
2011-10-11 10:45:10 [15895] [11] DEBUG: dest_addr_npi: 1 = 0x00000001
2011-10-11 10:45:10 [15895] [11] DEBUG: destination_addr: "PHONE1"
2011-10-11 10:45:10 [15895] [11] DEBUG: esm_class: 4 = 0x00000004
2011-10-11 10:45:10 [15895] [11] DEBUG: protocol_id: 0 = 0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: priority_flag: 0 = 0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: schedule_delivery_time: NULL
2011-10-11 10:45:10 [15895] [11] DEBUG: validity_period: NULL
2011-10-11 10:45:10 [15895] [11] DEBUG: registered_delivery: 0 =
0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: replace_if_present_flag: 0 =
0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: data_coding: 0 = 0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: sm_default_msg_id: 0 = 0x00000000
2011-10-11 10:45:10 [15895] [11] DEBUG: sm_length: 122 = 0x0000007a
2011-10-11 10:45:10 [15895] [11] DEBUG: short_message:
2011-10-11 10:45:10 [15895] [11] DEBUG: Octet string at 0x2238750:
2011-10-11 10:45:10 [15895] [11] DEBUG: len: 122
2011-10-11 10:45:10 [15895] [11] DEBUG: size: 123
2011-10-11 10:45:10 [15895] [11] DEBUG: immutable: 0
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 69 64 3a 33 35 30 39
38 32 38 34 39 37 20 73 75 id:3509828497 su
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 62 3a 30 30 30 20 64
6c 76 72 64 3a 30 30 30 20 b:000 dlvrd:000
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 73 75 62 6d 69 74 20
64 61 74 65 3a 31 31 31 30 submit date:1110
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 31 31 31 30 34 35 20
64 6f 6e 65 20 64 61 74 65 111045 done date
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 3a 31 31 31 30 31 31
31 30 34 35 20 73 74 61 74 :1110111045 stat
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 3a 44 45 4c 49 56 52
44 20 65 72 72 3a 30 30 30 :DELIVRD err:000
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 20 74 65 78 74 3a 05
00 03 29 04 01 52 61 73 6d text:...)..Rasm
2011-10-11 10:45:10 [15895] [11] DEBUG: data: 75 73 28 30 37 33 32
34 37 37 us(111111
2011-10-11 10:45:10 [15895] [11] DEBUG: Octet string dump ends.
2011-10-11 10:45:10 [15895] [11] DEBUG: SMPP PDU dump ends.
2011-10-11 10:45:10 [15895] [11] DEBUG: SMPP[XXX] handle_pdu, got DLR
2011-10-11 10:45:10 [15895] [11] DEBUG: DLR[mysql]: Looking for DLR
smsc=XXX, ts=3509828497, dst=PHONE2, type=1
2011-10-11 10:45:10 [15895] [11] DEBUG: sql: SELECT `mask`, `service`,
`url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND
`ts`=? LIMIT 1