mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 18:24:34 +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
|
@ -58,7 +58,8 @@ $WaitFullyConnected;
|
|||
$LogPrintExit2 info $0 ("Running hook '" . $Hook->"match" . "': " . \
|
||||
$Hook->"command") false;
|
||||
:do {
|
||||
[ :parse ($Hook->"command") ];
|
||||
:local Command [ :parse ($Hook->"command") ];
|
||||
$Command Phone=$Phone Message=($SmsVal->"message");
|
||||
:set Messages ($Messages . "\n\nRan hook '" . $Hook->"match" . "':\n" . \
|
||||
$Hook->"command");
|
||||
} on-error={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue