2020-03-27 20:50:27 +00:00
|
|
|
|
Forward received SMS
|
|
|
|
|
====================
|
|
|
|
|
|
|
|
|
|
[◀ Go back to main README](../README.md)
|
|
|
|
|
|
2022-02-12 12:05:56 +00:00
|
|
|
|
> ℹ️ **Info**: This script can not be used on its own but requires the base
|
2022-02-11 22:34:39 +00:00
|
|
|
|
> installation. See [main README](../README.md) for details.
|
2021-05-03 13:07:50 +00:00
|
|
|
|
|
2020-03-27 20:50:27 +00:00
|
|
|
|
Description
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
RouterOS can receive SMS. This script forwards SMS as notification.
|
|
|
|
|
|
|
|
|
|
A broadband interface with SMS support is required.
|
|
|
|
|
|
2021-06-17 13:23:51 +00:00
|
|
|
|
### Sample notification
|
|
|
|
|
|
2022-10-20 08:58:48 +00:00
|
|
|
|
![sms-forward notification](sms-forward.d/notification.avif)
|
2021-06-17 13:23:51 +00:00
|
|
|
|
|
2020-03-27 20:50:27 +00:00
|
|
|
|
Requirements and installation
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
Just install the script:
|
|
|
|
|
|
|
|
|
|
$ScriptInstallUpdate sms-forward;
|
|
|
|
|
|
|
|
|
|
... and add a scheduler to run it periodically:
|
|
|
|
|
|
2022-05-11 08:28:35 +00:00
|
|
|
|
/system/scheduler/add interval=2m name=sms-forward on-event="/system/script/run sms-forward;" start-time=startup;
|
2020-03-27 20:50:27 +00:00
|
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
|
-------------
|
|
|
|
|
|
2022-09-23 13:07:30 +00:00
|
|
|
|
Notification settings are required for
|
|
|
|
|
[e-mail](mod/notification-email.md),
|
2021-11-16 15:03:25 +00:00
|
|
|
|
[matrix](mod/notification-matrix.md) and/or
|
2022-09-23 13:07:30 +00:00
|
|
|
|
[telegram](mod/notification-telegram.md).
|
|
|
|
|
Also you have to enable receiving of SMS:
|
2020-05-17 20:36:30 +00:00
|
|
|
|
|
2022-05-11 08:28:35 +00:00
|
|
|
|
/tool/sms/set receive-enabled=yes;
|
2020-03-27 20:50:27 +00:00
|
|
|
|
|
|
|
|
|
See also
|
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
* [Act on received SMS](sms-action.md)
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
[◀ Go back to main README](../README.md)
|
|
|
|
|
[▲ Go back to top](#top)
|