1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

sms-forward: check that the interface is running

This commit is contained in:
Christian Hesse
2023-03-28 10:03:39 +02:00
parent 4f722bc2c9
commit 742c239629

View File

@ -43,6 +43,10 @@ $WaitFullyConnected;
:local Settings [ /tool/sms/get ];
:if ([ /interface/lte/get ($Settings->"port") running ] != true) do={
$LogPrintExit2 info $0 ("The LTE interface is not in running state, skipping.") true;
}
# forward SMS in a loop
:while ([ :len [ /tool/sms/inbox/find ] ] > 0) do={
:local Phone [ /tool/sms/inbox/get ([ find ]->0) phone ];