mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 01:34:32 +02:00
sms-forward: delay after removal...
... to give the SIM card some time to succeed. Removing several messages one after another fails without this.
This commit is contained in:
parent
f095b581e7
commit
9085780562
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,7 @@
|
|||
($SmsVal->"message")~("^:cmd " . $Settings->"secret" . " script ")) do={
|
||||
$LogPrint debug $ScriptName ("Removing SMS, which started a script.");
|
||||
/tool/sms/inbox/remove $Sms;
|
||||
:delay 50ms;
|
||||
} else={
|
||||
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \
|
||||
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
|
||||
|
@ -93,6 +94,7 @@
|
|||
" by " . $Identity . " from " . $Phone . ":" . $Messages) });
|
||||
:foreach Sms in=$Delete do={
|
||||
/tool/sms/inbox/remove $Sms;
|
||||
:delay 50ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue