Saved commands not showing on command list.

rijotech5 years ago

Hi Anton and rest of the members of traccar, Happy new year! in advance.
I facing a little problem with Saved SMS commands after I created them they do not appear on the command list and even if I created a new one I get this error message.

SMS is not enabled - RuntimeException (BaseProtocol:127 < CommandsManager:65 < CommandResource:72 < ...)

The real craziness is that I can send SMS notifications, and I'm using the latest version of traccar server 4.2 from the website.
Any ideas on how can I fix this?
Video prove.
https://streamable.com/ptn26

Anton Tananaev5 years ago

SMS notifications and SMS commands are two completely different things. What are you using for SMS?

rijotech5 years ago

On my configuration I have tested with Twilio and SMS Global.

This is how my configuration looks.

<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>https://api.twilio.com/2010-04-01/Accounts/AC9c5f897bcf0aa43a3b8542e7266e4c89/Messages.json</entry>
<entry key='sms.http.user'>AC9c5f897bcf0a3b8542e7266e4c89</entry>
<entry key='sms.http.password'>7f949e69ef84811b7e6960ba7124</entry>
<entry key='sms.http.template'>
From=%2B13474781330&To={phone}&Body={message}
</entry>
rijotech5 years ago

I see i had to enable <entry key='sms.enable'>true</entry> in the config now this is the error i get.

System error - IllegalStateException (SmppClient:247 < BaseProtocol:114 < CommandsManager:65 < ...)
rijotech5 years ago

Never mind I got it but I still can't see the saved command list from the sms commands I created.

Anton Tananaev5 years ago

Because it's not supported.