blob: 3391902706e26fcefed9699b5f2fa61bf94ec394 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Act on received SMS
===================
[⬅️ Go back to main README](../README.md)
> ℹ️ **Info**: This script can not be used on its own but requires the base
> installation. See [main README](../README.md) for details.
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
> ℹ️ **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.
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)
|