Internal account registration states (sipuser_states)
Overview
Provides information about registration state - whether the device is registered or not. The entity identifier is the sipuser account identifier.
It also allows subscribing to change events (event: "modelevents.data_changed", classpath: "/rest/v1/uc/sipuser_states"). Events arrive on registration of the account’s first contact, on deregistration or registration timeout of the last contact, or on deletion of all account contacts. On storage clearing and on service restart.
Requests
| HTTP verb | Endpoint | Description |
|---|---|---|
|
|
|
|
|
|
|
|
Getting the list of accounts with registration states
Returns all accounts, both registered and unregistered.
Filtering and sorting are supported.
Request
| Name | Type | Description |
|---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: id, username, status. |
|
|
Offset in the list of resources to output. |
|
|
Maximum number of resources in the list. |
|
|
Sorting order of resources in the list. |
GET /rest/v1/uc/sipuser_states?filter=["==",["property","status"],"online"]&limit=2 HTTP/1.1
Getting the account registration state
Returns the registration state of one specific account by identifier.
GET /rest/v1/uc/sipuser_states/57278625-5fa4-eb0c-fb53-f6fa26881f25 HTTP/1.1
Clearing the account registration list
Automatic registration records of "registration-free" accounts will also be deleted. Without registration, a device cannot be called, but a call from the device can still proceed.
During the corresponding re-registration period all devices will restore registration when renewing, and automatic registrations will also be restored.