Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Stasis Messages and Data Types for Channel Objects. More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/json.h"
#include "asterisk/pbx.h"
#include "asterisk/bridge.h"
#include "asterisk/translate.h"
#include "asterisk/stasis.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/dial.h"
#include "asterisk/linkedlists.h"
#include "asterisk/utf8.h"
Go to the source code of this file.
Data Structures | |
struct | ast_multi_channel_blob |
A multi channel blob data structure for multi_channel_blob stasis messages. More... | |
struct | channel_role_snapshot |
A channel snapshot wrapper object used in ast_multi_channel_blob objects. More... | |
struct | dial_masquerade_datastore |
struct | dial_target |
Macros | |
#define | NUM_MULTI_CHANNEL_BLOB_BUCKETS 7 |
Variables | |
static struct ao2_container * | channel_cache |
static struct ao2_container * | channel_cache_by_name |
static struct stasis_topic * | channel_topic_all |
static const struct ast_datastore_info | dial_masquerade_caller_info |
static const struct ast_datastore_info | dial_masquerade_info |
Stasis Messages and Data Types for Channel Objects.
Definition in file stasis_channels.c.
#define NUM_MULTI_CHANNEL_BLOB_BUCKETS 7 |
Definition at line 118 of file stasis_channels.c.
|
static |
Definition at line 1247 of file stasis_channels.c.
References ast_free, ast_json_object_get(), ast_json_string_get(), ast_manager_build_channel_state_string(), ast_manager_event_blob_create(), ast_str_buffer(), ast_channel_blob::blob, EVENT_FLAG_AGENT, NULL, ast_channel_blob::snapshot, and stasis_message_data().
|
static |
Definition at line 1267 of file stasis_channels.c.
References ast_free, ast_json_integer_get(), ast_json_object_get(), ast_json_string_get(), ast_manager_build_channel_state_string(), ast_manager_event_blob_create(), ast_str_buffer(), ast_channel_blob::blob, EVENT_FLAG_AGENT, NULL, ast_channel_blob::snapshot, and stasis_message_data().
|
static |
Definition at line 608 of file stasis_channels.c.
References ao2_ref, ast_assert, ast_channel_dial_type(), ast_channel_lock, ast_channel_snapshot_create(), ast_channel_snapshot_get_latest(), ast_channel_uniqueid(), ast_channel_unlock, ast_json_pack(), ast_json_unref(), ast_multi_channel_blob_add_channel(), ast_multi_channel_blob_create(), ast_strlen_zero(), ast_channel_snapshot::caller, NULL, ast_channel_snapshot::peer, publish_message_for_channel_topics(), S_OR, and stasis_message_create().
Referenced by ast_channel_publish_dial_forward(), dial_masquerade_breakdown(), and dial_masquerade_fixup().
int ast_channel_snapshot_caller_id_equal | ( | const struct ast_channel_snapshot * | old_snapshot, |
const struct ast_channel_snapshot * | new_snapshot | ||
) |
Compares the callerid info of two snapshots.
old_snapshot | Old snapshot |
new_snapshot | New snapshot |
True | (non-zero) if callerid are identical. |
False | (zero) if callerid changed. |
Definition at line 1361 of file stasis_channels.c.
References ast_assert, ast_channel_snapshot::caller, ast_channel_snapshot_caller::name, NULL, and ast_channel_snapshot_caller::number.
Referenced by channel_callerid(), and channel_new_callerid().
int ast_channel_snapshot_cep_equal | ( | const struct ast_channel_snapshot * | old_snapshot, |
const struct ast_channel_snapshot * | new_snapshot | ||
) |
Compares the context, exten and priority of two snapshots.
old_snapshot | Old snapshot |
new_snapshot | New snapshot |
True | (non-zero) if context, exten or priority are identical. |
False | (zero) if context, exten and priority changed. |
Definition at line 1340 of file stasis_channels.c.
References ast_channel_snapshot_dialplan::appl, ast_assert, ast_strlen_zero(), ast_channel_snapshot_dialplan::context, ast_channel_snapshot::dialplan, ast_channel_snapshot_dialplan::exten, NULL, and ast_channel_snapshot_dialplan::priority.
Referenced by channel_dialplan(), and channel_newexten().
int ast_channel_snapshot_connected_line_equal | ( | const struct ast_channel_snapshot * | old_snapshot, |
const struct ast_channel_snapshot * | new_snapshot | ||
) |
Compares the connected line info of two snapshots.
old_snapshot | Old snapshot |
new_snapshot | New snapshot |
True | (non-zero) if callerid are identical. |
False | (zero) if callerid changed. |
Definition at line 1371 of file stasis_channels.c.
References ast_assert, ast_channel_snapshot::connected, ast_channel_snapshot_connected::name, NULL, and ast_channel_snapshot_connected::number.
Referenced by channel_connected_line(), and channel_new_connected_line().
struct ast_json * ast_channel_snapshot_to_json | ( | const struct ast_channel_snapshot * | snapshot, |
const struct stasis_message_sanitizer * | sanitize | ||
) |
Build a JSON object from a ast_channel_snapshot.
snapshot | The snapshot to convert to JSON |
sanitize | The message sanitizer to use on the snapshot |
NULL | on error |
Definition at line 1289 of file stasis_channels.c.
References ast_channel_snapshot_base::accountcode, ast_channel_snapshot_dialplan::appl, ast_channel_snapshot::ari_vars, ast_json_channel_vars(), ast_json_dialplan_cep_app(), ast_json_name_number(), ast_json_object_set(), ast_json_pack(), ast_json_string_create(), ast_json_timeval(), AST_LIST_EMPTY, ast_state2str(), ast_strlen_zero(), ast_channel_snapshot::base, ast_channel_snapshot::caller, stasis_message_sanitizer::channel_snapshot, ast_channel_snapshot::connected, ast_channel_snapshot_dialplan::context, ast_channel_snapshot_base::creationtime, ast_channel_snapshot_dialplan::data, ast_channel_snapshot::dialplan, ast_channel_snapshot_dialplan::exten, ast_channel_snapshot_base::language, ast_channel_snapshot_caller::name, ast_channel_snapshot_connected::name, ast_channel_snapshot_base::name, NULL, ast_channel_snapshot_caller::number, ast_channel_snapshot_connected::number, ast_channel_snapshot_dialplan::priority, ast_channel_snapshot_caller::rdnis, ast_channel_snapshot::state, ast_channel_snapshot_base::tenantid, and ast_channel_snapshot_base::uniqueid.
Referenced by ari_channels_handle_originate_with_id(), ari_channels_handle_snoop_channel(), ast_ari_channels_create(), ast_ari_channels_get(), ast_ari_channels_list(), AST_TEST_DEFINE(), attended_transfer_to_json(), blind_transfer_to_json(), channel_blob_to_json(), channel_callerid(), channel_connected_line(), channel_destroyed_event(), channel_dialplan(), channel_to_json(), dial_to_json(), dtmf_end_to_json(), hold_to_json(), multi_user_event_to_json(), rtcp_report_to_json(), simple_bridge_channel_event(), simple_channel_event(), stasis_app_exec(), stasis_end_to_json(), stasis_start_to_json(), and unhold_to_json().
int ast_stasis_channels_init | ( | void | ) |
Initialize the stasis channel topic and message types.
0 | on success |
Non-zero | on error |
Definition at line 1718 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_RWLOCK, ao2_container_alloc_hash, ast_channel_agent_login_type(), ast_channel_agent_logoff_type(), ast_channel_chanspy_start_type(), ast_channel_chanspy_stop_type(), ast_channel_dial_type(), ast_channel_dtmf_begin_type(), ast_channel_dtmf_end_type(), ast_channel_fax_type(), ast_channel_flash_type(), ast_channel_hangup_handler_type(), ast_channel_hangup_request_type(), ast_channel_hold_type(), ast_channel_masquerade_type(), ast_channel_mixmonitor_mute_type(), ast_channel_mixmonitor_start_type(), ast_channel_mixmonitor_stop_type(), ast_channel_moh_start_type(), ast_channel_moh_stop_type(), ast_channel_snapshot_type(), ast_channel_talking_start(), ast_channel_talking_stop(), ast_channel_tone_detect(), ast_channel_unhold_type(), ast_channel_varset_type(), ast_channel_wink_type(), AST_NUM_CHANNEL_BUCKETS, ast_register_cleanup(), channel_cache, channel_cache_by_name, channel_snapshot_cmp_cb(), channel_snapshot_hash_cb(), channel_snapshot_uniqueid_cmp_cb(), channel_snapshot_uniqueid_hash_cb(), channel_topic_all, NULL, stasis_channels_cleanup(), STASIS_MESSAGE_TYPE_INIT, and stasis_topic_create().
Referenced by ast_channels_init().
|
static |
Definition at line 601 of file stasis_channels.c.
References ao2_cleanup, and ast_json_unref().
Referenced by create_channel_blob_message().
|
static |
Definition at line 1381 of file stasis_channels.c.
References ast_channel_snapshot_to_json(), ast_json_copy(), ast_json_is_null(), ast_json_object_create(), ast_json_object_set(), ast_json_string_create(), ast_json_timeval(), ast_json_unref(), ast_channel_blob::blob, NULL, ast_channel_blob::snapshot, stasis_message_data(), stasis_message_timestamp(), and type.
Referenced by hangup_request_to_json(), talking_start_to_json(), talking_stop_to_json(), tone_detect_to_json(), and varset_to_json().
|
static |
Definition at line 826 of file stasis_channels.c.
References CMP_MATCH, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, OBJ_SEARCH_OBJECT, OBJ_SEARCH_PARTIAL_KEY, and channel_role_snapshot::role.
Referenced by ast_multi_channel_blob_create(), and ast_multi_channel_blob_get_channels().
|
static |
Definition at line 856 of file stasis_channels.c.
References ast_assert, ast_str_case_hash(), OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, and OBJ_SEARCH_OBJECT.
Referenced by ast_multi_channel_blob_create().
|
static |
Definition at line 955 of file stasis_channels.c.
References ao2_cleanup, and channel_role_snapshot::snapshot.
Referenced by ast_multi_channel_blob_add_channel().
|
static |
Definition at line 267 of file stasis_channels.c.
References accountcode, AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_ref, ast_channel_accountcode(), ast_channel_creationtime(), ast_channel_language(), ast_channel_name(), ast_channel_tech(), ast_channel_tenantid(), ast_channel_uniqueid(), ast_channel_userfield(), ast_string_field_init, ast_string_field_init_extended, ast_string_field_set, channel_snapshot_base_dtor(), ast_channel_snapshot_base::creationtime, language, name, NULL, ast_channel_tech::properties, ast_channel_snapshot_base::tech_properties, ast_channel_snapshot_base::tenantid, type, ast_channel_snapshot_base::uniqueid, and ast_channel_snapshot_base::userfield.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 260 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_base_create().
|
static |
Definition at line 384 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_cleanup, AST_BRIDGE_FLAG_INVISIBLE, ast_channel_get_bridge(), ast_test_flag, ast_bridge::feature_flags, ast_channel_snapshot_bridge::id, NULL, and ast_bridge::uniqueid.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 327 of file stasis_channels.c.
References ast_channel_snapshot_caller::ani, AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_ref, ast_channel_caller(), ast_channel_dialed(), ast_channel_redirecting(), ast_party_id_presentation(), ast_string_field_init, ast_string_field_set, channel_snapshot_caller_dtor(), ast_channel_snapshot_caller::dialed_subaddr, ast_channel_snapshot_caller::dnid, name, NULL, ast_channel_snapshot_caller::pres, ast_channel_snapshot_caller::rdnis, S_COR, S_OR, ast_party_dialed::str, and ast_channel_snapshot_caller::subaddr.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 320 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_caller_create().
|
static |
Definition at line 166 of file stasis_channels.c.
References ast_channel_snapshot::base, CMP_MATCH, ast_channel_snapshot::flags, ast_channel_snapshot_base::name, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, OBJ_SEARCH_OBJECT, and OBJ_SEARCH_PARTIAL_KEY.
Referenced by ast_multi_channel_blob_get_channels(), and ast_stasis_channels_init().
|
static |
Definition at line 364 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ast_channel_connected(), ast_copy_string(), ast_channel_snapshot_connected::name, name, NULL, ast_channel_snapshot_connected::number, and S_COR.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 413 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_ref, ast_channel_snapshot_dialplan::appl, ast_channel_appl(), ast_channel_context(), ast_channel_data(), ast_channel_exten(), ast_channel_priority(), ast_string_field_init, ast_string_field_set, channel_snapshot_dialplan_dtor(), voicemailpwcheck::context, ast_channel_snapshot_dialplan::data, ast_channel_snapshot_dialplan::exten, NULL, and ast_channel_snapshot_dialplan::priority.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 406 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_dialplan_create().
|
static |
Definition at line 245 of file stasis_channels.c.
References ao2_cleanup, ast_channel_snapshot::ari_vars, ast_channel_snapshot::base, ast_channel_snapshot::bridge, ast_channel_snapshot::caller, ast_channel_snapshot::connected, ast_channel_snapshot::dialplan, ast_channel_snapshot::hangup, ast_channel_snapshot::manager_vars, and ast_channel_snapshot::peer.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 441 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ast_channel_hangupcause(), ast_channel_hangupsource(), ast_channel_snapshot_hangup::cause, NULL, S_OR, and ast_channel_snapshot_hangup::source.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 143 of file stasis_channels.c.
References ast_assert, ast_str_case_hash(), ast_channel_snapshot::flags, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, and OBJ_SEARCH_OBJECT.
Referenced by ast_multi_channel_blob_get_channels(), and ast_stasis_channels_init().
|
static |
Definition at line 300 of file stasis_channels.c.
References ast_channel_snapshot_peer::account, AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ast_channel_linkedid(), ast_channel_peeraccount(), ast_copy_string(), ast_channel_snapshot_peer::linkedid, NULL, and S_OR.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 219 of file stasis_channels.c.
References ast_channel_snapshot::base, CMP_MATCH, ast_channel_snapshot::flags, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, OBJ_SEARCH_OBJECT, OBJ_SEARCH_PARTIAL_KEY, and ast_channel_snapshot_base::uniqueid.
Referenced by ast_stasis_channels_init().
|
static |
Definition at line 196 of file stasis_channels.c.
References ast_assert, ast_str_case_hash(), ast_channel_snapshot::flags, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, and OBJ_SEARCH_OBJECT.
Referenced by ast_stasis_channels_init().
|
static |
Definition at line 572 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_bump, ao2_ref, ast_channel_snapshot(), ast_channel_snapshot_create(), channel_snapshot_update_dtor(), NULL, and update().
Referenced by ast_channel_publish_final_snapshot(), and ast_channel_publish_snapshot().
|
static |
Definition at line 564 of file stasis_channels.c.
References ao2_cleanup, and update().
Referenced by channel_snapshot_update_create().
|
static |
Definition at line 751 of file stasis_channels.c.
References ao2_alloc, ao2_cleanup, ao2_ref, ast_json_null(), ast_json_ref(), ast_channel_blob::blob, channel_blob_dtor(), NULL, ast_channel_blob::snapshot, stasis_message_create(), and type.
Referenced by ast_channel_blob_create(), and ast_channel_blob_create_from_cache().
|
static |
Definition at line 1934 of file stasis_channels.c.
References ao2_lock, ao2_unlock, ast_channel_name(), ast_channel_publish_dial_internal(), ast_debug, AST_LIST_EMPTY, AST_LIST_TRAVERSE, dial_masquerade_datastore::caller, dial_masquerade_datastore::dialed_peers, dial_target::dialstring, dial_target::list, NULL, and dial_target::peer.
|
static |
Definition at line 1867 of file stasis_channels.c.
References ao2_ref, and dial_masquerade_datastore_cleanup().
|
static |
Definition at line 2029 of file stasis_channels.c.
References ast_channel_datastore_add(), ast_datastore_alloc, ast_datastore_free(), dial_masquerade_datastore::caller, ast_datastore::data, dial_masquerade_caller_info, dial_masquerade_datastore_alloc(), dial_masquerade_info, and NULL.
Referenced by set_dial_masquerade().
|
static |
Definition at line 1841 of file stasis_channels.c.
References ao2_alloc, AST_LIST_HEAD_INIT_NOLOCK, dial_masquerade_datastore_dtor(), dial_masquerade_datastore::dialed_peers, and NULL.
Referenced by dial_masquerade_datastore_add().
|
static |
Definition at line 1807 of file stasis_channels.c.
References AST_LIST_REMOVE_HEAD, dial_target_free(), dial_masquerade_datastore::dialed_peers, and dial_target::list.
Referenced by dial_masquerade_caller_datastore_destroy(), dial_masquerade_datastore_dtor(), dial_masquerade_datastore_remove_chan(), and dial_masquerade_fixup().
|
static |
Definition at line 1858 of file stasis_channels.c.
References ao2_ref.
|
static |
Definition at line 1836 of file stasis_channels.c.
References dial_masquerade_datastore_cleanup().
Referenced by dial_masquerade_datastore_alloc().
|
static |
Definition at line 2006 of file stasis_channels.c.
References ast_channel_datastore_find(), dial_masquerade_caller_info, dial_masquerade_info, and NULL.
Referenced by dial_masquerade_fixup(), remove_dial_masquerade(), remove_dial_masquerade_caller(), and set_dial_masquerade().
|
static |
Definition at line 1816 of file stasis_channels.c.
References ao2_lock, ao2_unlock, AST_LIST_REMOVE_CURRENT, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, dial_masquerade_datastore::caller, dial_masquerade_datastore_cleanup(), dial_target_free(), dial_masquerade_datastore::dialed_peers, dial_target::list, and dial_target::peer.
Referenced by remove_dial_masquerade(), remove_dial_masquerade_caller(), and set_dial_masquerade().
|
static |
Definition at line 1875 of file stasis_channels.c.
References ao2_lock, ao2_unlock, ast_channel_datastore_remove(), ast_channel_name(), ast_channel_publish_dial_internal(), ast_datastore_free(), ast_debug, AST_LIST_EMPTY, AST_LIST_REMOVE_CURRENT, AST_LIST_TRAVERSE, AST_LIST_TRAVERSE_SAFE_BEGIN, AST_LIST_TRAVERSE_SAFE_END, dial_masquerade_datastore::caller, dial_masquerade_datastore_cleanup(), dial_masquerade_datastore_find(), dial_target_free(), dial_masquerade_datastore::dialed_peers, dial_target::dialstring, NULL, and dial_target::peer.
|
static |
Definition at line 1785 of file stasis_channels.c.
References ast_channel_cleanup, ast_free, dial_target::dialstring, and dial_target::peer.
Referenced by dial_masquerade_datastore_cleanup(), dial_masquerade_datastore_remove_chan(), and dial_masquerade_fixup().
|
static |
Definition at line 1476 of file stasis_channels.c.
References ast_channel_snapshot_to_json(), ast_json_object_get(), ast_json_object_set(), ast_json_pack(), ast_json_string_get(), ast_json_timeval(), ast_json_unref(), ast_multi_channel_blob_get_channel(), ast_multi_channel_blob_get_json(), NULL, stasis_message_data(), and stasis_message_timestamp().
|
static |
Definition at line 1428 of file stasis_channels.c.
References ast_channel_snapshot_to_json(), ast_json_integer_get(), ast_json_object_get(), ast_json_pack(), ast_json_string_get(), ast_json_timeval(), ast_channel_blob::blob, digit, NULL, ast_channel_blob::snapshot, stasis_message_data(), and stasis_message_timestamp().
|
static |
Definition at line 1469 of file stasis_channels.c.
References channel_blob_to_json().
|
static |
Definition at line 1578 of file stasis_channels.c.
References ast_channel_snapshot_to_json(), ast_json_object_get(), ast_json_pack(), ast_json_string_get(), ast_json_timeval(), ast_channel_blob::blob, NULL, S_OR, ast_channel_blob::snapshot, stasis_message_data(), and stasis_message_timestamp().
|
static |
Definition at line 879 of file stasis_channels.c.
References ao2_cleanup, ast_json_unref(), ast_multi_channel_blob::blob, and ast_multi_channel_blob::channel_snapshots.
Referenced by ast_multi_channel_blob_create().
|
static |
Definition at line 592 of file stasis_channels.c.
References ast_channel_topic(), ast_channel_topic_all(), and stasis_publish().
Referenced by ast_channel_publish_dial_internal().
|
static |
Definition at line 2133 of file stasis_channels.c.
References ast_channel_datastore_remove(), ast_datastore_free(), ast_datastore::data, dial_masquerade_datastore_find(), and dial_masquerade_datastore_remove_chan().
Referenced by ast_channel_publish_dial_forward().
|
static |
Definition at line 2152 of file stasis_channels.c.
References ast_channel_datastore_remove(), ast_datastore_free(), AST_LIST_EMPTY, dial_masquerade_datastore::caller, ast_datastore::data, dial_masquerade_datastore_find(), dial_masquerade_datastore_remove_chan(), and dial_masquerade_datastore::dialed_peers.
Referenced by ast_channel_publish_dial_forward().
|
static |
Definition at line 2054 of file stasis_channels.c.
References ao2_lock, ao2_ref, ao2_unlock, ast_assert, ast_calloc, ast_channel_datastore_remove(), ast_channel_ref, ast_datastore_free(), ast_free, AST_LIST_INSERT_HEAD, ast_strdup, dial_masquerade_datastore::caller, ast_datastore::data, dial_masquerade_datastore_add(), dial_masquerade_datastore_find(), dial_masquerade_datastore_remove_chan(), dial_masquerade_datastore::dialed_peers, dial_target::dialstring, dial_target::list, NULL, and dial_target::peer.
Referenced by ast_channel_publish_dial_forward().
|
static |
Definition at line 1682 of file stasis_channels.c.
References ao2_cleanup, ast_channel_agent_login_type(), ast_channel_agent_logoff_type(), ast_channel_chanspy_start_type(), ast_channel_chanspy_stop_type(), ast_channel_dial_type(), ast_channel_dtmf_begin_type(), ast_channel_dtmf_end_type(), ast_channel_fax_type(), ast_channel_flash_type(), ast_channel_hangup_handler_type(), ast_channel_hangup_request_type(), ast_channel_hold_type(), ast_channel_masquerade_type(), ast_channel_mixmonitor_mute_type(), ast_channel_mixmonitor_start_type(), ast_channel_mixmonitor_stop_type(), ast_channel_moh_start_type(), ast_channel_moh_stop_type(), ast_channel_snapshot_type(), ast_channel_talking_start(), ast_channel_talking_stop(), ast_channel_tone_detect(), ast_channel_unhold_type(), ast_channel_varset_type(), ast_channel_wink_type(), channel_cache, channel_cache_by_name, channel_topic_all, NULL, and STASIS_MESSAGE_TYPE_CLEANUP.
Referenced by ast_stasis_channels_init().
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_agent_login_type | , |
. | to_ami = agent_login_to_ami |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_agent_logoff_type | , |
. | to_ami = agent_logoff_to_ami |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_chanspy_start_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_chanspy_stop_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_dial_type | , |
. | to_json = dial_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_dtmf_begin_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_dtmf_end_type | , |
. | to_json = dtmf_end_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_fax_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_flash_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_hangup_handler_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_hangup_request_type | , |
. | to_json = hangup_request_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_hold_type | , |
. | to_json = hold_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_masquerade_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_mixmonitor_mute_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_mixmonitor_start_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_mixmonitor_stop_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_moh_start_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_moh_stop_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_snapshot_type | ) |
Define channel message types.
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_talking_start | , |
. | to_ami = talking_start_to_ami , |
||
. | to_json = talking_start_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_talking_stop | , |
. | to_ami = talking_stop_to_ami , |
||
. | to_json = talking_stop_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_tone_detect | , |
. | to_json = tone_detect_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_unhold_type | , |
. | to_json = unhold_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_varset_type | , |
. | to_ami = varset_to_ami , |
||
. | to_json = varset_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_wink_type | ) |
|
static |
Definition at line 1526 of file stasis_channels.c.
References ast_free, ast_manager_build_channel_state_string(), ast_manager_event_blob_create(), ast_str_buffer(), EVENT_FLAG_CALL, NULL, ast_channel_blob::snapshot, and stasis_message_data().
|
static |
Definition at line 1544 of file stasis_channels.c.
References channel_blob_to_json().
|
static |
Definition at line 1550 of file stasis_channels.c.
References ast_free, ast_json_integer_get(), ast_json_object_get(), ast_manager_build_channel_state_string(), ast_manager_event_blob_create(), ast_str_buffer(), ast_channel_blob::blob, EVENT_FLAG_CALL, NULL, ast_channel_blob::snapshot, and stasis_message_data().
|
static |
Definition at line 1572 of file stasis_channels.c.
References channel_blob_to_json().
|
static |
Definition at line 1601 of file stasis_channels.c.
References channel_blob_to_json().
|
static |
Definition at line 1607 of file stasis_channels.c.
References ast_channel_snapshot_to_json(), ast_json_pack(), ast_json_timeval(), NULL, ast_channel_blob::snapshot, stasis_message_data(), and stasis_message_timestamp().
|
static |
Definition at line 1209 of file stasis_channels.c.
References ast_escape_c_alloc(), ast_free, ast_json_object_get(), ast_json_string_get(), ast_manager_build_channel_state_string(), ast_manager_event_blob_create(), ast_str_buffer(), ast_str_create, ast_str_set(), ast_channel_blob::blob, EVENT_FLAG_DIALPLAN, NULL, ast_channel_blob::snapshot, stasis_message_data(), and value.
|
static |
Definition at line 1462 of file stasis_channels.c.
References channel_blob_to_json().
|
static |
Definition at line 121 of file stasis_channels.c.
Referenced by ast_channel_cache_all(), ast_channel_publish_final_snapshot(), ast_channel_publish_snapshot(), ast_channel_snapshot_get_latest(), ast_stasis_channels_init(), channels_scrape_cb(), and stasis_channels_cleanup().
|
static |
Definition at line 122 of file stasis_channels.c.
Referenced by ast_channel_cache_by_name(), ast_channel_publish_final_snapshot(), ast_channel_publish_snapshot(), ast_channel_snapshot_get_latest_by_name(), ast_stasis_channels_init(), and stasis_channels_cleanup().
|
static |
Definition at line 120 of file stasis_channels.c.
Referenced by ast_channel_topic_all(), ast_stasis_channels_init(), and stasis_channels_cleanup().
|
static |
Definition at line 1991 of file stasis_channels.c.
Referenced by dial_masquerade_datastore_add(), and dial_masquerade_datastore_find().
|
static |
Definition at line 1984 of file stasis_channels.c.
Referenced by dial_masquerade_datastore_add(), and dial_masquerade_datastore_find().