|
One I have implemented here, and might be worth me
building in to the source.
Here's the scenario - I have an inbound SMS gateway
which triggers (using an sms-service) a 'get' based request to a remote
server. That server then replies in the same session (it's a get, not a post)
with the response to send to the phone.
Now, what I want to do is to be able to trigger the
inbound sms part of the conversation using a web based call so that the remote
server is still called with a 'get' request, but the response from the server
initiates a new outbound SMS to the phone number it is 'receieved'
from.
Basically
MO -> SMSBOX -> http -> SMSBOX ->
MT
becomes
URL -> SMSBOX -> http -> SMSBOX ->
MT
If the request was a 'post' with a 'response' it
would be easy as we're creating a new message each time, however the 'get' is
all part of the same session.
So, what I've done to achieve this today
is
URL -> http based smsbox forbidden from using
all but one default route -> http -> SMSBOX -> MT
However, I'm think that if I implemented
/cgi-bin/receive-sms we could trigger this whole process much
cleaner.
Anyone else think this would be useful? Also I am
addding parameter compatibility between /cgi-bin/sendsms and http smsboxes so
that they can both accept the same format of parameters.
Alex
CTO
Skywire
http://www.skywire.co.uk/
|
