Server that does not start after changes sms

Delannoy6 years ago

hello, having put the last version, I want to set up the SMS notification service, parcontre, where should I put the code? in Traccar \ conf \ default.xml?
my code being:

<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/MY-Accounts/MACLE/Messages.json </ entry>
<entry key = 'sms.http.user'> MY KEY </ entry>
<entry key = 'sms.http.password'> TOKEN </ entry>
<entry key = 'sms.http.template'>
    From =% 2B12264074230 & To = {} phone & Body = {message}
</ Entry>

I put the code in confi \ default, the system starts and tells me that the service is not acivée.
So, I restart the service and it crashes, forced to restart the entire computer.
Once the computer rebooted, can not open traccar with localhost: 8082

Thank you in advance

Anton Tananaev6 years ago

Make sure your XML is valid. Some characters (e.g. &) need to be encoded.

Delannoy6 years ago

Hello, Thank you very much for the quick response

Delannoy6 years ago

Hello Anton, I have a question that may seem stupid .. we have the opportunity to put a provider SMS per user and not a supplier for all users?
For example in my case with twilio his able to provide several phone numbers to assign them to a user or an application. This would make it possible to control the volume of SMS used by each user.
To make it simpler and clearer, if we could do as for the SMTP (set up in each user attributes).

In the meantime, following my first contact with you has resolved the implementation of sending SMS (& apm;)

Anton Tananaev6 years ago

It's not possible at the moment.