routeros-scripts/sms-action

15 lines
299 B
Text
Raw Normal View History

#!rsc
2018-08-06 14:05:34 +00:00
# RouterOS script: sms-action
# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
#
# run action on received SMS
:global "sms-action";
2018-08-06 14:05:34 +00:00
:local code ($"sms-action"->$action);
:local parsed [ :parse $code ];
2018-08-06 14:05:34 +00:00
:log info ("Acting on SMS action '" . $action . "': " . $code);
:delay 1s;
$parsed;