Kannel bearerbox version `1.4.3'.
Build `Sep 19 2012 19:19:48', compiler `4.4.5'.
System Linux, release 3.2.13-grsec-xxxx-grs-ipv6-64, version #1 SMP Thu Mar
29 09:48:59 UTC 2012, machine x86_64.
Libxml version 2.7.8.
Using OpenSSL 0.9.8o 01 Jun 2010.
Compiled with MySQL 5.1.61, using MySQL 5.1.61.
Using native malloc.
Hello all,
I am having issue with empty ā%Pā variable when receiving SMS-MO through
SMPP connections with Kannel.
Here is my config file for sms-service :
group = sms-service
keyword = default
omit-empty = true
catch-all = true
max-messages = 0
get-url =
http://my-url/my-file.php?msisdn=%p&keyword=%k&text=%a&otext=%b&smsc=%i&smsid=%I&receiver=%P&bident=%B&date=%t&ts=%T&coding=%c&class=%m&charset=%C&udh=%u
Here is a received SMS-MO :
2013-04-11 12:04:42 Receive SMS [SMSC:supplier] [SVC:] [ACT:] [BINF:146]
[FID:] [from:33600000000] [to:36312] [flags:-1:0:-1:0:-1] [msg:4:stop]
[udh:0:]
2013-04-11 12:04:42 SMS HTTP-request sender:33600000000 request: 'OK' url:
'http://my-url/my-file.php?msisdn=33600000000&keyword=stop&text=stop&otext=stop&smsc=supplier&smsid=588621a2-e6ab-449a-ad8d-e04c486d8504&receiver=&bident=146&date=2013-04-11+10:04:42&ts=1365674682&coding=0&class=-1&charset=UTF-8&udh='
reply: 200 '<< successful >>'
2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP[supplier]: Got PDU:
2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP PDU 0x7f5bf43a0a00 dump:
2013-04-11 12:04:50 [24461] [9] DEBUG: type_name: deliver_sm
2013-04-11 12:04:50 [24461] [9] DEBUG: command_id: 5 = 0x00000005
2013-04-11 12:04:50 [24461] [9] DEBUG: command_status: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: sequence_number: 17202 = 0x00004332
2013-04-11 12:04:50 [24461] [9] DEBUG: service_type: "1304"
2013-04-11 12:04:50 [24461] [9] DEBUG: source_addr_ton: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: source_addr_npi: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: source_addr: "33600000001"
2013-04-11 12:04:50 [24461] [9] DEBUG: dest_addr_ton: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: dest_addr_npi: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: destination_addr: "36312"
2013-04-11 12:04:50 [24461] [9] DEBUG: esm_class: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: protocol_id: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: priority_flag: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: schedule_delivery_time: NULL
2013-04-11 12:04:50 [24461] [9] DEBUG: validity_period: NULL
2013-04-11 12:04:50 [24461] [9] DEBUG: registered_delivery: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: replace_if_present_flag: 0 =
0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: data_coding: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: sm_default_msg_id: 0 = 0x00000000
2013-04-11 12:04:50 [24461] [9] DEBUG: sm_length: 4 = 0x00000004
2013-04-11 12:04:50 [24461] [9] DEBUG: short_message: "stop"
2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP PDU dump ends.
and a second one :
2013-04-11 12:04:50 Receive SMS [SMSC:supplier] [SVC:] [ACT:] [BINF:1304]
[FID:] [from:33600000001] [to:36312] [flags:-1:0:-1:0:-1] [msg:4:stop]
[udh:0:]
2013-04-11 12:04:50 SMS HTTP-request sender:33600000001 request: 'OK' url:
'http://my-url/my-file.php?msisdn=33600000001&keyword=stop&text=stop&otext=stop&smsc=supplier&smsid=3b6010d7-6120-460a-b396-2a928f23a73d&receiver=&bident=1304&date=2013-04-11+10:04:50&ts=1365674690&coding=0&class=-1&charset=UTF-8&udh='
reply: 200 '<< successful >>'
2013-04-11 12:04:42 [24461] [9] DEBUG: SMPP[supplier]: Got PDU:
2013-04-11 12:04:42 [24461] [9] DEBUG: SMPP PDU 0x7f5bf43a0a00 dump:
2013-04-11 12:04:42 [24461] [9] DEBUG: type_name: deliver_sm
2013-04-11 12:04:42 [24461] [9] DEBUG: command_id: 5 = 0x00000005
2013-04-11 12:04:42 [24461] [9] DEBUG: command_status: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: sequence_number: 17201 = 0x00004331
2013-04-11 12:04:42 [24461] [9] DEBUG: service_type: "146"
2013-04-11 12:04:42 [24461] [9] DEBUG: source_addr_ton: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: source_addr_npi: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: source_addr: "33600000000"
2013-04-11 12:04:42 [24461] [9] DEBUG: dest_addr_ton: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: dest_addr_npi: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: destination_addr: "36312"
2013-04-11 12:04:42 [24461] [9] DEBUG: esm_class: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: protocol_id: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: priority_flag: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: schedule_delivery_time: NULL
2013-04-11 12:04:42 [24461] [9] DEBUG: validity_period: NULL
2013-04-11 12:04:42 [24461] [9] DEBUG: registered_delivery: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: replace_if_present_flag: 0 =
0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: data_coding: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: sm_default_msg_id: 0 = 0x00000000
2013-04-11 12:04:42 [24461] [9] DEBUG: sm_length: 4 = 0x00000004
2013-04-11 12:04:42 [24461] [9] DEBUG: short_message: "stop"
2013-04-11 12:04:42 [24461] [9] DEBUG: SMPP PDU dump ends.
As you can see I have "[to:36312]" in my access.log, but the called URL
shows "&receiver=".
How can I retreive the receiver's phone number in my URL ?
Thank you in advance for your help !
Best regards,
Olivier PELLEGRINO
France