aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-11 10:03:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-17 14:05:03 +0200
commit5fbf584d4ca128e5acfd0424ec66e2edc24dd946 (patch)
treeb88e4dc398b2d79d855e01ef52cbd17c42b2733a /doc
parentf6e65dd68c20d951564e3a52475522a83c2f9a3d (diff)
sms-forward: pass phone number and message to hook
These are available as $Phone and $Message in hook.
Diffstat (limited to 'doc')
-rw-r--r--doc/sms-forward.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/sms-forward.md b/doc/sms-forward.md
index a323157..5967903 100644
--- a/doc/sms-forward.md
+++ b/doc/sms-forward.md
@@ -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