My sms gateway cannot receive a data

Josie Rizal2 years ago

I developed my own sms gateway using nodejs. Tried it using postman and its already working, Using postman , on headers Authorization:my_token_abc, and on Body im passing a raw json data

{
    "to":"+639109120912",
    "message":"Hello, World!"
}

and the sms gateway is working but when im testing it now on traccar it is not working. these are my config on default.xml:

<entry key='notificator.types'>web,mail.sms</entry>
<entry key='sms.http.url'>http://localhost:3000/send</entry>
<entry key='sms.http.authorization'>my_token_abc</entry>
<entry key='sms.http.template'>
    {
        "to": "{phone}",
        "message": "{message}"
    }
</entry>

Is there anything wrong?

Josie Rizal2 years ago

This is the screenshot of my default.xml:
Screenhot

Josie Rizal2 years ago

When im testing the SMS notification using "TEST CHANNELS" button i can now receive the SMS but when im receiving the real events i cant receive the SMS event only the Mail/Web notification

Anton Tananaev2 years ago
  1. Why are you changing default.xml?
  2. And why is this not comma-separated values?
<entry key='notificator.types'>web,mail.sms</entry>
Josie Rizal2 years ago

Thank you it's now working it should be on the traccar.xml. If i want to add a feature to my server when the device overspeed, it will send an sms to the (Driver linked to the device) Driver's attribute "driver_phone", which file should i edit?