Hello,
I would like to buy the GL-X3000 router but I need to be able to send SMS remotely via API. Is there any system (even third-party) to fulfill this job?
Hello,
I would like to buy the GL-X3000 router but I need to be able to send SMS remotely via API. Is there any system (even third-party) to fulfill this job?
GL firmware support this API. Please surely the phone card supports the SMS to send and receive.
curl -k http://127.0.0.1/rpc -H 'glinet: 1' -d '{"jsonrpc":"2.0","method":"call","params":["","modem","get_sms_list",{"bus":"1-1","phone_number":"8617603079726","body":"hello","timeout":10}],"id":1}'
Field | Type | Description | |
---|---|---|---|
bus | string | The PCIe path (Format: {domain}:{bus}:{slot}.{func}) or the USB path (Format: {bus}-{port[.port[.port]]}) for the cellular modem, depends on how the modem is connected, which can be gotten from the get_info interface | |
phone_number | string | The target number to receive SMS, it contains the country code, such as 8617603079726 | |
body | string | The SMS content (no more than 140 Bytes) | |
timeout | number | Timeout time (Unit: Seconds), if the value is set to 0, it means that it will return immediately without waiting for the sending result |
Thank you!
Does the GL-X3000 router also support sending RCS messages?
RCS does not support
One last question @bruce with your rpc api do I have the possibility to choose which of the 2 sims to use to send the sms? (The router supports 2 sims)
API does not support to switch the SIM card yet but AT command:
Switch to SIM 1:gl_modem -B 0001:01:00.0 AT AT+QUIMSLOT=1
Switch to SIM 2:gl_modem -B 0001:01:00.0 AT AT+QUIMSLOT=2