Thanks ! Now it's forwarding SMS to the script !!
Added this to config:
group = smsbox-route
smsbox-id = smsbox
smsc-id = Xxx
shortcode = 54321
group = sms-service
keyword = default
catch-all = true
get-url = ""
One problem again:
Now i receive SMS to my mobile with text:
[Empty reply from service provider]
How to fix this ?
Tuesday, April 28, 2009, 8:33:16 PM, you wrote:
|
Don't use keyword & keyword-regex at the same time. keyword-regex shadows keyword. .* doesn't match ggg or abc.
Also this won't work until you configure smsbox-route. Bearerbox doesn't know where to deliver your sms.
Nikos ----- Original Message ----- From: [email protected] Sent: Tuesday, April 28, 2009 8:25 PM Subject: forward sms to script - Here is the incoming log's SMS with text: ggg 2009-04-28 20:20:09 [11532] [7] DEBUG: SMPP PDU 0x82cd738 dump: 2009-04-28 20:20:09 [11532] [7] DEBUG: type_name: deliver_sm 2009-04-28 20:20:09 [11532] [7] DEBUG: command_id: 5 = 0x00000005 2009-04-28 20:20:09 [11532] [7] DEBUG: command_status: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: sequence_number: 1 = 0x00000001 2009-04-28 20:20:09 [11532] [7] DEBUG: service_type: NULL 2009-04-28 20:20:09 [11532] [7] DEBUG: source_addr_ton: 1 = 0x00000001 2009-04-28 20:20:09 [11532] [7] DEBUG: source_addr_npi: 1 = 0x00000001 2009-04-28 20:20:09 [11532] [7] DEBUG: source_addr: "123456789" 2009-04-28 20:20:09 [11532] [7] DEBUG: dest_addr_ton: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 2009-04-28 20:20:09 [11532] [7] DEBUG: destination_addr: "54321" 2009-04-28 20:20:09 [11532] [7] DEBUG: esm_class: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: protocol_id: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: priority_flag: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: schedule_delivery_time: NULL 2009-04-28 20:20:09 [11532] [7] DEBUG: validity_period: NULL 2009-04-28 20:20:09 [11532] [7] DEBUG: registered_delivery: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: data_coding: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 2009-04-28 20:20:09 [11532] [7] DEBUG: sm_length: 3 = 0x00000003 2009-04-28 20:20:09 [11532] [7] DEBUG: short_message: "ggg" 2009-04-28 20:20:09 [11532] [7] DEBUG: SMPP PDU dump ends. 2009-04-28 20:20:09 [11532] [7] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! 2009-04-28 20:20:54 [11532] [4] WARNING: smsbox_list empty! here is the full config again: group = core admin-port = 13000 admin-password = "123" admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" status-password = "123" log-file = "/home/wgp/kannel/logs/kannel.log" log-level = 0 access-log = "/home/wgp/kannel/logs/access.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" store-type = file store-location = /home/wgp/kannel/kannel.store smsbox-port = 13001 group = sms-service keyword = default keyword-regex = .* catch-all = true get-url = "" group = smsc smsc-id = Xxx smsc = smpp host = 123.123.130.226 port = 2325 receive-port = 2325 smsc-username = "123" smsc-password = "123" system-type = "VMA" address-range = "" group = smsbox bearerbox-host = localhost The problem: Kannel is not forwarding SMS to receive.php script.. |
--
Best regards,
Waza123 mailto:[email protected]
