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



Reply via email to