2020-03-27 21:50:18 +01:00
Act on received SMS
===================
2024-03-06 14:30:19 +01:00
[](https://github.com/eworm-de/routeros-scripts/stargazers)
[](https://github.com/eworm-de/routeros-scripts/network)
[](https://github.com/eworm-de/routeros-scripts/watchers)
2024-07-16 13:45:16 +02:00
[](https://mikrotik.com/download/changelogs/)
2024-03-06 14:30:19 +01:00
[](https://t.me/routeros_scripts)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick& hosted_button_id=A4ZXBD6YS2W8J)
2023-01-10 14:45:27 +01:00
[⬅️ Go back to main README ](../README.md )
2020-03-27 21:50:18 +01:00
2022-02-12 13:05:56 +01:00
> ℹ ️ **Info**: This script can not be used on its own but requires the base
2022-02-11 23:34:39 +01:00
> installation. See [main README](../README.md) for details.
2021-05-03 15:07:50 +02:00
2020-03-27 21:50:18 +01:00
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
2023-06-07 14:13:46 +02:00
> ℹ ️ **Info**: Copy relevant configuration from
> [`global-config`](../global-config.rsc) (the one without `-overlay`) to
> your local `global-config-overlay` and modify it to your specific needs.
2020-03-27 21:50:18 +01:00
Then enable SMS actions:
2022-05-11 10:28:24 +02:00
/tool/sms/set allowed-number=+491234567890 receive-enabled=yes secret=s3cr3t;
2020-03-27 21:50:18 +01:00
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 )
---
2023-01-10 14:45:27 +01:00
[⬅️ Go back to main README ](../README.md )
[⬆️ Go back to top ](#top )