Registration statuses of internal accounts (sipuser_states)
Overview
Provides information about the registration status - whether the device is registered or not. The identifier of the entity is the account identifier sipuser.
Also allows you to subscribe to change events (event: "modelevents.data_changed", classpath: "/rest/v1/uc/sipuser_states"). Events are received when the first contact in the account is registered, when the last contact is unregistered or times out, or when all contacts in the account are deleted. When the storage is cleared, when the service is restarted.
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
Getting the list of accounts with registration states
Returns all accounts, both registered and unregistered.
Filtering, sorting is 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 be issued. |
|
|
The maximum number of resources in the list. |
|
|
The sort order of the resources in the list. |
GET /rest/v1/uc/sipuser_states?filter=["==",["property","status"],"online"]&limit=2 HTTP/1.1
Obtaining the registration status of an account
Returns the registration status 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 registrations of "no registration" accounts will also be deleted. If there is no registration, it is not possible to call the device, but a call from the device may well go through.
During the appropriate re-registration period, all devices during the renewal will re-register, automatic registrations will also be reinstated.