Asterisk - The Open Source Telephony Project
18.5.0
|
A snapshot of an endpoint's state. More...
#include <stasis_endpoints.h>
Data Fields | |
struct ast_string_field_mgr | __field_mgr |
struct ast_string_field_pool * | __field_mgr_pool |
char * | channel_ids [] |
const ast_string_field | id |
int | max_channels |
int | num_channels |
const ast_string_field | resource |
enum ast_endpoint_state | state |
const ast_string_field | tech |
A snapshot of an endpoint's state.
The id for an endpoint is tech/resource. The duplication is needed because there are several cases where any of the three values would be needed, and constantly splitting or reassembling would be a pain.
Definition at line 48 of file stasis_endpoints.h.
struct ast_string_field_mgr __field_mgr |
Definition at line 53 of file stasis_endpoints.h.
struct ast_string_field_pool* __field_mgr_pool |
Definition at line 53 of file stasis_endpoints.h.
char* channel_ids[] |
Channel ids
Definition at line 65 of file stasis_endpoints.h.
Referenced by ast_endpoint_snapshot_create(), ast_endpoint_snapshot_to_json(), ast_sip_for_each_channel_snapshot(), and endpoint_snapshot_dtor().
const ast_string_field id |
unique id for this endpoint.
Definition at line 53 of file stasis_endpoints.h.
Referenced by endpoint_snapshot_get_id(), endpoints_scrape_cb(), Model::load(), and sub_endpoint_update_handler().
int max_channels |
Maximum number of channels this endpoint supports. If the upper limit for an endpoint is unknown, this field is set to -1.
Definition at line 61 of file stasis_endpoints.h.
Referenced by ast_endpoint_snapshot_create(), ast_endpoint_snapshot_to_json(), and AST_TEST_DEFINE().
int num_channels |
Number of channels currently active on this endpoint
Definition at line 63 of file stasis_endpoints.h.
Referenced by ast_endpoint_snapshot_create(), ast_endpoint_snapshot_to_json(), ast_sip_for_each_channel_snapshot(), AST_TEST_DEFINE(), endpoint_snapshot_dtor(), get_endpoint_channel_count(), and handle_endpoint_update().
const ast_string_field resource |
Tech-unique name
Definition at line 53 of file stasis_endpoints.h.
Referenced by ast_endpoint_snapshot_to_json(), AST_TEST_DEFINE(), cache_update(), endpoints_scrape_cb(), handle_endpoint_update(), and peerstatus_to_ami().
enum ast_endpoint_state state |
Endpoint state
Definition at line 56 of file stasis_endpoints.h.
Referenced by ast_endpoint_snapshot_create(), ast_endpoint_snapshot_to_json(), AST_TEST_DEFINE(), get_endpoint_state(), handle_endpoint_update(), and update_endpoint_state().
const ast_string_field tech |
Channel technology
Definition at line 53 of file stasis_endpoints.h.
Referenced by ast_ari_endpoints_list_by_tech(), ast_ari_endpoints_send_message_to_endpoint(), ast_endpoint_snapshot_to_json(), AST_TEST_DEFINE(), endpoints_scrape_cb(), handle_endpoint_update(), and peerstatus_to_ami().