Custom MO parameters on generic http-smsc

This patch allows you to change the parameter names used when receiving incoming messages (MO’s) using the generic http-smsc.

To use it, you need to add a few extra entries for the parameters you want to be redefined. The format is: generic-param-<original-name> = <new-name>

For example, to redefine from, to, smsc and text:

generic-param-from = “phoneNumber”
generic-param-to = “shortCode”
generic-param-text = “message”
generic-param-smsc = “carrier”

That’s it, you’ll be able to use an url like this then:

http://myhost:myport/sms?phoneNumber=234567890&shortCode=1234&message=Hello+World&carrier=mycarrier

Download the patch from here.

As usual, try it and let me know.

-Alex

Comments (1)

[...] a new version of my former patch to add support for custom MO parameters on the “generic” [...]

Leave a comment

Your comment