FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
431 views 0 comments
by anonymous

Firmware version: RUTX_R_00.07.03.2

Rule sms:
Services/Mobile Utilities/SMS Utilities/ADD RULE
Action: Execute custom script
SMS text: 1HH99
Custom script:
#!/bin/sh
curl -X GET "http://192.168.1.1/cgi-bin/sms_send?username=user&password=psw&group=group_1&text=MyTextMessage"
exit

When I send sms with text 1HH99 the router send to me 2 sms:
text sms number 1:
MyTextMessage 

text sms number 2:
OK

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100     3    0     3    0     0      1      0 --:--:--  0:00:01 --:--:--     1
Status code: 0

What is the second sms ?
It is possible to disable send the second sms ?
Thanks

2 Answers

0 votes
by anonymous

Hello,

  

Could you try changing the script to include -s option? This should silence the output. Your full script would look like this:

#!/bin/sh

curl -s -X GET "http://192.168.1.1/cgi-bin/sms_send?username=user&password=psw&group=group_1&text=MyTextMessage"

exit 0

Let me know if this helps!

  

Best regards,
DaumantasG

0 votes
by anonymous
Action: Execute custom script

Why not available on different firmware such RUT2_R_00.07.02.7?
Can I add this option using SDK?
Thanks.