How to get TLV data from kannel by using meta-data

0

Pcap of kannel shows that it received the 4 TLV in deliver_sm, but when i want to fetch the same in dlr-url by using meta-data=%D I am not getting all 4 TLV Params.

  1. I am hitting this curl URL :

    http://IP ADDRESS:PORT/cgi-bin/sendsms?username=dummy&password=dummy&to=91ext=This+is+a+test+message&dlr-mask=23&coding=0&dlr-url=http%3A%2F%2F10.0.6.100%3A9992%2Fdlrhandler%2Fdlrrequestlistener%3Fstatus%3D%25d%26msgdetail%3D%25A%26meta-data%3D%25D

basically I am using %D to fetch the meta data.

Expectation: I should get All params as i received in pcap file. https://i.stack.imgur.com/YU9Wf.png

Currently Getting: Attaching Screenshot of https://i.stack.imgur.com/tvPL0.png

Kannel conf.file:

group = smpp-tlv 
name = PRICEPOINT
tag = 0x0423
type = octetstring
length = 3

group = smpp-tlv
name = product_1
tag = 0x1454
type = octetstring
length = 4

group = smpp-tlv
name = product_2
tag = 0x1416
type = octetstring
length = 6

group = smpp-tlv
name = product_3
tag = 0x1418
type = octetstring
length = 4

kannel Logs Received(deliver_sm) :

Note: Please note I have purposely replaced the actual value with ******* at some places, please ignore for some reasons.

2020-08-10 03:20:38 [7786] [6] DEBUG: SMPP[push-airtel-promo-dlt1-smsc]: throughput (1.00,0.00)
2020-08-10 03:20:40 [7786] [6] DEBUG: SMPP[push-airtel-promo-dlt1-smsc]: throughput (0.00,0.00)
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter tag (0x0423)
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter length read as 3
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter tag (0x1454)
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter length read as 4
2020-08-10 03:20:40 [7786] [6] WARNING: SMPP: Unknown TLV(0x1454,0x0004,00000001) for PDU type (deliver_sm) received!
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter tag (0x1416)
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter length read as 6
2020-08-10 03:20:40 [7786] [6] WARNING: SMPP: Unknown TLV(0x1416,0x0006,343034313000) for PDU type (deliver_sm) received!
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter tag (0x1418)
2020-08-10 03:20:40 [7786] [6] DEBUG: Optional parameter length read as 4
2020-08-10 03:20:40 [7786] [6] WARNING: SMPP: Unknown TLV(0x1418,0x0004,00000012) for PDU type (deliver_sm) received!
2020-08-10 03:20:40 [7786] [6] DEBUG: SMPP[***************smsc]: Got PDU:
2020-08-10 03:20:40 [7786] [6] DEBUG: SMPP PDU 0x7fe8d00171b0 dump:
2020-08-10 03:20:40 [7786] [6] DEBUG:   type_name: deliver_sm
2020-08-10 03:20:40 [7786] [6] DEBUG:   command_id: 5 = 0x00000005
2020-08-10 03:20:40 [7786] [6] DEBUG:   command_status: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   sequence_number: 44485241 = 0x02a6ca79
2020-08-10 03:20:40 [7786] [6] DEBUG:   service_type: NULL
2020-08-10 03:20:40 [7786] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
2020-08-10 03:20:40 [7786] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2020-08-10 03:20:40 [7786] [6] DEBUG:   source_addr: "*********35"
2020-08-10 03:20:40 [7786] [6] DEBUG:   dest_addr_ton: 5 = 0x00000005
2020-08-10 03:20:40 [7786] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   destination_addr: "ACLTST"
2020-08-10 03:20:40 [7786] [6] DEBUG:   esm_class: 4 = 0x00000004
2020-08-10 03:20:40 [7786] [6] DEBUG:   protocol_id: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   priority_flag: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   schedule_delivery_time: NULL
2020-08-10 03:20:40 [7786] [6] DEBUG:   validity_period: NULL
2020-08-10 03:20:40 [7786] [6] DEBUG:   registered_delivery: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   data_coding: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2020-08-10 03:20:40 [7786] [6] DEBUG:   sm_length: 132 = 0x00000084
2020-08-10 03:20:40 [7786] [6] DEBUG:   short_message:
2020-08-10 03:20:40 [7786] [6] DEBUG:    Octet string at 0x7fe8d00030b0:
2020-08-10 03:20:40 [7786] [6] DEBUG:      len:  132
2020-08-10 03:20:40 [7786] [6] DEBUG:      size: 133
2020-08-10 03:20:40 [7786] [6] DEBUG:      immutable: 0
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 69 64 3a 33 30 34 30 30 38 30 39 32 31 35 33 32   id:3040080921532
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 38 36 30 33 38 35 20 73 75 62 3a 30 30 31 20 64   860385 sub:001 d
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 6c 76 72 64 3a 30 30 31 20 73 75 62 6d 69 74 20   lvrd:001 submit
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 64 61 74 65 3a 32 30 30 38 31 30 30 33 32 33 20   date:2008100323
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 64 6f 6e 65 20 64 61 74 65 3a 32 30 30 38 31 30   done date:200810
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 30 33 32 33 20 73 74 61 74 3a 44 45 4c 49 56 52   0323 stat:DELIVR
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 44 20 65 72 72 3a 30 30 30 30 20 74 65 78 74 3a   D err:0000 text:
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6d   This is a test m
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 65 73 73 61                                       essa
2020-08-10 03:20:40 [7786] [6] DEBUG:    Octet string dump ends.
2020-08-10 03:20:40 [7786] [6] DEBUG:   network_error_code:
2020-08-10 03:20:40 [7786] [6] DEBUG:    Octet string at 0x7fe8d00081e0:
2020-08-10 03:20:40 [7786] [6] DEBUG:      len:  3
2020-08-10 03:20:40 [7786] [6] DEBUG:      size: 4
2020-08-10 03:20:40 [7786] [6] DEBUG:      immutable: 0
2020-08-10 03:20:40 [7786] [6] DEBUG:      data: 03 00 00                                          ...
2020-08-10 03:20:40 [7786] [6] DEBUG:    Octet string dump ends.
2020-08-10 03:20:40 [7786] [6] DEBUG: SMPP PDU dump ends.
2020-08-10 03:20:40 [7786] [6] DEBUG: SMPP[**************smsc] handle_pdu, got DLR
2020-08-10 03:20:40 [7786] [6] DEBUG: DLR[internal]: Looking for DLR smsc=**********-smsc, ts=3040080921532860385, dst=*********, type=1
2020-08-10 03:20:40 [7786] [6] DEBUG: DLR[internal]: created DLR message for URL <http://10.0.*.***:****/dlrhandler/dlrrequestlistener?status=%d&msgdetail=%A&meta-data=%D>
smpp
kannel
tlv
asked on Stack Overflow Aug 9, 2020 by Diwakar Bhatt

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0