Asterisk - The Open Source Telephony Project
18.5.0
|
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"
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 117 of file stasis_channels.c.
Referenced by ast_multi_channel_blob_create(), and ast_multi_channel_blob_get_channels().
|
static |
Definition at line 1213 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().
Referenced by unhold_to_json().
|
static |
Definition at line 1233 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().
Referenced by unhold_to_json().
|
static |
Definition at line 602 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(), remove_dial_masquerade(), remove_dial_masquerade_caller(), S_OR, set_dial_masquerade(), 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 |
Definition at line 1318 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 |
Definition at line 1297 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 |
Definition at line 1328 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 1255 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_timeval(), AST_LIST_EMPTY, ast_state2str(), 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::state, 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.
Definition at line 1666 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_monitor_start_type(), ast_channel_monitor_stop_type(), ast_channel_snapshot_type(), ast_channel_talking_start(), ast_channel_talking_stop(), ast_channel_unhold_type(), ast_channel_varset_type(), AST_NUM_CHANNEL_BUCKETS, ast_register_cleanup(), channel_snapshot_cmp_cb(), channel_snapshot_hash_cb(), channel_snapshot_uniqueid_cmp_cb(), channel_snapshot_uniqueid_hash_cb(), NULL, stasis_channels_cleanup(), STASIS_MESSAGE_TYPE_INIT, and stasis_topic_create().
Referenced by ast_channels_init().
|
static |
Definition at line 595 of file stasis_channels.c.
References ao2_cleanup, and ast_json_unref().
Referenced by create_channel_blob_message().
|
static |
Definition at line 1338 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, channel_role_snapshot::snapshot, stasis_message_data(), and stasis_message_timestamp().
Referenced by hangup_request_to_json(), talking_start_to_json(), talking_stop_to_json(), and varset_to_json().
|
static |
Definition at line 820 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 850 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 949 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 266 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_uniqueid(), ast_channel_userfield(), ast_string_field_init, 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, type, ast_channel_snapshot_base::uniqueid, and ast_channel_snapshot_base::userfield.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 259 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_base_create().
|
static |
Definition at line 378 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 321 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 314 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_caller_create().
|
static |
Definition at line 165 of file stasis_channels.c.
References ast_channel_snapshot::base, CMP_MATCH, 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 358 of file stasis_channels.c.
References AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ast_channel_connected(), ast_copy_string(), name, ast_channel_snapshot_connected::name, NULL, ast_channel_snapshot_connected::number, and S_COR.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 407 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(), context, ast_channel_snapshot_dialplan::data, exten, NULL, and ast_channel_snapshot_dialplan::priority.
Referenced by ast_channel_snapshot_create().
|
static |
Definition at line 400 of file stasis_channels.c.
References ast_string_field_free_memory.
Referenced by channel_snapshot_dialplan_create().
|
static |
Definition at line 244 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 435 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 142 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_get_channels(), and ast_stasis_channels_init().
|
static |
Definition at line 294 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 218 of file stasis_channels.c.
References ast_channel_snapshot::base, CMP_MATCH, 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 195 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_stasis_channels_init().
|
static |
Definition at line 566 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(), ast_channel_snapshot_update::new_snapshot, NULL, ast_channel_snapshot_update::old_snapshot, and update().
Referenced by ast_channel_publish_final_snapshot(), and ast_channel_publish_snapshot().
|
static |
Definition at line 558 of file stasis_channels.c.
References ao2_cleanup, ast_channel_snapshot_update::new_snapshot, ast_channel_snapshot_update::old_snapshot, and update().
Referenced by channel_snapshot_update_create().
|
static |
Definition at line 745 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, and stasis_message_create().
Referenced by ast_channel_blob_create(), and ast_channel_blob_create_from_cache().
|
static |
Definition at line 1882 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 1815 of file stasis_channels.c.
References ao2_ref, dial_masquerade_datastore_cleanup(), and dial_masquerade_datastore_find().
|
static |
Definition at line 1977 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_datastore_alloc(), and NULL.
Referenced by set_dial_masquerade().
|
static |
Definition at line 1789 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 1755 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 1806 of file stasis_channels.c.
References ao2_ref.
|
static |
Definition at line 1784 of file stasis_channels.c.
References dial_masquerade_datastore_cleanup().
Referenced by dial_masquerade_datastore_alloc().
|
static |
Definition at line 1954 of file stasis_channels.c.
References ast_channel_datastore_find(), and NULL.
Referenced by dial_masquerade_caller_datastore_destroy(), dial_masquerade_fixup(), remove_dial_masquerade(), remove_dial_masquerade_caller(), and set_dial_masquerade().
|
static |
Definition at line 1764 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 1823 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 1733 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 1433 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().
Referenced by unhold_to_json().
|
static |
Definition at line 1385 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, channel_role_snapshot::snapshot, stasis_message_data(), and stasis_message_timestamp().
Referenced by unhold_to_json().
|
static |
Definition at line 1426 of file stasis_channels.c.
References channel_blob_to_json().
Referenced by unhold_to_json().
|
static |
Definition at line 1535 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, musicclass, NULL, S_OR, ast_channel_blob::snapshot, channel_role_snapshot::snapshot, stasis_message_data(), and stasis_message_timestamp().
Referenced by unhold_to_json().
|
static |
Definition at line 873 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 586 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 2081 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(), and ast_channel_publish_dial_internal().
|
static |
Definition at line 2100 of file stasis_channels.c.
References ast_channel_datastore_remove(), ast_datastore_free(), AST_LIST_EMPTY, 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(), and ast_channel_publish_dial_internal().
|
static |
Definition at line 2002 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(), and ast_channel_publish_dial_internal().
|
static |
Definition at line 1630 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_monitor_start_type(), ast_channel_monitor_stop_type(), ast_channel_snapshot_type(), ast_channel_talking_start(), ast_channel_talking_stop(), ast_channel_unhold_type(), ast_channel_varset_type(), NULL, and STASIS_MESSAGE_TYPE_CLEANUP.
Referenced by ast_stasis_channels_init().
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_snapshot_type | ) |
Define channel message types.
Referenced by unhold_to_json().
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_dial_type | , |
. | to_json = dial_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_hangup_request_type | , |
. | to_json = hangup_request_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_masquerade_type | ) |
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_hold_type | , |
. | to_json = hold_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_unhold_type | , |
. | to_json = unhold_to_json |
||
) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_flash_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_chanspy_start_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_chanspy_stop_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_fax_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_hangup_handler_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_monitor_start_type | ) |
STASIS_MESSAGE_TYPE_DEFN | ( | ast_channel_monitor_stop_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_mixmonitor_mute_type | ) |
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_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 |
||
) |
|
static |
Definition at line 1483 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().
Referenced by unhold_to_json().
|
static |
Definition at line 1501 of file stasis_channels.c.
References channel_blob_to_json().
Referenced by unhold_to_json().
|
static |
Definition at line 1507 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().
Referenced by unhold_to_json().
|
static |
Definition at line 1529 of file stasis_channels.c.
References channel_blob_to_json().
Referenced by unhold_to_json().
|
static |
Definition at line 1557 of file stasis_channels.c.
References agent_login_to_ami(), agent_logoff_to_ami(), 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_monitor_start_type(), ast_channel_monitor_stop_type(), ast_channel_snapshot_to_json(), ast_channel_snapshot_type(), ast_channel_talking_start(), ast_channel_talking_stop(), ast_channel_unhold_type(), ast_channel_varset_type(), ast_json_pack(), ast_json_timeval(), dial_to_json(), dtmf_end_to_json(), hangup_request_to_json(), hold_to_json(), NULL, ast_channel_blob::snapshot, channel_role_snapshot::snapshot, stasis_message_data(), stasis_message_timestamp(), STASIS_MESSAGE_TYPE_DEFN(), talking_start_to_ami(), talking_start_to_json(), talking_stop_to_ami(), talking_stop_to_json(), to_ami(), varset_to_ami(), and varset_to_json().
|
static |
Definition at line 1175 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.
Referenced by unhold_to_json().
|
static |
Definition at line 1419 of file stasis_channels.c.
References channel_blob_to_json().
Referenced by unhold_to_json().
|
static |
Definition at line 120 of file stasis_channels.c.
Referenced by channels_scrape_cb().
|
static |
Definition at line 121 of file stasis_channels.c.
|
static |
Definition at line 119 of file stasis_channels.c.
Referenced by ast_channel_topic_all().
|
static |
Definition at line 1939 of file stasis_channels.c.
|
static |
Definition at line 1932 of file stasis_channels.c.