How to create sms rule to call a customer script to print the sms when sms come in

I’m a software engineer and I have very strong Linux back ground.

I bought a TRB140 gateway to deployed in our company internal network to work as a SMS Gateway.

I’m quite new with Teltonika (This is my first device I had). I have a question to ask;

How I can configure a sms rule to support;
1, When any SMS come in, trigger a customer shell script.
2. The customer script should be able to print all information about the income SMS, such command [gsmctl -S -l new/read]
3. Where the shell script will stay. (I only can login to teltonika with admin/adminpassword with root user account).

If any one have such experience, please advise.

Hi cidylong,

Welcome to Teltonika Networks Community!

With your use case, I think you need to run a script that will compare the recent message to a newly received one. Then, it should run periodically to check any incoming new messages. You can save your script in vi /etc/sysupgrade.conf so even after upgrade, custom script will be preserved. Kindly refer to this link as a guide for custom scripting.

Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.