How to add a new provider?
| Project: | SMS Gateway |
| Version: | 5.x-1.0 |
| Component: | Service Providers |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Hello, I would like to create a different gateway, i have not a cliccktell accunt, instead i would like to use my O2 Ireland account to send sms through this module,I know wich are the operationd to do, , i mean to wich uri post username password, and the name of these variables, but i don't know how to write it in php :(
I understood that i have to crate a Sms_name.module, is possible to modify a bit the cliccatel module to let it work with 02 ireland?
the operation to do are first a "post" fot the login to this address:
page method="POST" uri="https://www.o2online.ie/amserver/UI/Login?org=o2ext"
and i have to post IDToken1 and IDToken2 with the data of my account (phonenumber and psw)
var name="IDToken1" value="%%phonenumber%%"
var name="IDToken2" value="%%password%%"
Then i have to pass trough this page (maybe because fo cookies)
page uri="http://www.o2online.ie/NASApp/TM/O2/send.jsp?wcmArea="
And then post the message and the destination number here:
page method="POST" uri="http://www.o2online.ie/NASApp/TM/O2/processSendMessage.jsp"
var name="msisdn" value="%%destinationNumber%%" />
var name="Msg" value="%%message%%" />
var name="Msg1" value="%%message%%" />
var name="msgcount" value="" />
var name="country" value="" />
var name="recipients" value="1" />
var name="grpSTR" value="" />
var name="ConSTR" value="" />
var name="command" value="send" />
var name="NumMessages" value="1" />
The aother variables must have that values.
I would like to know if someone can please help me to add this gateway to the module
Thanks Filippo
