Your device phone number?
oh okay. But I am getting error-connection failed.
And how is that related to the phone number?
I thought phone number might be the reason for the error. What else could go wrong?
<entry key='notificator.types'>web,firebase,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://100.82.206.233:8082/</entry>
<entry key='sms.http.authorization'>0c847578</entry>
<entry key='sms.http.template'>
{
"to": "{phone}",
"message": "{message}"
}
</entry>
This is what the configuration looks. Am i missing something?
The IP address and port are not accessible.
Changed it.
<entry key='notificator.types'>web,firebase,sms</entry>
<entry key='notificator.sms.manager.class'>org.traccar.sms.HttpSmsClient</entry>
<entry key='sms.http.url'>http://192.168.29.90:8082/</entry>
<entry key='sms.http.authorization'>bbede379</entry>
<entry key='sms.http.template'>
{
"to": "{phone}",
"message": "{message}"
}
</entry>
That's your local IP, so I have no idea if it's correct or not. You should really test the connection.
Send SMS using following API:
POST /
{
"to": "+10000000000",
"message": "Your message"
}
I get this by opening the url.
Are you connecting from your server or from your local machine?
From server
Then I don't really understand why you would be getting connection error. No ideas.
I've added config of HTTP SMS API. Wanted to know what is to be added in device's PHONE attribute which is being used in api payload.