mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-forward: use $SendNotification2
This commit is contained in:
parent
557016387c
commit
123fe01115
1 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global WaitFullyConnected;
|
:global WaitFullyConnected;
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ :len $Messages ] > 0) do={
|
:if ([ :len $Messages ] > 0) do={
|
||||||
:local Count [ :len $Delete ];
|
:local Count [ :len $Delete ];
|
||||||
$SendNotification ([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone) \
|
$SendNotification2 ({ subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \
|
||||||
("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \
|
message=("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \
|
||||||
" by " . $Identity . " from " . $Phone . ":" . $Messages);
|
" by " . $Identity . " from " . $Phone . ":" . $Messages) });
|
||||||
:foreach Sms in=$Delete do={
|
:foreach Sms in=$Delete do={
|
||||||
/ tool sms inbox remove $Sms;
|
/ tool sms inbox remove $Sms;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue