Hi lists,
I have commited today a patchset to CVS introducing a new system-type 'generic'
to smsc = http connection type.
The 'send-url' HTTP URI can used the same escape codes as sms-service's
'get-url' to pupulate the values from the msg struct passed from smsbox to
bearerbox for MT submission.
A sample group looks like this:
group = smsc
smsc = http
system-type = generic
port = 13015
send-url = "http://<foobar>/<uri>?from=%P&to=%p&text=%b"
status-success-regex = "ok"
status-permfail-regex = "failure"
status-tempfail-regex = "retry later"
where you see that the URL is poulated with values directly from the message
struct and not within the gw/smsc/smsc_http.c module itself. This approach makes
the calling of various HTTP APIs more flexible and doesn't require adding a new
code fragment to the module.
The result interpretation is done via 3 regex expressions matching against the
HTTP response body to indicate the status of the message submission, either
success, permanent failure or temporary failure. Which results in appropriate
logging and handling of retry queues.
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------