Hello,
I am experiencing an issue with SMS-based command execution on my router (RUT951/RUT241).
When I send an SMS command using the SMS rules (Execute custom script), the rule is triggered, but the script does not behave correctly or responses are delayed / not properly sent.
In particular:
-
The SMS rule is correctly matched (e.g.
start_vnc_hmiand stop_vnc_hmi) -
The custom script executes successfully (firewall changes are applied)
-
However, the SMS response is not reliably returned, and in some cases I receive the error:
“script execution could not send response”
Additionally, when restarting the firewall from the script, the system outputs multiple warnings related to network interfaces (wan6, mob1s2a1) and attack_prevention, and the execution becomes slow or unstable.
Could you please clarify:
-
The recommended method to send a response SMS from a script
-
Whether firewall reload/restart is supported within SMS-triggered scripts without causing delays or errors
-
Any known issues with SMS Utilities on RutOS regarding script execution
Example for comand start_vnc_hmi:
#!/bin/sh
uci set firewall.31.enabled=‘1’
uci commit firewall
/etc/init.d/firewall reload
echo “VNC ACTIVE”
Example for comand stop_vnc_hmi:
#!/bin/sh
uci set firewall.31.enabled='0’
uci commit firewall
/etc/init.d/firewall reload
echo “VNC DEACTIVE”
Thank you for your support.
Best regards,