Question. This only work when phone has fix ip?
My idea was that you can use some old Android device home or at the office always connected to the wifi and acting as a gateway. So, server would connect directly via a local network.
Also, I guess any dynamic DNS services can solve fixed IP issue.
Well, the fixed ip on a mobile using wifi is no problem. So that scenario would work ofc
Anton nice and very simple app.
can i see the outgoing SMS in this SMS Gateway for Android ?
Not at this point. It doesn't store messages.
hello Anton,
taking advantage of the SMS context, can you help me with these two questions?
1
this functionality runs in version 4.8?
I'm not getting results.
LOG:
2020-07-13 16:49:27 WARN: SMS send failed - Unexpected end of file from server - SocketException (...)
2
i have a voip server (elastix) with an sms gateway. is it possible to configure traccar to use this voip server? if so, where do I find the documentation?
Thank you!
hi Anton,
1
to be faster, I installed version 4.9 on Windows on my notebook.
on Android smartphone:
I still haven't got a result.
Log:
2020-07-13 23:49:45 WARN: SMS send failed - Unexpected end of file from server - SocketException (...)
ping on Windows to smartphone gateway sms:
Response from 192.168.1.200: bytes = 32 time = 2ms TTL = 64
2
I'm sorry ... I'll do that.
What device are you using? And what Android version?
SAMSUNG SM-J710MN
J710MNVJS4CSL2/ J710MNZTO4CRK1/ J710MNUBS4CSL1
last update: 27/02/2020
Maybe you can try this server version:
https://www.dropbox.com/t/VVKp4JYM24dGSYLj
Not sure if it would help though. I guess we need to debug your specific device.
I just tested this version that you sent me.
log:
2020-07-14 00:49:09 WARN: SMS send failed - Unexpected end of file from server - SocketException (...)
I decided to do a test with netstat in search of port 8082 and verified that it is only on ipv6
log:
TCP [::1]:8082 [::1]:51962 ESTABLISHED InHost
TCP [::1]:8082 [::1]:51963 ESTABLISHED InHost
TCP [::1]:51961 [::1]:8082 TIME_WAIT InHost
TCP [::1]:51962 [::1]:8082 ESTABLISHED InHost
TCP [::1]:51963 [::1]:8082 ESTABLISHED InHost
I apologize if this is silly...
Where did you do the netstat? On your phone?
on windows ... to get the cell phone ip ...
remembering that the windows firewall is disabled ...
We have developed a new Android app that allows you to use an Android phone as an SMS gateway for sending notifications via HTTP API.
Google hasn't approved it yet, but if you are interested in trying it, you can download APK directly from here:
https://github.com/traccar/traccar-sms-gateway/releases/tag/v1.1
Any feedback is welcome. The app is completely open source and free, as usual. And unlike some other similar apps, everything is done locally, so your data never goes to any third party service providers.
This is how you can configure Traccar server to use the app (replace IP_ADDRESS with your phone IP):
<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://IP_ADDRESS:8082/</entry> <entry key='sms.http.template'> { "to": "{phone}", "message": "{message}" } </entry>