...
The presence information for an Extension extension is represented by the UnifiedAPI as a Presence resource. It contains the agent where the Extension extension is registered and the expiration date of the registration.
JSON representation
The following example below contains the Presence in JSON representation. All fields are fictitious.
Code Block |
---|
{ "agentstatus": "0", "registrationextension": "-10003*001", "registration": "status[ { "agent": "3CXPhone 5.0.14439.0", "extensionregistration": "0003*001-1", "expire": "0112011-02-10T15:10:55Z", } ] } |
Presence event fields
Name | Type | Description |
---|---|---|
agent | String | The agent that uses the extension. |
registration | PhoneRegistration | See PhoneRegistration |
status | Number | Defines presence status. Possible values: 1 - online 2 - ringing 3 - busy 0 - unknown |
extension | The phone number of the extension. |
PhoneRegistration fields
Anchor | ||||
---|---|---|---|---|
|
Name | Type | Description |
---|---|---|
registration | Number | Defines registration status. |
Possible values: 1 - |
registered 2 - |
no registration necessary -1 - |
not registered -2 - |
registration expired 0 - |
unknown | ||
status | Number | Defines presence status. |
Possible values: 1 - |
online 2 - |
ringing 3 - |
busy 0 - |
unknown | ||
expire | Date | Specifies registration expiration date. Missing when |
registration |
has expired. |
4psarelated | ||
---|---|---|
| ||
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.