2020-03-27 21:50:27 +01:00
|
|
|
|
Forward received SMS
|
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
[◀ Go back to main README](../README.md)
|
|
|
|
|
|
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:27 +01:00
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
RouterOS can receive SMS. This script forwards SMS as notification.
|
|
|
|
|
|
|
|
|
|
A broadband interface with SMS support is required.
|
|
|
|
|
|
2021-06-17 15:23:51 +02:00
|
|
|
|
### Sample notification
|
|
|
|
|
|
2021-11-11 22:42:54 +01:00
|
|
|
|
![sms-forward notification](sms-forward.d/notification.svg)
|
2021-06-17 15:23:51 +02:00
|
|
|
|
|
2020-03-27 21:50:27 +01:00
|
|
|
|
Requirements and installation
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
Just install the script:
|
|
|
|
|
|
|
|
|
|
$ScriptInstallUpdate sms-forward;
|
|
|
|
|
|
|
|
|
|
... and add a scheduler to run it periodically:
|
|
|
|
|
|
2022-05-11 10:28:35 +02:00
|
|
|
|
/system/scheduler/add interval=2m name=sms-forward on-event="/system/script/run sms-forward;" start-time=startup;
|
2020-03-27 21:50:27 +01:00
|
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
|
-------------
|
|
|
|
|
|
2022-09-23 15:07:30 +02:00
|
|
|
|
Notification settings are required for
|
|
|
|
|
[e-mail](mod/notification-email.md),
|
2021-11-16 16:03:25 +01:00
|
|
|
|
[matrix](mod/notification-matrix.md) and/or
|
2022-09-23 15:07:30 +02:00
|
|
|
|
[telegram](mod/notification-telegram.md).
|
|
|
|
|
Also you have to enable receiving of SMS:
|
2020-05-17 22:36:30 +02:00
|
|
|
|
|
2022-05-11 10:28:35 +02:00
|
|
|
|
/tool/sms/set receive-enabled=yes;
|
2020-03-27 21:50:27 +01:00
|
|
|
|
|
|
|
|
|
See also
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
* [Act on received SMS](sms-action.md)
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
[◀ Go back to main README](../README.md)
|
|
|
|
|
[▲ Go back to top](#top)
|