aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sms-forward.rsc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sms-forward.rsc b/sms-forward.rsc
index 802da48..74b1b31 100644
--- a/sms-forward.rsc
+++ b/sms-forward.rsc
@@ -13,9 +13,11 @@
:global Identity;
:global SmsForwardHooks;
+:global SmsForwardWorkaround;
:global IfThenElse;
:global LogPrintExit2;
+:global RequiredRouterOS;
:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
@@ -28,6 +30,14 @@ $ScriptLock $0;
$LogPrintExit2 warning $0 ("Receiving of SMS is not enabled.") true;
}
+:if ($SmsForwardWorkaround != true && \
+ [ $RequiredRouterOS $0 "7.8" false ] = true) do={
+ :local AutoErase [ /tool/sms/get auto-erase ];
+ /tool/sms/set auto-erase=(!$AutoErase);
+ /tool/sms/set auto-erase=$AutoErase;
+ :set SmsForwardWorkaround true;
+}
+
$WaitFullyConnected;
:local Settings [ /tool/sms/get ];