Modems list

You can simply get all modems you got in the system by following:

svc=admin/modems&params={"callMode":"list",
			 "flags":<uint>}

Params

Param Description
flags flag has influense on the response object:
0 - short response,
1 - full response

Response

Short Response

[
	{
		"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 */
	},
	...
]

Full Response

[
	{
		"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 */
			...
		]
	},
	...
]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam