Hello,
I'm quite new to using Kannel to connect via SMPP. I've recently implemented the meta-data patch (from Alex) and the %w patch (from Alejandro). Everything works well except that I can't seem to get the receipted_message_id from the deliver_sm PDU using the %D meta-data option. The only thing that is returned by %D is ?smpp?. I'm no C/C++ expert, but I'm trying to figure out how to fix it. I'm not sure if I'll be successful, though. I'll paste some parts of the kannel.conf and some of the output that I have below. If anyone has time, please do let me know if I'm doing anything wrong. Thanks! Eds. ***** kannel.conf ***** # Additional TLV Definitions group = smpp-tlv name = XXBillingType tag = 0x1400 type = octetstring length = 3 group = smpp-tlv name = XXMessageID tag = 0x001E type = nulterminated (also tried octetstring, but same result) length = 65 # SMPP Configuration group = smsc smsc = smpp host = xx.xx.xx.xx port = xxxxx smsc-id = XXXXXX smsc-username = xxxxxxxx smsc-password = xxxxxxxx system-type = transceiver-mode = true # SEND-SMS USERS group = sendsms-user username=xxxxx password=xxxxx dlr-url = http://localhost/dump.php?p=%p&P=%P&i=%i&I=%I&o=%o&B=%B&u=%u&D=%D&w=%w" # SERVICES group = sms-service keyword = default max-messages = 0 get-url = "http://localhost/dump.php?p=%p&P=%P&i=%i&I=%I&o=%o&B=%B&u=%u&a=%a&w=%w&D=%D " ***** dump from kannel.log ***** 2008-10-15 07:43:58 [19509] [6] DEBUG: Optional parameter tag (0x001e) 2008-10-15 07:43:58 [19509] [6] DEBUG: Optional parameter length read as 19 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP[SMPP:xx.xx.xx.xx:xxxxx/xxxxx:xxxxx:]: Got PDU: 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP PDU 0x92e0b38 dump: 2008-10-15 07:43:58 [19509] [6] DEBUG: type_name: deliver_sm 2008-10-15 07:43:58 [19509] [6] DEBUG: command_id: 5 = 0x00000005 2008-10-15 07:43:58 [19509] [6] DEBUG: command_status: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: sequence_number: 6613 = 0x000019d5 2008-10-15 07:43:58 [19509] [6] DEBUG: service_type: "Roger" 2008-10-15 07:43:58 [19509] [6] DEBUG: source_addr_ton: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: source_addr: "xxxxxxxxxx" 2008-10-15 07:43:58 [19509] [6] DEBUG: dest_addr_ton: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: destination_addr: "xxxxx" 2008-10-15 07:43:58 [19509] [6] DEBUG: esm_class: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: protocol_id: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: priority_flag: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: schedule_delivery_time: NULL 2008-10-15 07:43:58 [19509] [6] DEBUG: validity_period: NULL 2008-10-15 07:43:58 [19509] [6] DEBUG: registered_delivery: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: data_coding: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: sm_length: 10 = 0x0000000a 2008-10-15 07:43:58 [19509] [6] DEBUG: short_message: "Test MO #3" 2008-10-15 07:43:58 [19509] [6] DEBUG: receipted_message_id: "MO-001224001905452" 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP PDU dump ends. 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP[SMPP:xx.xx.xx.xx:xxxxx/xxxxx:xxxxx:]:: Sending PDU: 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP PDU 0x92e0c40 dump: 2008-10-15 07:43:58 [19509] [6] DEBUG: type_name: deliver_sm_resp 2008-10-15 07:43:58 [19509] [6] DEBUG: command_id: 2147483653 = 0x80000005 2008-10-15 07:43:58 [19509] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2008-10-15 07:43:58 [19509] [6] DEBUG: command_status: 0 = 0x00000000 2008-10-15 07:43:58 [19509] [6] DEBUG: sequence_number: 6613 = 0x000019d5 2008-10-15 07:43:58 [19509] [6] DEBUG: message_id: NULL 2008-10-15 07:43:58 [19509] [6] DEBUG: SMPP PDU dump ends.
