Teltonika SMS gateway for notifikations

Hi,
I have some success using a Teltonika TRB140 as a SMS gateway for Dude notifikations.
I do have an issue.
I have this notification: /tool fetch url=“http://IP/cgi-bin/sms_send?username=user&password=pass&group=whatever&text=The Dude is happy again”
My problem is, that ROS is not happy about the text, unless all spaces are removed and _ is used.
testing all inside the “” sends an SMS, but the entire string fails with fetch error 400
Notepad++ regards the text inside the “” as a URL until the first space after =The
I tried to double up on “” or ‘’.
Anyone got an idea ?
Thx

No idea about the actual issue, but also the board parser seems to behave just like you describe, it “interrupts” the hyperlink on the first space (after the “The”).

So it could be something similar.

Try replacing the spaces with %20, a http URL must contain no spaces:
http://forum.mikrotik.com/t/bug-in-tool-fetch/142072/1

The URL needs to use “urlencoding”, which means things like space need to be escaped for HTTP. So your “…text=The Dude is happy again” part is likely the problem.
In recent V7, you can use :convert to do the encoding.
/tool fetch url=“http://IP/cgi-bin/sms_send?username=use … r&text=$[:convert to=url “The Dude is happy again**”]**”

Alternatively, you can just replace any space with + or %20 (which both are urlencodings for a space), so without :convert, you can just add %20 instead of space, so “…text=The%20Dude%20is%20happy%20again” should work.

Thx guys,
Both solutions works nicely.