Retrive status of PBX.
GET
/system/summary
Returns the status of PBX.
Request
Placeholders
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.
Sample Request
https://example.com/api/system/summary?access_token=196ACE20C6F34027895F7F95402BB164
Response
Placeholders
call_sessionsinteger
required
The count of current call sessions.online_extensionsinteger
required
The count of current online extensions.up_timestring
required
Duration for which the PortSIP PBX is running.cpu_usageinteger
required
CPU usage for PortSIP PBX with the range 0 - 100.memory_usageinteger
required
Memory usage for PortSIP PBX with the range 0 - 100.tenants_countinteger
required
The count of tenant.extensions_countinteger
required
The count of extension.calls_count_last_24hoursinteger
required
The count of calls in last 24 hours.succeeded_calls_count_last_24hoursinteger
required
The count of succeeded calls in last 24 hours.failed_calls_count_last_24hoursinteger
required
The count of succeeded calls in last 24 hours.per_hour_succeeded_calls_count_last_24hoursarray
required
per_hour_failed_calls_count_last_24hoursarray
required
newsarray
required
Show child attributes
Sample Response
{
"online_extensions": 0,
"call_sessions": 0,
"cpu_usage": 7,
"up_time": "0 D 3 H 27 M 48 S",
"now_time": "",
"memory_usage": 86,
"tenants_count": 0,
"extensions_count": 0,
"calls_count_last_24hours": 0,
"failed_calls_count_last_24hours": 0,
"succeeded_calls_count_last_24hours": 0,
"per_hour_succeeded_calls_count_last_24hours": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"per_hour_failed_calls_count_last_24hours": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"news": [
{
"title": "Sample title",
"url": "sample.com"
}
]
}
Retrive status of call manager
GET
/call_manager/summary
Returns the status of call manager.
Request
Placeholders
access_tokenstring
required
Access token is a 32-byte string with validity of 30 seconds.
Sample Request
https://example.com/api/call_manager/summary?access_token=196ACE20C6F34027895F7F95402BB164
Response
Placeholders
domainstring
required
SIP domain used by current user.pbx_ip_v4string
required
IPV4 address for PortSIP PBX.pbx_ip_v6string
required
IPV6 address for PortSIP PBX.pbx_modestring
required
Working mode for PortSIP PBX. It could be either "public network" or "private network".transportsarray
required
Show child attributesCollection of PBX transport protocol objects. PortSIP PBX supports all popular network transport protocol, including UDP, TCP, TLS, WS, and WSS.primary_dns_serverstring
required
Primary DNS Server.secondary_dns_serverstring
required
Secondary DNS Server.
Sample Response
{
"domain": "portsip.com",
"pbx_mode": "PRIVATE_NETWORK",
"pbx_ip_v4": "127.0.0.1",
"pbx_ip_v6": "",
"primary_dns_server": "",
"secondary_dns_server": "",
"transports": [
{
"protocol": "UDP",
"port": 5060
}
]
}