Please read User-guide.

http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html

SMS-service configurations

Table 6-9. Parameters (Escape Codes)

%p      the phone number of the sender of the SMS message
%P      the phone number of the receiver of the SMS message

M
On 2/21/07, Ady Wicaksono <[EMAIL PROTECTED]> wrote:
Dear all,

My SMSC send deliver_sm with source_port, source_subaddress, and
dest_subaddress.

How to capture it and return it back to SMSC?

PDU log is like this:
------------------------------------
2007-02-21 17:38:14 [6147] [7] DEBUG: SMPP PDU 0x8680c88 dump:
2007-02-21 17:38:14 [6147] [7] DEBUG:   type_name: deliver_sm
2007-02-21 17:38:14 [6147] [7] DEBUG:   command_id: 5 = 0x00000005
2007-02-21 17:38:14 [6147] [7] DEBUG:   command_status: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   sequence_number: 70622420 = 0x04359cd4
2007-02-21 17:38:14 [6147] [7] DEBUG:   service_type: NULL
2007-02-21 17:38:14 [6147] [7] DEBUG:   source_addr_ton: 1 = 0x00000001
2007-02-21 17:38:14 [6147] [7] DEBUG:   source_addr_npi: 1 = 0x00000001
2007-02-21 17:38:14 [6147] [7] DEBUG:   source_addr: "xxxxxxxxxx"
2007-02-21 17:38:14 [6147] [7] DEBUG:   dest_addr_ton: 1 = 0x00000001
2007-02-21 17:38:14 [6147] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001
2007-02-21 17:38:14 [6147] [7] DEBUG:   destination_addr: "xxxxxxxxxx"
2007-02-21 17:38:14 [6147] [7] DEBUG:   esm_class: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   protocol_id: 201 = 0x000000c9
2007-02-21 17:38:14 [6147] [7] DEBUG:   priority_flag: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   schedule_delivery_time: NULL
2007-02-21 17:38:14 [6147] [7] DEBUG:   validity_period: NULL
2007-02-21 17:38:14 [6147] [7] DEBUG:   registered_delivery: 1 = 0x00000001
2007-02-21 17:38:14 [6147] [7] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   data_coding: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2007-02-21 17:38:14 [6147] [7] DEBUG:   sm_length: 4 = 0x00000004
2007-02-21 17:38:14 [6147] [7] DEBUG:   short_message: "test"
2007-02-21 17:38:14 [6147] [7] DEBUG:   source_port: 49 = 0x00000031
2007-02-21 17:38:14 [6147] [7] DEBUG:   source_subaddress:
2007-02-21 17:38:14 [6147] [7] DEBUG:    Octet string at 0x8680da0:
2007-02-21 17:38:14 [6147] [7] DEBUG:      len:  7
2007-02-21 17:38:14 [6147] [7] DEBUG:      size: 8
2007-02-21 17:38:14 [6147] [7] DEBUG:      immutable: 0
2007-02-21 17:38:14 [6147] [7] DEBUG:      data: a0 31 30 30 31 38 00
                            .10018.
2007-02-21 17:38:14 [6147] [7] DEBUG:    Octet string dump ends.
2007-02-21 17:38:14 [6147] [7] DEBUG:   dest_subaddress:
2007-02-21 17:38:14 [6147] [7] DEBUG:    Octet string at 0x8680dc8:
2007-02-21 17:38:14 [6147] [7] DEBUG:      len:  10
2007-02-21 17:38:14 [6147] [7] DEBUG:      size: 11
2007-02-21 17:38:14 [6147] [7] DEBUG:      immutable: 0
2007-02-21 17:38:14 [6147] [7] DEBUG:      data: a0 37 30 36 32 32 34
32 30 00                     .70622420.
2007-02-21 17:38:14 [6147] [7] DEBUG:    Octet string dump ends.



Reply via email to