You only need a simple http get php script to capture from, to, and text value. 
It should be something like $_GET['from'], $_GET['to'], $_GET['text'].



On Mar 8, 2011, at 6:59 AM, Lee Vidor wrote:

> Hi All,
> 
> I am attempting to set up kannel to send messages to a http PHP page.
> This is for testing purposes.
> I currently use opensmppbox so my kannel server can accept incoming
> requests from SMPP clients.
> 
> What I then want to do is send these requests to a basic PHP site
> hosted on the local server.
> 
> My SMSC config is below:
> 
> group = smsc
> smsc = http
> smsc-id = testhttp
> system-type = generic
> smsc-username = tester
> smsc-password = foobar
> host = localhost
> port = 13014
> send-url = "http://localhost/test/sms.php?from=%P&to=%p&text=%b";
> status-success-regex = "ok"
> status-permfail-regex = "failure"
> status-tempfail-regex = "retry later"
> generic-foreign-id-regex = "<id>(.+)</id>"
> generic-message-sent = "Message sent with ID: %I"
> generic-status-sent = 200
> generic-status-error = 404
> 
> I have seen a lot of people mention that they have created a PHP page
> already that can receive http get and post requests, but none have
> submitted code examples. If anyone has a PHP page that they have
> written as a example I can use to send my HTTP request to. It doesn't
> need to go any where just display the message on the page.
> 
> 
> Thanks
> 
> 
> 
> 

Willy Mularto
F300HD+MR18DE







Reply via email to