Android SMS gateway v5.6, traccar 5.9 problems?

Milos2 years ago

Hello,
I have installed SMS Gateway v5.6 on my Xiaomi Android 13 phone.
On the page http://10.10.24.245:8082/ I see

Send SMS using following API:
POST /
{
"to": "+10000000000",
"message": "Your message"
}

I set in the file /opt/traccar/conf/traccar.xml:

Xentry key='notificator.types'Xweb,mail,sms,commandX/entryX
Xentry key='sms.http.url'Xhttp://10.10.24.245:8082/X/entryX
Xentry key='sms.http.authorization'Xb9f2d508-...........X/entryX
Xentry key='sms.http.template'X
    {
        "to": "{phone}",
        "message": "{message}"
    }
X/entryX

The server sends an HTTP request to the phone to send an SMS, the phone returns 200 OK, but no SMS is delivered. No message will appear in the message list in the application.

I also tried testing directly with WGET without success, but it also fails to send:

LANG=C wget -O /tmp/x123 http://10.10.24.245:8082/ --post-data='{"to":"+420777XXXXXX", "message": "wget"}' --header " Authorization: b9f2d508-f962-..........."
--2023-10-18 10:23:31-- http://10.10.24.245:8082/
Connecting to 10.10.24.245:8082... connected.
HTTP request sent, waiting for response... 200 OK
Length: 0 [text/html]
Saving to: '/tmp/x123'

Do you have any idea for a solution?

Anton Tananaev2 years ago

If you get 200 response, it means that Android reported that the message was accepted.

It won't show the message in the application.

Milos2 years ago

But the important thing is that the message is not sent, I don't know what to do with it :-(

Anton Tananaev2 years ago

I also don't know. You look into your phone and network provider. It's not the app problem.