Sending commands via SMS: Possible through the HTTP SMS API?

webo5 years ago

Our provider doesn't allow for SMPP connections unfortunately and we're looking to send commands (e.g. engine shutoff and engine resume) using the SMS option.

One item that isn't well defined in the documentation is whether or not the HTTP SMS API is only for notifications or if it's also for commands when the user selects the "Send SMS" option.

Is it possible to use the HTTP SMS API for commands?

Anton Tananaev5 years ago

It's not possible at the moment.

webo5 years ago

Thank you for the quick response Anton.

Any plans to bring the HTTP SMS API to feature parity with SMPP?

Winay Jadon5 years ago

Anton Tananaev Sir,

I m getting following string in traccar-logs file but the status of device is still offline

2019-08-09 10:10:50 DEBUG: [B5F57CF7: 5006 < 42.110.129.47] HEX: 283030393239373839313235394250303530303030303932393738393132353931393038303941323435322e373532374e30383635352e33363430453030342e383130313034343230392e393030313030303030374c303346373037353629

device is TK103
please help me? What did I miss?

Anton Tananaev5 years ago

You are using wrong port.

Winay Jadon5 years ago

sir I m using port 5006 and IP is 142.4.16.53
for adding it and 12 digit IMEI.
still status is same and logs file is same,
Please help

wildcheese5 years ago

5006 is wrong port ;)...

https://www.traccar.org/devices/

Coffee is life4 years ago

Hello Forum

im replying to a thread which is pretty old, but im asking for the same:
SMS commands through http sms.
i programmed an api which read post/put and body-json data to get all the informations for {phone} - {message} and a static "from" which is "traccar".
is there any chance i can redirect the sms to http?

//EDIT: sending messages to users via http is working nice (test message through useraccount -> test sms)

thanks in advance,
coffee_is_life

Anton Tananaev4 years ago

The answer is still the same for now.

Coffee is life4 years ago

Thanks for the quick response,

if you say "for now" i assume its in development. - any answers about when this feature will be available?
i dont want to use an sms service since i programmed this beautiful mini-api :)

best regards,
coffe_is_life

Anton Tananaev4 years ago

We are considering implementing it. It's not in active development and I can't provide any dates.