Hello,
In SMS commands, you can’t use multiple words, which is why spaces are not allowed. But you can always add arguments to your command when sending an SMS to your router.
To use UCI commands over SMS, there is already a predefined rule for that (which you can customize, to disable the authorization method for examplen - please see this attached Image), so you can simply send an SMS to your router with the command you want, here is an example of how to get your LAN IP address (without authorization method) :
SMS sent to the router => uci get network.lan.ipaddr
Router’s response => 192.168.1.1
Now to get your WAN IP address, if your WAN interface uses DHCP, I highly recommend using a customized Send status command, like in this example.
Here you can find more information about UCI commands and SMS utilities :
https://wiki.teltonika-networks.com/view/UCI_command_usage
https://wiki.teltonika-networks.com/view/RUTX50_Mobile_Utilities
Best regards,
Ismail