Hello Kannel Users, Iam in a bit of a fix here.
I have installed kannel on ubuntu server and is working just fine. The server is connected to 3 different SMSC operators via smpp. I have setup another remote server which is on the Local Area Network(192.168.1.30) which is connecting to the Ubuntu server via the Playsms Web Interface. Am running some short codes which are defined on the main Ubuntu server with connection to SMSC operators. I want when a message comes to the main ubuntu server with Keyword Mwamba to be routed to the other server I have installed which is on the Local Area Network(192.168.1.30). Now since this server is behind a router, I opened port 80 on the router and directed all traffic coming through this port to go to the 192.168.1.30 machine. Below is an extract from my kannel.conf #Mwamba Service group = sms-service keyword = mwamba get-url = "http://router public IP Address/check.php?a=%a&s=%s&p=%p&k=%k" strip-keyword = false omit-empty = true The check.php script is hosted on the 192.168.1.30 machine. When I send a message from my mobile phone with mwamba as keyword, kannel log shows the following: 2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]* 2011-09-27 10:23:59 [16541] [4] INFO: Starting to service <Mwamba 126980> from <+260948984786> to <3011> 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8 (gwlib/fdset.c:poller) 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9 (gwlib/http.c:write_request_thread) 2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps to pid 16541. 2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9 (gwlib/http.c:write_request_thread) maps to pid 16541. 2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests. 2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public IP Address/check.php?a=Mwamba+126980&s=126980&p=%2B<http://81.199.101.203/check.php?a=Mwamba+126980&s=126980&p=%2B260977827569&k=Mwamba%27:> 260948984786&k=Mwamba':<http://81.199.101.203/check.php?a=Mwamba+126980&s=126980&p=%2B260977827569&k=Mwamba%27:> 2011-09-27 10:23:59 [16541] [9] DEBUG: Scheme: http:// <http:> 2011-09-27 10:23:59 [16541] [9] DEBUG: Host: router public IP Address 2011-09-27 10:23:59 [16541] [9] DEBUG: Port: 80 2011-09-27 10:23:59 [16541] [9] DEBUG: Username: (null) 2011-09-27 10:23:59 [16541] [9] DEBUG: Password: (null) 2011-09-27 10:23:59 [16541] [9] DEBUG: Path: /check.php 2011-09-27 10:23:59 [16541] [9] DEBUG: Query: a=Mwamba+126980&s=126980&p=%2B260948984786&k=Mwamba 2011-09-27 10:23:59 [16541] [9] DEBUG: Fragment: (null) 2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router public IP Address:80' (fd=27). 2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting 2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket 2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request: 2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700: 2011-09-27 10:23:59 [16541] [8] DEBUG: len: 151 2011-09-27 10:23:59 [16541] [8] DEBUG: size: 1024 2011-09-27 10:23:59 [16541] [8] DEBUG: immutable: 0 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 47 45 54 20 2f 63 68 65 63 6b 2e 70 68 70 3f 61 GET /check.php?a 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 3d 4d 77 61 6d 62 61 2b 31 32 36 39 38 30 26 73 =Mwamba+126980&s 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 3d 31 32 36 39 38 30 26 70 3d 25 32 42 32 36 30 =126980&p=%2B260 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 39 37 37 38 32 37 35 36 39 26 6b 3d 4d 77 61 6d 948984786&k=Mwam 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 62 61 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 ba HTTP/1.1..Hos 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 74 3a 20 38 31 2e 31 39 39 2e 31 30 31 2e 32 30 t: router public IP Address 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 33 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b ..Connection: k 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 72 2d eep-alive..User- 2011-09-27 10:23:59 [16541] [8] DEBUG: data: 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f 31 2e Agent: Kannel/1. It then goes quite and does not send back feedback until after about 20 or 30minutes thats when it sends response to my phone with "Could not fetch content, sorry". I can feel it in my bones that am almost there, someone please help me cross over the line with this. As always, a big thank you for your kind response. -- Mwamba Chishimba "For I am persuaded, that neither death, nor life, nor angels, nor principalities, nor powers, nor things present, nor things to come, nor height, nor depth, nor any other creature, shall be able to separate us from the love of God, which is in Christ Jesus our Lord"
