mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
sms-forward: pass origin to $SendNotification2
This commit is contained in:
parent
e6223a3661
commit
0d249d6da4
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
:if ([ :len $Messages ] > 0) do={
|
:if ([ :len $Messages ] > 0) do={
|
||||||
:local Count [ :len $Delete ];
|
:local Count [ :len $Delete ];
|
||||||
$SendNotification2 ({ subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \
|
||||||
message=("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={
|
||||||
|
|
Loading…
Reference in a new issue