In order to edit modem please use the following command:
svc=admin/modems¶ms={"callMode":"update", "id":<long>, "n":<text>, "ph":<text>, "ri":<uint>, "pr":<byte>, "f":<uint>, "cfg":{ ... }, "un":[ <long>, ... ], "bp":[ <long>, ... ] }
Param | Description | Value |
---|---|---|
id | modem id | mandatory |
n | modem name | mandatory |
ph | phone number | mandatory |
cfg | config object | mandatory |
ri | restart interval(sec) on default: 60 | |
pr | priority: range: (0, 255), on default: 50 | |
pd | preferred destinations | |
f | modem flags | |
un | units array | |
bp | billing plans array |
{ "id": <long>, /* modem id */ "n": <text>, /* name */ "ph": <text>, /* phone number */ "ri": <uint>, /* restart interval */ "pr": <byte>, /* priority */ "pd": <text>, /* preferred destinations */ "f": <uint>, /* modem flags */ "e": <bool>. /* state: 0 - off, 1 - on */ "cfg": { "addon_cmds": <text>, /* Additional initialization AT commands */ "baudrate": <text>, /* port speed */ "data_only": <text>, /* Use 8-bit encoding only */ "factory": <text>, /* modem type */ "log_facility": <text>, /* log file path */ "phones_filter": <text>, /* phones mask */ "port": <text>, /* serial port */ "sms_retry_count": <text>, /* SMS retry count */ "smssc": <text> /* SMS service center */ }, "un": [ <long>, /* unit id */ ... ], "bp": [ <long>, /* billing plan id */ ... ] }