routeros-scripts/doc/sms-action.md
Christian Hesse 009674b5bc bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00

2.4 KiB
Raw Blame History

Act on received SMS

GitHub stars GitHub forks GitHub watchers required RouterOS version Telegram group @routeros_scripts donate with PayPal

⬅️ Go back to main README

Info: This script can not be used on its own but requires the base installation. See main README 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 (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


⬅️ Go back to main README
⬆️ Go back to top