aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/sms
AgeCommit message (Collapse)Author
2019-03-31Convert project to gradleAnton Tananaev
2019-02-27Minor refactoringAnton Tananaev
2019-02-27Move events handler classesAnton Tananaev
2018-12-27SMS client: Changes to support msg91Syed Mujeer Hashmi
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>
2018-11-10Fix some FindBugs issuesAnton Tananaev
2018-11-04Fix issue with SMS eventsAnton Tananaev
2018-11-02Implement universal HTTP SMS managerAnton Tananaev
2018-08-17Add constructor to MessageException classMarcos Dallagnelo
2018-08-16Have improved code, without create new thread and throw a MessageExceptionMarcos Dallagnelo
2018-08-15Implementado integração com serviço envio SMS SmsGateway.meMarcos Dallagnelo
2018-06-27- Rename NotificationException to MessageExceptionAbyss777
- Simplify Notificator instantiation - Make sms configuration more clear - Move some defaults in code - Some cleanup
2018-06-26Cleanup and some adjustmentsAbyss777
2018-04-01generalization for notifications processingIvan Martinez