routeros-scripts/sms-action
2019-01-02 09:38:34 +01:00

14 lines
304 B
Text

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