mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
sms-forward: pass phone number and message to hook
These are available as $Phone and $Message in hook.
This commit is contained in:
parent
f6e65dd68c
commit
5fbf584d4c
2 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,8 @@ The configuration goes to `global-config-overlay`, this is the only parameter:
|
|||
* `SmsForwardHooks`: an array with pre-defined hooks, where each hook consists
|
||||
of `match` (which is matched against the received message), `allowed-number`
|
||||
(which is matched against the sending phone number or name) and `command`.
|
||||
For `match` and `allowed-number` regular expressions are supported.
|
||||
For `match` and `allowed-number` regular expressions are supported. Actual
|
||||
phone number (`$Phone`) and message (`$Message`) are available for the hook.
|
||||
|
||||
> ℹ️ **Info**: Copy relevant configuration from
|
||||
> [`global-config`](../global-config.rsc) (the one without `-overlay`) to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue