Re: Kannel always read DLR=2 either SMS is successfully deliverd or failed.

Willy Mularto <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Check msg-id-type in the user guide and try to play with the value



On Nov 15, 2012, at 1:59 PM, Saifullah wrote:

> Dear Experts
> 
> I have been experiencing a abnormal behavior of kannel.  kannel always read DLR value 2 after the SMS is either successfully delivered  or not or failed  to that number of a SMSC. According to the log I think that when kannel get deliver_sm message from other SMSC, the kannel  cann't read the deliver _sm message. IT may be unable to purse the submit_sm message. According to my reaearch the 
> 1. deliver_sm there are a extra field wich kannel cann't purse and it always read dlr= 2.
> 2 The message_id in deliver_sm message is of the format date+number. does it causing problem for FID which is shown as it is 4294967295 (2^32-1).
> 3. In the deliver_sm message there are one extra filed which is not included in the code. Does it make this problem?
> 
> 
> Please see the log below and help me. Please give suggestion about this issue. Is there any patch which will solve this problem.
> 
> Thanks in advance. 
> type_name: submit_sm
> 
> command_id: 4 = 0x00000004
> 
> command_status: 0 = 0x00000000
> 
> sequence_number: 5294 = 0x000014ae
> 
> service_type: NULL
> 
> source_addr_ton: 1 = 0x00000001
> 
> source_addr_npi: 1 = 0x00000001
> 
> source_addr: "XXXXXXXXXXXXX"
> 
> dest_addr_ton: 1 = 0x00000001
> 
> dest_addr_npi: 1 = 0x00000001
> 
> destination_addr: "XXXXXXXXXXXXX"
> 
> esm_class: 3 = 0x00000003
> 
> protocol_id: 0 = 0x00000000
> 
> priority_flag: 0 = 0x00000000
> 
> schedule_delivery_time: NULL
> 
> validity_period: NULL
> 
> registered_delivery: 1 = 0x00000001
> 
> replace_if_present_flag: 0 = 0x00000000
> 
> data_coding: 0 = 0x00000000
> 
> sm_default_msg_id: 0 = 0x00000000
> 
> sm_length: 123 = 0x0000007b
> 
> short_message:
> 
> Octet string at 0xb3c07410:
> 
> len:  123
> 
> size: 124
> 
> immutable: 0
> 
> data: 48 46 4c 2d 31 30 36 33 37 3a 20 57 65 20 67 6f   HFL-10637: We go
> 
> data: 74 20 68 69 67 68 20 66 69 62 65 72 20 6c 6f 73   t high fiber los
> 
> data: 73 20 62 65 74 77 65 65 6e 20 52 6f 62 69 20 44   s between Robi D
> 
> data: 65 6c 64 75 61 72 20 74 6f 20 43 43 20 54 61 6e   elduar to CC Tan
> 
> data: 67 61 69 6c 20 61 74 20 39 3a 30 33 20 6f 6e 20   gail at 9:03 on
> 
> data: 32 30 31 32 2d 31 31 2d 31 34 2e 0d 0a 0d 0a 41   2012-11-14.....A
> 
> data: 6e 64 20 72 65 6c 61 74 65 64 20 73 65 72 76 69   nd related servi
> 
> data: 63 65 73 20 61 72 65 20 55 70 2e                  ces are Up.
> 
> Octet string dump ends.
> 
> SMPP PDU dump ends.
> 
> SMPP[abcd]: Got PDU:
> 
> SMPP PDU 0xb3c0b878 dump:
> 
> type_name: submit_sm_resp
> 
> command_id: 2147483652 = 0x80000004
> 
> command_status: 0 = 0x00000000
> 
> sequence_number: 5294 = 0x000014ae
> 
> message_id:
> 
> Octet string at 0xb3c0a548:
> 
> len:  25
> 
> size: 26
> 
> immutable: 0
> 
> data: 31 32 31 31 31 34 30 39 30 39 32 32 38 38 30 31   121114090922xxxx
> 
> data: 37 31 34 30 33 34 38 34 35                        xxxxxxxxx
> 
> Octet string dump ends.
> 
> SMPP PDU dump ends.
> 
> DLR[mysql]: Adding DLR smsc=abcd, ts=4294967295, src=XXXXXXXXXXXXX, dst=XXXXXXXXXXXXX, mask=3, boxc=abcdsmsbox
> 
> sql: INSERT INTO kannel_dlr (smsc, timestamp, source, destination, service, url, mask, boxc_id, status) VALUES ('abcd', '4294967295', 'XXXXXXXXXXXXX', 'XXXXXXXXXXXXX', 'user', 'http://x.x.x.x:8181/delivery/response.php?tmpId=6975&smsId=2986&opId=1&type=%d', '3', 'abcdsmsbox', '0');
> 
> Optional parameter tag (0x0423)
> 
> Optional parameter length read as 3
> 
> Optional parameter tag (0x001e)
> 
> Optional parameter length read as 26
> 
> SMPP[abcd]: Got PDU:
> 
> SMPP PDU 0xb3c0b8a8 dump:
> 
> type_name: deliver_sm
> 
>  
> command_id: 5 = 0x00000005
> 
> command_status: 0 = 0x00000000
> 
> sequence_number: 130 = 0x00000082
> 
> service_type: NULL
> 
> source_addr_ton: 0 = 0x00000000
> 
> source_addr_npi: 0 = 0x00000000
> 
> source_addr: "XXXXXXXXXXXXX"
> 
> dest_addr_ton: 0 = 0x00000000
> 
> dest_addr_npi: 0 = 0x00000000
> 
> destination_addr: "1234"
> 
> esm_class: 4 = 0x00000004
> 
> protocol_id: 0 = 0x00000000
> 
> priority_flag: 0 = 0x00000000
> 
> schedule_delivery_time: NULL
> 
> validity_period: NULL
> 
> registered_delivery: 0 = 0x00000000
> 
> replace_if_present_flag: 0 = 0x00000000
> 
> data_coding: 0 = 0x00000000
> 
> sm_default_msg_id: 0 = 0x00000000
> 
> sm_length: 94 = 0x0000005e
> 
> short_message:
> 
> Octet string at 0xb3c01958:
> 
> len:  94
> 
> size: 95
> 
> immutable: 0
> 
> data: 69 64 3a 31 32 31 31 31 34 30 39 30 39 32 32 38   id:1211140909224
> 
> data: 38 30 31 37 31 34 30 33 34 38 34 35 20 73 75 6      56789 sub
> 
> data: 6d 69 74 20 64 61 74 65 3a 31 32 31 31 31 34 30   mit date:1211140
> 
> data: 39 30 39 20 64 6f 6e 65 20 64 61 74 65 3a 31 32   909 done date:12
> 
> data: 31 31 31 34 30 39 30 39 20 73 74 61 74 3a 44 45   11140909 stat:DE
> 
> data: 4c 49 56 52 44 20 65 72 72 3a 30 30 30 20         LIVRD err:000
> 
> Octet string dump ends.
> 
> network_error_code:
> 
> Octet string at 0xb3c07410:
> 
> len:  3
> 
> size: 4
> 
> immutable: 0
> 
> data: 03 00 00                                          ...
> 
> Octet string dump ends.
> 
> receipted_message_id:
> 
> Octet string at 0xb3c05f80:
> 
> len:  25
> 
> size: 26
> 
> immutable: 0
> 
> data: 31 32 31 31 31 34 30 39 30 39 32 32 38 38 30 31   1211140909228801
> 
> data: 37 31 34 30 33 34 38 34 35                        714034845
> 
> Octet string dump ends.
> 
> SMPP PDU dump ends.
> 
> SMPP[abcd] handle_pdu, got DLR
> 
> WARNING: SMPP[abcd]: Got DLR with unknown 'message_state' (-1).
> 
> DLR[mysql]: Looking for DLR smsc=abcd, ts=4294967295, dst=XXXXXXXXXXXXX, type=2
> 
> sql: SELECT mask, service, url, source, destination, boxc_id FROM kannel_dlr WHERE smsc='abcd' AND timestamp='4294967295';
> 
> Found entry, row[0]=3, row[1]=user, row[2]=http://x.x.x.x:8181/delivery/response.php?tmpId=6975&smsId=2986&opId=1&type=%d, row[3]=XXXXXXXXXXXXX, row[4]=XXXXXXXXXXXXX row[5]=abcdsmsbox
> 
> DLR[mysql]: created DLR message for URL <http://x.x.x.x:8181/delivery/response.php?tmpId=6975&smsId=2986&opId=1&type=%d>
> 
> removing DLR from database
> 
> sql: DELETE FROM kannel_dlr WHERE smsc='abcd' AND timestamp='4294967295' LIMIT 1;
> 
> SMPP[abcd]: Sending PDU:
> 
> SMPP PDU 0xb3c0ba50 dump:
> 
> type_name: deliver_sm_resp
> 
> command_id: 2147483653 = 0x80000005
> 
> command_status: 0 = 0x00000000
> 
> sequence_number: 130 = 0x00000082
> 
> message_id: NULL
> 
> SMPP PDU dump ends.
> 
> 
> -- 
> Regards
> Abu Nasar Md. Saifullah
> System Engineer, P&D
> Banglaphone Ltd.
> Mobile:+8801722817250
> Phone: +8803593451174

Willy Mularto
F300HD+MR18DE (NLC1725)
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.