mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-10 13:15:01 +02:00
add doc/sms-action.md
This commit is contained in:
parent
747af21bea
commit
ed2718da2a
2 changed files with 50 additions and 0 deletions
49
doc/sms-action.md
Normal file
49
doc/sms-action.md
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
Act on received SMS
|
||||||
|
===================
|
||||||
|
|
||||||
|
[◀ Go back to main README](../README.md)
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
RouterOS can act on received SMS. Reboot the device from remote or do
|
||||||
|
whatever is required.
|
||||||
|
|
||||||
|
A broadband interface with SMS support is required.
|
||||||
|
|
||||||
|
Requirements and installation
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
Just install the script:
|
||||||
|
|
||||||
|
$ScriptInstallUpdate sms-action;
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
-------------
|
||||||
|
|
||||||
|
The configuration goes to `global-config-overlay`, this is the only parameter:
|
||||||
|
|
||||||
|
* `SmsAction`: an array with pre-defined actions
|
||||||
|
|
||||||
|
Then enable SMS actions:
|
||||||
|
|
||||||
|
/ tool sms set allowed-number=+491234567890 receive-enabled=yes secret=s3cr3t;
|
||||||
|
|
||||||
|
Usage and invocation
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Send a SMS from allowed number to your device's phone number:
|
||||||
|
|
||||||
|
:cmd s3cr3t script sms-action action=reboot;
|
||||||
|
|
||||||
|
The value given by "`action=`" is one of the pre-defined actions from
|
||||||
|
`SmsAction`.
|
||||||
|
|
||||||
|
See also
|
||||||
|
--------
|
||||||
|
|
||||||
|
* [Forward received SMS](sms-forward.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
[◀ Go back to main README](../README.md)
|
||||||
|
[▲ Go back to top](#top)
|
|
@ -3,6 +3,7 @@
|
||||||
# Copyright (c) 2018-2020 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2018-2020 Christian Hesse <mail@eworm.de>
|
||||||
#
|
#
|
||||||
# run action on received SMS
|
# run action on received SMS
|
||||||
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/sms-action.md
|
||||||
|
|
||||||
:global SmsAction;
|
:global SmsAction;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue