mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
sms-forward: mark every message with an envelope
This commit is contained in:
parent
a943668d66
commit
32c3f60db4
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@
|
|||
$LogPrint warning $ScriptName ("Failed to remove message: " . $Err);
|
||||
}
|
||||
} else={
|
||||
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \
|
||||
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:set Messages ($Messages . "\n\n" . [ $SymbolForNotification "incoming-envelope" ] . \
|
||||
"On " . $SmsVal->"timestamp" . " type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
:foreach Hook in=$SmsForwardHooks do={
|
||||
:if ($Phone~($Hook->"allowed-number") && ($SmsVal->"message")~($Hook->"match")) do={
|
||||
:if ([ $ValidateSyntax ($Hook->"command") ] = true) do={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue