Hello,
I have a RUTX12 with firmware RUTX_R_00.07.03.1.
I am testing the creation of SMS utilities custom rule with "Execute custom script" action.
If I create a new rule with "SMS text" set to "toto", the rule is triggered by sending sms with "toto" content but also by any sms that starts with "toto". It is very tempting to use that behavior to send parameters to the custom shell script itself :-)
I haven't been able to get the original sms content to parse it. I tried basic "$*", "$1", ... shell variables but they are empty. I also tried to get the sms using gsmctl -S -t and gsmctl -S -r N but sms handled with sms rules does not seems to be saved.
It seems to be possible, as "uci" rules does it, but it is a built-in rule. So my question is, is it possible to get the sms "parameters" or the full sms content in the shell script of a "Execute custom script" ? If so, how to do it ?
Thanks for your help.