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