(30009) Extension Presence Status Changed
When the extension presence status is changed, the PBX will send an event report to the third-party application.
Prerequisites
You have enabled the Presence Status Monitor feature for the desired extensions on the PBX. For more information, see Enable Yeastar P-Series Cloud Edition API.
Report parameters
Parameter | Type | Description |
---|---|---|
type | Integer | Event ID. |
sn | String | PBX's serial number. |
msg | Object<Ext_Presence> | The current presence status of the extension. |
- Ext_Presence
-
Table 2. Parameter Type Description extension String Extension number. status String The current presence status of extension. available
: Available.away
: Away.business_trip
: Business Tripdo_not_disturb
: Do Not Disturb (DND).lunch
: Lunch Break.off_work
: Off Work.
Report examples
The presence of extension 2005 is changed to "Business Trip".{
"type": 30009,
"sn": "3631A2124XXX",
"msg": "{"extension":"2005","status":"business_trip"}"
}