Commit graph

14 commits

Author SHA1 Message Date
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