SIP2SIM and SMS: Difference between revisions
(Now appears to require a username attribute) |
|||
Line 15: | Line 15: | ||
Example: |
Example: |
||
curl --silent --get --form-string iccid=894453852500xxxxxxx --form-string password=secret --form-string message="Hello Alex" --form-string originator="Office" http://sms.aa.net.uk/sms.cgi |
curl --silent --get --form-string iccid=894453852500xxxxxxx --form-string password=secret --form-string message="Hello Alex" --form-string originator="Office" --form-string username=894453852500xxxxxxx http://sms.aa.net.uk/sms.cgi |
||
SMS message to 894453852500xxxxxxx |
SMS message to 894453852500xxxxxxx |
||
OK: Queued |
OK: Queued |
Revision as of 19:35, 22 October 2014
SMS with an AAISP Number
If you have a VoIP number from AAISP that supports SMS (see VoIP - SMS for a list) then SMSs can be sent to and from the SIM. This will need 2 settings on the Control Pages to be set:
- Set the 'MO SMS URL' field on the Control Page for the SIM to be the VoIP number (+44 format)
- Set the 'SMS Inbound' field on the Control Page for the VoIP number to be the ICCID
Sending a SMS to the SIM using Curl
You can send a SMS to the SIM using curl (a command line tool available on most operating systems, and so this can be integrated in to your own systems.
Be sure to enter a 'MT Password'
Example:
curl --silent --get --form-string iccid=894453852500xxxxxxx --form-string password=secret --form-string message="Hello Alex" --form-string originator="Office" --form-string username=894453852500xxxxxxx http://sms.aa.net.uk/sms.cgi SMS message to 894453852500xxxxxxx OK: Queued
You can also send via our Send a Text page - Use the following fieled: Password, Message, Originator and ICCID fields.
More details on the SMS Page