Template:Networking rut manual sms gateway: Difference between revisions
No edit summary |
No edit summary |
||
Line 67: | Line 67: | ||
<ul> | <ul> | ||
<li>192.168.1.1 - router's IP address. (Replace it with your [[{{{name}}}_LAN#General_Setup|LAN IP]] or [[{{{name}}}_WAN#Operation_Modes|WAN IP]] (when connecting remotely))</li> | <li>192.168.1.1 - router's IP address. (Replace it with your [[{{{name}}}_LAN#General_Setup|LAN IP]] or [[{{{name}}}_WAN#Operation_Modes|WAN IP]] (when connecting remotely))</li> | ||
<li>SMS related | <li>SMS related post/get commands. Possible values are: | ||
<ul> | <ul> | ||
<li><i>sms_list</i> - view all SMS messages in storage</li> | <li><i>sms_list</i> - view all SMS messages in storage</li> | ||
<li><i>sms_read</i> - read a single SMS message by specified SMS index</li> | <li><i>sms_read</i> - read a single SMS message by specified SMS index (number)</li> | ||
<li><i>sms_send</i> - </li> | <li><i>sms_send</i> - send an SMS message to specified recipient</li> | ||
<li><i>sms_total</i> - </li> | <li><i>sms_total</i> - display SMS storage statistics</li> | ||
<li><i>sms_delete</i> - </li> | <li><i>sms_delete</i> - delete a single SMS message by specified SMS index (number)</li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
<li>username - SMS post/get configuration user name</li> | <li>username - SMS post/get configuration user name</li> | ||
<li>password - SMS post/get configuration password</li> | <li>password - SMS post/get configuration password</li> | ||
<li>number - SMS message index or (depending on context) recipient's phone number. Phone number format is: | <li>number - SMS message index or (depending on context) recipient's phone number. SMS message indexes can be viewed with the <i>sms_list</i> command.<br>Phone number format is: | ||
<ul> | <ul> | ||
<li>00 - number must be preceded by two zeros</li> | <li><i>00</i> - number must be preceded by two zeros</li> | ||
<li><country_code> - the next following element is the number holder's country code</li> | <li><i><country_code></i> - the next following element is the number holder's country code</li> | ||
<li><receivers_number> - phone number of the recipient</li> | <li><i><receivers_number></i> - phone number of the recipient</li> | ||
</ul> | </ul> | ||
For example, a valid number would be <b>0037012345678</b> (370 is country code and 12345678 is the receiver's phone number) | For example, a valid number would be <b>0037012345678</b> (370 is country code and 12345678 is the receiver's phone number) |
Revision as of 09:41, 29 March 2019
Summary
The SMS Gateway service is used to set up various SMS related (mostly automated) functions. This chapter is a summary of the SMS Gateway service of {{{name}}} routers.
Post/Get Configuration
The Post/Get Configuration section is used to turn ON and configure SMS related post/get settings. When the function is enabled, it provides you with the possibility to perform SMS related action requests by writing them in the URL field of your web browser.
The figure below is an example of the Post/Get Configuration page and the table below provides information on fields contained in that page:
[[File:{{{file_post_get}}}]]
Field name | Value | Description |
---|---|---|
Enable | yes | no; Default: no | Toggles SMS post/get ON or OFF |
Username | string; Default: user1 | User name used for authorization when sending post/get requests |
Password | string; Default: user_pass | Password used for authorization when sending post/get requests |
SMS Post/Get usage examples
Use a web browser or any other compatible software to send HTTP post/get strings to the router. The router must be connected to a GSM network when using the Send SMS feature. Below you will find a table with possible actions and examples on how to use them:
Action | Post/get URL examples |
---|---|
View mobile messages list | http://192.168.1.1/cgi-bin/sms_list?username=user1&password=user_pass |
Read mobile message | http://192.168.1.1/cgi-bin/sms_read?username=user1&password=user_pass&number=1 |
Send mobile message | http://192.168.1.1/cgi-bin/sms_send?username=user1&password=user_pass&number=0037060000001&text=testmessage |
View mobile messages total | http://192.168.1.1/cgi-bin/sms_total?username=user1&password=user_pass |
Delete mobile message | http://192.168.1.1/cgi-bin/sms_delete?username=user1&password=user_pass&number=1 |
- 192.168.1.1 - router's IP address. (Replace it with your [[{{{name}}}_LAN#General_Setup|LAN IP]] or [[{{{name}}}_WAN#Operation_Modes|WAN IP]] (when connecting remotely))
- SMS related post/get commands. Possible values are:
- sms_list - view all SMS messages in storage
- sms_read - read a single SMS message by specified SMS index (number)
- sms_send - send an SMS message to specified recipient
- sms_total - display SMS storage statistics
- sms_delete - delete a single SMS message by specified SMS index (number)
- username - SMS post/get configuration user name
- password - SMS post/get configuration password
- number - SMS message index or (depending on context) recipient's phone number. SMS message indexes can be viewed with the sms_list command.
Phone number format is:- 00 - number must be preceded by two zeros
- <country_code> - the next following element is the number holder's country code
- <receivers_number> - phone number of the recipient
For example, a valid number would be 0037012345678 (370 is country code and 12345678 is the receiver's phone number)
- text - SMS message text