diff options
author | Syed Mujeer Hashmi <mujeerhashmi@gmail.com> | 2018-12-27 19:38:37 +0530 |
---|---|---|
committer | Syed Mujeer Hashmi <mujeerhashmi@gmail.com> | 2018-12-27 23:34:57 +0530 |
commit | 93d3854a62e80b54a67a4bc47722e5ca896d0afa (patch) | |
tree | dcfeb5dd4c673e64a0720f8ec340b4d4bd484a39 /.gitmodules | |
parent | 0c0df0ff62a4b14aba8ef2ebd8642d1ee3dd4148 (diff) | |
download | trackermap-server-93d3854a62e80b54a67a4bc47722e5ca896d0afa.tar.gz trackermap-server-93d3854a62e80b54a67a4bc47722e5ca896d0afa.tar.bz2 trackermap-server-93d3854a62e80b54a67a4bc47722e5ca896d0afa.zip |
SMS client: Changes to support msg91
The authorization header may require different name:value pair for
specifying token by the service provider. Add a config parameter
"sms.http.authorizationName" to support this. In case of msg91, the
name required is "authkey".
The newline at the end of short templates are causing invalid json in
request. Get rid of the newline using trim().
The required config to enable msg91 sms notifications are
<entry key='notificator.types'>web,mail,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://api.msg91.com/api/v2/sendsms</entry>
<entry key="sms.http.authorizationName">authkey</entry>
<entry key='sms.http.authorization'>[YOUR TOKEN]</entry>
<entry key='sms.http.template'>
{
"sender": "SOCKET",
"route": "4",
"country": "91",
"sms": [
{
"message": "{message}",
"to": ["{phone}"]
}
]
}
</entry>
Signed-off-by: Syed Mujeer Hashmi <mujeerhashmi@gmail.com>
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions