Query Trunk List

Query basic information of the PBX trunk list, such as trunk name, trunk status, trunk type, etc.

Request URL


Request parameters

No request parameters. Send the request directly to query trunk list.

Response parameters

Parameter Type Description
status String Request result.
  • Success
  • Failed
trunklist Array <TrunkInfo> Trunk list.
Parameter Type Description
trunkname String Trunk name.
id Integer The unique ID of a trunk.
type String Trunk type.
  • IAX: VoIP trunk based on IAX protocol.
  • SIP: VoIP trunk based on SIP protocol.
  • FXO: FXO analog trunk.
  • GSM: GSM/3G/4G wireless trunk.
  • BRI: BRI digital trunk.
  • E1: E1/T1/J1 digital trunk.
status String
SIP/IAX trunk status.
  • Registering
  • Failure
  • Registered
  • Disable
  • Unknown
FXO trunk status.
  • Fault
  • Idle
  • Busy
BRI/E1 trunk status.
  • Fault
  • Alarm
  • Down
  • Up
GSM/3G/4G trunk status.
  • Power Off
  • Alarm
  • No SIM
  • No Signal
  • Pin Error
  • Unregister
  • Busy
  • Idle
port String Trunk port.


Request example

POST /api/v2.0.0/trunk/list?token=277ac400357b509b4a587ff2157f7ad5 
Content-Type:application/json; charset=utf-8

Response example

HTTP/1.1 200 OK
Server: Boa/0.94.14rc21
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE

	"status": "Success",
	"trunklist": [
			"trunkname": "siptrunk",
			"id": "7",
			"status": "registered",
			"type": "SIP"