Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMS notifications #82

Closed
weckie opened this issue Nov 23, 2021 · 1 comment
Closed

SMS notifications #82

weckie opened this issue Nov 23, 2021 · 1 comment

Comments

@weckie
Copy link

weckie commented Nov 23, 2021

Dear,

Is it possible that the sms notifications don't work in docker? I get this error :

 WARN: SMS send failed - HTTP 500 Server Error - InternalServerErrorException (...)

my xml file:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

   <entry key='config.default'>./conf/default.xml</entry>

    <!--

   This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-file/

    -->

   <entry key='database.driver'>org.h2.Driver</entry>
   <entry key='database.url'>jdbc:h2:./data/database</entry>
   <entry key='database.user'>sa</entry>
   <entry key='database.password'></entry>

    <!-- position forwarding to mqtt -->
   <entry  key='forward.enable'>true</entry>
   <entry  key='forward.json'>true</entry>
   <entry  key='forward.url'>http://192.168.xxx.xxx:xxx/</entry>

   <!-- SMS Gateway -->
   <entry key='notificator.types'>sms</entry>
   <entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
   <entry key='sms.http.url'>http://192.168.xxx.xxx:xxxx/</entry>
   <entry key='sms.http.authorization'>xxxxxxxx</entry>
   <entry key='sms.http.template'>{"To": "{phone}","Msg": "{message}"}</entry>
</properties>

kind regards

@tananaev
Copy link
Member

tananaev commented Nov 23, 2021

This doesn't seem to be related specifically to docker version of Traccar in any way. Use forum for questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants