(30010) Trunk Registration State Changed
When the trunk registration status is changed, the PBX will send an event report to the third-party application.
Report parameters
| Parameter | Type | Description |
|---|---|---|
| type | Integer | Event ID. |
| sn | String | PBX's serial number. |
| msg | Object<Trunk_RegInfo> | The detailed information of the trunk registration status. |
Trunk_RegInfo
| Parameter | Type | Description |
|---|---|---|
| trunk_name | String | Trunk name. |
| kind | String | Trunk type.
|
| status | Integer | Trunk status. |
| registered_ip | String | The IP address and port where the trunk is registered to. |
Trunk status
| Status | Description |
|---|---|
| 0 | Unknown status. |
| 1 | The trunk is Idle. |
| 2 | The trunk is Busy. |
| 3 | The SIP trunk is idle and unmonitored. |
| 4 | The SIP trunk is registering. |
| 41 | SIP register trunk registration failed. |
| 42 | The SIP trunk is unreachable. |
| 43 | The SIP account trunk is unavailable. |
| 44 | The SIP trunk is disabled. |
Report examples
SIP peer trunk is idle.
{
"type": 30010,
"sn": "3631A2124XXX",
"msg": "{"trunk_name":"peering","kind":"PJSIP","status":1,"registered_ip":"112.48.19.183:18211"}"
}