aboutsummaryrefslogtreecommitdiffstats
path: root/sms-action
blob: 2b1e4d68c9df970a99e7291b3b7ed2d17113cc09 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# 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;