Query PBX capacity
Query the capacity of PBX, including the number of extensions and concurrent calls.
Request URL
GET {base_url}/{api_path}/system/capacity?access_token={access_token}
Request parameters
No request parameters. Send the request URL directly to query PBX capacity.
Response parameters
Parameter | Type | Description |
---|---|---|
errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
errmsg | String | Returned message.
|
data | Object<Device_Capacity> | The PBX capacity. |
- Device_Capacity
-
Table 2. Parameter Type Description extension_capacity Integer The maximum number of extensions. extension_used Integer The number of extensions used. cc_capacity Integer The maximum number of concurrent calls. cc_used Integer The number of concurrent calls used.
Examples
Request example
GET /openapi/v1.0/system/capacity?access_token=tmZCgLHfy9a2qpFthxdGfa0Xr6v3D63C
Host: 192.168.5.150:8088
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"data": {
"extension_capacity": 50,
"extension_used": 10,
"cc_capacity": 25,
"cc_used": 0
}
}