Christian Hesse
d0adf9974e
sms-forward: :do ... on-error=... -> :onerror ... do=...
2025-05-22 10:13:52 +02:00
Christian Hesse
01f3cb91e7
sms-forward: add error handling on message removal
2025-05-13 09:22:45 +02:00
Christian Hesse
9085780562
sms-forward: delay after removal...
...
... to give the SIM card some time to succeed. Removing several messages
one after another fails without this.
2025-05-13 09:22:45 +02:00
Christian Hesse
15248ffd39
sms-forward: check for global config to be ready
2025-05-08 09:51:08 +02:00
Christian Hesse
24ea16cf91
sms-forward: fail if global functions do not become ready
2025-05-08 09:51:07 +02:00
Christian Hesse
aae9b4d4e3
sms-forward: use :onerror for outer block
2025-05-08 09:51:07 +02:00
Christian Hesse
4bfb591fa0
bump required RouterOS version for all scripts
2025-02-07 17:44:41 +01:00
Christian Hesse
7addf2e53a
sms-forward: use short url rsc.eworm.de
2025-01-29 14:14:27 +01:00
Christian Hesse
9e3729c279
update copyright for 2025
2025-01-02 00:04:06 +01:00
Christian Hesse
a78fe98fd0
sms-forward: use $ExitError to indicate unintentional error
2024-12-09 11:49:50 +01:00
Christian Hesse
6fbafe76ba
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.14 anyway.
2024-07-16 13:50:22 +02:00
Christian Hesse
009674b5bc
bump RouterOS requirement for all scripts and modules...
...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse
be1aeccbe5
sms-forward: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
19802c0b69
global-functions: $LogPrintOnce: drop support for exit
...
This is not widely adopted or used, so let's just drop it - no
compatibility.
2024-03-12 20:37:57 +01:00
Christian Hesse
ac38e16944
sms-forward: drop main function, use :do with on-error
2024-03-12 15:27:15 +01:00
Christian Hesse
1e8918fdaa
global-functions: $ScriptLock: do not exit from global function
2024-03-12 15:27:15 +01:00
Christian Hesse
4004d713aa
sms-forward: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
6b1c6a7119
sms-forward: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
6e54c7c30b
sms-forward: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
bb0c82adb3
sms-forward: log warning just once
2024-01-18 10:19:22 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
5fbf584d4c
sms-forward: pass phone number and message to hook
...
These are available as $Phone and $Message in hook.
2023-10-17 14:05:03 +02:00
Christian Hesse
25d40688f7
sms-forward: drop RouterOS version dependency
...
... as global-functions depend on RouterOS 7.9beta already.
2023-08-18 15:23:20 +02:00
Christian Hesse
1f1e76b822
sms-forward: drop workaround, add required RouterOS
2023-04-26 10:31:23 +02:00
Christian Hesse
742c239629
sms-forward: check that the interface is running
2023-03-28 11:42:58 +02:00
Christian Hesse
4f722bc2c9
sms-forward: disable workaround for ROS 7.9beta4
...
The issue has been acknowledged by Mikrotik, but the cause is still
unknown as the sms code did not change since RouterOS 7.6...
Well, looks like the behavior changes again with RouterOS 7.9beta4, and
everything works as expected again. So disable the workaround there.
2023-03-24 20:11:29 +01:00
Christian Hesse
eab87e4d60
sms-forward: add workaround to fix removal of messages
...
Removal of messages is broken in RouterOS 7.8:
[admin@MikroTik] > /tool/sms/inbox/remove [ find ]
failure: Interface not running!
Of course the interface is running. Toggling the auto-erase setting
fixes this until next boot. So let's add a workaround...
Reported to support (SUP-110828), but not (yet) acknowledged. 🤨
2023-03-23 13:59:55 +01:00
Christian Hesse
a832fd04ef
rename scripts and add file extension ".rsc"
...
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00