I built my own SMS Gateway

Kevin Hartina month ago

I had issues with the Traccar SMS gateway, so after seeing an app that polls the DB for SMS to send, I thought I'd adapt it to work in the Traccar environment, both for notifications as well as for sending commands to devices.

The app simply installs on an android phone and runs as a service. It periodically (user set) polls the server to get any SMS to send and sends it using the local telecoms provider, then updates the server to flag it as sent.

There is a single PHP file and the DB consists of 1 table and the traccar config looks almost identical to the Traccar SMS gateway setup. I plan on billing clients for each SMS, which I can do with a simple SQL query against their phone number.

If anyone is interested in this, let me know and I'll clean it up and make it available for free.

Kev

Anton Tananaeva month ago

People are definitely interested. But please only post it here if it's open source.

457478955475a month ago

I'm interested as long as it's completely free, as I don't see the logic in paying for something that already exists for free.

Kevin Hartina month ago

As promised, I have cleaned up and packaged everything in a FREE zip file that you can download at https://traccar.ws/sms/SMSsender.zip

In this zip is the following;
1. PHP server code index.php and .htaccess file that I have installed in a directory called sms
2. SMSSender_service.apk to be loaded on your Android phone
3. all the App source built with the B4a IDE from b4x.com (highly recommended for App development on Android and iPhone)
4. the traccar.conf entry
5. the sql to build the table in your sql database

Obviously, you will need to tweak various settings such as the URL for your hosting, the Auth string, Interval for checking for SMS to send, Database settings, etc. to suit your environment.

Anyway, do anything you want with this and big thanks to Anton and the traccar crew for making such a flexible platform.

Kev

Anton Tananaeva month ago

Awesome, thanks for sharing.

DaveGG24 days ago

Thank you very much!! @Kevin Hartin