Re[2]: forward sms to scriptUse smsc=%i in your URL, not smsc=$i Nikos ----- Original Message ----- From: [email protected] To: Elton Hoxha Cc: [email protected] Sent: Tuesday, April 28, 2009 7:53 PM Subject: Re[2]: forward sms to script
Nope, not working... I have report that my sms come inside, i can see it in console, but its not forwarding to the script.. here is the full config: group = core admin-port = 13000 admin-password = "3333444" admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" status-password = "kkkk" 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-regex = .* catch-all = true get-url = "http://_my_addr.com/receive.php?phone=%p&text=%r&smsc=$i&time=%t" group = smsc smsc-id = Xxx smsc = smpp host = 123.123.130.226 port = 2325 receive-port = 2325 smsc-username = "123" smsc-password = "321" system-type = "VMA" address-range = "" group = smsbox bearerbox-host = localhost Tuesday, April 28, 2009, 7:45:21 PM, you wrote: This should work if your application works properly. group = sms-service keyword-regex = .* catch-all = true get-url = "http://my_site.com/receive.php?phone=%p&text=%r&smsc=$i&time=%t Or group = sms-service keyword=default get-url = "http://my_site.com/receive.php?phone=%p&text=%r&smsc=$i&time=%t On Tue, Apr 28, 2009 at 6:30 PM, <[email protected]> wrote: How to catch the incoming messages and forward them to php script ? i'm trying every way, and does not working.. group = sms-service keyword-regex = ^[a-z]+$ get-url = "http://my_site.com/receive.php?phone=%p&text=%r&smsc=$i&time=%t or this group = sms-service keyword-regex = ^[a-z]+$ exec = "php script.php %p %r %t" with many other regexp ^.*$ , or .* Please help ! -- Best regards, Waza123 mailto:[email protected]
