routeros-scripts/sms-action
2018-09-13 22:07:12 +02:00

14 lines
295 B
Text

#
# RouterOS script: sms-action
# Copyright (c) 2018 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;