[API] Added support for Send SMS via API

#1

Case:

curl -b aa.txt -H “Content-Type: application/json” -X POST -d ‘{“address”:“1111”,“content”:“TEST”}’ http://192.168.1.1/api/cmd.sms.sendMessage
{
“stat”: “fail”,
“code”: 400,
“message”: “Wrong address format”

Address format needs a “+”
Could you change the format to allow a 4 digit number without country code

Send SMS to service numbers without the "+" in front
#2

@gok1

4 digit number ? Are you referring to short code SMS number ?

1 Like
#3

Yes that is right, short sms number

#4

Hello @sitloongs do you have any update ?

#5

@gok1

Engineering team still consider the feasibility. Do you have more info to share for your project ?

1 Like
#6

There is provider that has internet data limit.
When you reach the limit your pepwave is going offline because there isn’t internet connection
If you want more data you need to send a text message from the simcard you use.
That number is short code SMS number with 4digits

#7

Are you referring to USSD code ?

1 Like
#8

No not USSD.
This is sending of SMS text message

#9

@gok1

Engineering team is working on this. Please stay tuned for the good news :grinning::grinning:

1 Like
#11

Hi Sitloongs,

in this Minute I get another Feature Request from one of our costumers for this.

Some providers send an SMS to their SIM card if the Data Plan Limit will be reached. Then the Router should answer with an SMS to buy new Data volume. Could this be possible?
E.g. In the settings, I’d like to say buy maximum 5 times each month. Then we could use the keywords from the receiving SMS.
It’s also okay to do that via IC2

Regards
Dennis

#12

@dennis.hofheinz, look like you need SMS short code which similar to @gok1 here. The engineering team is working on it.

1 Like
#13

yes, and if possible with an automatic charge feature.

if the peplink router recieves an SMS from the provider e.g “Dear costumer you’ve reached your data limit” the I will send an sms automatically to the provider to extend the data plan… that would be nice

#14

@dennis.hofheinz

The special firmware to test sending SMS using short code is ready. I have PM you the special firmware download link. As for now SMS sending only can be triggered via the device level API.

For the automatic SMS sending request, would you able to share more info for that ? This sound dangerous for me if some bad guy can dummy that to send in some unwanted SMS :face_with_raised_eyebrow:.

1 Like
#18

@gok1 and @dennis.hofheinz

After discussed with IC2 Engineering team, they will include the device level API accessible through IC2 API. With this, user can easily calling the device level API remotely via IC2 API.

Tentatively this is targeting at IC2 version 2.8.3 late Q3, 2019.

2 Likes