Asterisk - The Open Source Telephony Project GIT-master-3dae2cf
|
Channel Accessor API. More...
#include "asterisk.h"
#include <unistd.h>
#include <fcntl.h>
#include "asterisk/alertpipe.h"
#include "asterisk/paths.h"
#include "asterisk/channel.h"
#include "asterisk/channel_internal.h"
#include "asterisk/endpoints.h"
#include "asterisk/indications.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/stringfields.h"
#include "asterisk/stream.h"
#include "asterisk/test.h"
#include "asterisk/vector.h"
Go to the source code of this file.
Data Structures | |
struct | ast_channel |
Main Channel structure associated with a channel. More... | |
struct | ast_channel_id |
Channel UniqueId structure. More... | |
Macros | |
#define | DEFINE_STRINGFIELD_GETTER_FOR(field) |
#define | DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR(field, publish, assert_on_null, invalidate) |
#define | DEFINE_STRINGFIELD_SETTERS_FOR(field, assert_on_null) |
#define | DIALED_CAUSES_BUCKETS 37 |
Variables | |
static struct ast_threadstorage | channel_errno = { .once = PTHREAD_ONCE_INIT , .key_init = __init_channel_errno , .custom_init = NULL , } |
static int | uniqueint |
The monotonically increasing integer counter for channel uniqueids. More... | |
Channel Accessor API.
This file is intended to be the only file that ever accesses the internals of an ast_channel. All other files should use the accessor functions defined here.
Definition in file channel_internal_api.c.
#define DEFINE_STRINGFIELD_GETTER_FOR | ( | field | ) |
Definition at line 287 of file channel_internal_api.c.
#define DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | field, | |
publish, | |||
assert_on_null, | |||
invalidate | |||
) |
Definition at line 251 of file channel_internal_api.c.
#define DEFINE_STRINGFIELD_SETTERS_FOR | ( | field, | |
assert_on_null | |||
) |
Definition at line 231 of file channel_internal_api.c.
#define DIALED_CAUSES_BUCKETS 37 |
Definition at line 1331 of file channel_internal_api.c.
struct ast_channel * __ast_channel_internal_alloc | ( | void(*)(void *obj) | destructor, |
const struct ast_assigned_ids * | assignedids, | ||
const struct ast_channel * | requestor, | ||
const char * | file, | ||
int | line, | ||
const char * | function | ||
) |
Definition at line 1410 of file channel_internal_api.c.
References __ast_channel_internal_alloc_with_initializers(), make_ari_stubs::file, and NULL.
Referenced by __ast_dummy_channel_alloc().
struct ast_channel * __ast_channel_internal_alloc_with_initializers | ( | void(*)(void *obj) | destructor, |
const struct ast_assigned_ids * | assignedids, | ||
const struct ast_channel * | requestor, | ||
const struct ast_channel_initializers * | initializers, | ||
const char * | file, | ||
int | line, | ||
const char * | function | ||
) |
Definition at line 1333 of file channel_internal_api.c.
References __ao2_alloc(), AO2_ALLOC_OPT_LOCK_MUTEX, ao2_container_alloc_hash, ast_atomic_fetchadd_int(), AST_CHANNEL_INITIALIZERS_VERSION, ast_channel_unref, ast_config_AST_SYSTEM_NAME, ast_copy_string(), AST_FLAGS_ALL, ast_log, AST_MAX_FDS, ast_set_flag, ast_string_field_init, ast_strlen_zero(), AST_VECTOR_INIT, DIALED_CAUSES_BUCKETS, make_ari_stubs::file, ast_channel::linkedid, LOG_ERROR, NULL, pvt_cause_cmp_fn(), pvt_cause_hash_fn(), ast_channel_initializers::tenantid, tmp(), ast_assigned_ids::uniqueid, uniqueint, and ast_channel_initializers::version.
Referenced by __ast_channel_alloc_ap(), and __ast_channel_internal_alloc().
|
static |
Definition at line 1590 of file channel_internal_api.c.
enum ast_channel_adsicpe ast_channel_adsicpe | ( | const struct ast_channel * | chan | ) |
void ast_channel_adsicpe_set | ( | struct ast_channel * | chan, |
enum ast_channel_adsicpe | value | ||
) |
Definition at line 786 of file channel_internal_api.c.
References ast_channel::adsicpe, and value.
Referenced by __adsi_transmit_messages(), adsi_begin(), adsi_transmit_message_full(), ast_ari_channels_dial(), ast_iax2_new(), AST_TEST_DEFINE(), begin_dial_prerun(), chan_pjsip_new(), channel_do_masquerade(), dahdi_new(), dial_exec_full(), jingle_new(), ooh323_new(), ring_entry(), and unistim_new().
int ast_channel_alert_writable | ( | struct ast_channel * | chan | ) |
Definition at line 1126 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_writable().
Referenced by __ast_queue_frame().
int ast_channel_alert_write | ( | struct ast_channel * | chan | ) |
Definition at line 1111 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_write().
Referenced by __ast_queue_frame(), __ast_read(), and channel_do_masquerade().
enum ama_flags ast_channel_amaflags | ( | const struct ast_channel * | chan | ) |
Definition at line 420 of file channel_internal_api.c.
References ast_channel::amaflags.
Referenced by ast_channel_log(), ast_channel_snapshot_create(), ast_channel_yank(), ast_var_channels_table(), and func_channel_read().
void ast_channel_amaflags_set | ( | struct ast_channel * | chan, |
enum ama_flags | value | ||
) |
Definition at line 425 of file channel_internal_api.c.
References ast_channel::amaflags, ast_channel_publish_snapshot(), and value.
Referenced by __ast_channel_alloc_ap(), ast_cel_fabricate_channel_from_event(), ast_iax2_new(), AST_TEST_DEFINE(), cdr_write(), dahdi_new(), func_channel_write_real(), and ooh323_new().
struct timeval ast_channel_answertime | ( | struct ast_channel * | chan | ) |
Definition at line 987 of file channel_internal_api.c.
Referenced by ast_channel_get_up_time_ms(), and set_channel_answer_time().
void ast_channel_answertime_set | ( | struct ast_channel * | chan, |
struct timeval * | value | ||
) |
Definition at line 992 of file channel_internal_api.c.
References ast_channel::answertime, and value.
Referenced by set_channel_answer_time().
const char * ast_channel_appl | ( | const struct ast_channel * | chan | ) |
Definition at line 331 of file channel_internal_api.c.
References ast_channel::appl.
Referenced by __analog_handle_event(), ast_bridge_transfer_attended(), ast_channel_log(), ast_var_channels_table(), attended_transfer_bridge(), channel_snapshot_dialplan_create(), func_channel_read(), generate_status(), handle_showchan(), pbx_exec(), realtime_exec(), and serialize_showchan().
void ast_channel_appl_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 335 of file channel_internal_api.c.
References ast_channel::appl, AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN, ast_channel_snapshot_invalidate_segment(), and value.
Referenced by ast_cel_fabricate_channel_from_event(), AST_TEST_DEFINE(), begin_dial_prerun(), dial_exec_full(), do_forward(), pbx_exec(), realtime_exec(), and ring_entry().
struct ast_audiohook_list * ast_channel_audiohooks | ( | const struct ast_channel * | chan | ) |
Definition at line 590 of file channel_internal_api.c.
References ast_channel::audiohooks.
Referenced by __ast_read(), ast_audiohook_attach(), ast_audiohook_detach_source(), ast_audiohook_move_all(), ast_audiohook_move_by_source(), ast_audiohook_remove(), ast_audiohook_set_mute(), ast_audiohook_set_mute_all(), ast_channel_audiohook_count_by_source(), ast_channel_audiohook_count_by_source_running(), ast_channel_has_audio_frame_or_monitor(), ast_channel_has_hook_requiring_audio(), ast_write_stream(), conf_run(), and destroy_hooks().
void ast_channel_audiohooks_set | ( | struct ast_channel * | chan, |
struct ast_audiohook_list * | value | ||
) |
Definition at line 594 of file channel_internal_api.c.
References ast_channel::audiohooks, and value.
Referenced by __ast_read(), ast_audiohook_attach(), ast_write_stream(), and destroy_hooks().
struct ast_autochan_list * ast_channel_autochans | ( | struct ast_channel * | chan | ) |
Definition at line 873 of file channel_internal_api.c.
References ast_channel::autochans.
Referenced by __ast_channel_alloc_ap(), ast_autochan_destroy(), ast_autochan_new_channel(), and ast_autochan_setup().
pthread_t ast_channel_blocker | ( | const struct ast_channel * | chan | ) |
Definition at line 1214 of file channel_internal_api.c.
References ast_channel::blocker.
Referenced by __ast_queue_frame(), ast_softhangup_nolock(), and channel_do_masquerade().
void ast_channel_blocker_set | ( | struct ast_channel * | chan, |
pthread_t | value | ||
) |
Definition at line 1218 of file channel_internal_api.c.
References ast_channel::blocker, and value.
int ast_channel_blocker_tid | ( | const struct ast_channel * | chan | ) |
Definition at line 1223 of file channel_internal_api.c.
References ast_channel::blocker_tid.
Referenced by ast_hangup().
void ast_channel_blocker_tid_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 1227 of file channel_internal_api.c.
References ast_channel::blocker_tid, and value.
const char * ast_channel_blockproc | ( | const struct ast_channel * | chan | ) |
Definition at line 340 of file channel_internal_api.c.
References ast_channel::blockproc.
Referenced by ast_hangup(), and serialize_showchan().
void ast_channel_blockproc_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 344 of file channel_internal_api.c.
References ast_channel::blockproc, and value.
struct ast_party_caller * ast_channel_caller | ( | struct ast_channel * | chan | ) |
Definition at line 889 of file channel_internal_api.c.
References ast_channel::caller.
Referenced by __analog_handle_event(), __analog_ss_thread(), __ast_channel_alloc_ap(), __ast_goto_if_exists(), __ast_pbx_run(), acf_isexten_exec(), action_meetmelist(), after_bridge_move_channel(), agent_request_exec(), analog_ss_thread(), app_exec(), ast_app_dtget(), ast_ari_channels_dial(), ast_bridge_setup_after_goto(), ast_cel_fabricate_channel_from_event(), ast_channel_destructor(), ast_channel_set_caller(), ast_channel_set_caller_event(), ast_do_pickup(), ast_dummy_channel_destructor(), ast_iax2_new(), ast_pbx_h_exten_run(), ast_set_callerid(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), ast_unreal_call_setup(), ast_var_channels_table(), background_detect_exec(), begin_dial_prerun(), blacklist_read(), bridge_reconfigured_connected_line_update(), callerid_read(), callerid_write(), cc_generic_agent_init(), chan_pjsip_cng_tone_detected(), chan_pjsip_new(), channel_do_masquerade(), channel_snapshot_caller_create(), collect_digits(), console_call(), copy_caller_data(), copy_message(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_new(), dial_exec_full(), dial_trunk(), dialog_info_generate_body_content(), disa_exec(), do_forward(), fax_detect_framehook(), find_matching_endif(), find_matching_endwhile(), findmeexec(), forward_message(), gosub_exec(), gosub_run(), grab_transfer(), handle_cli_confbridge_list_item(), handle_gosub(), handle_setpriority(), handle_showchan(), incoming_in_dialog_request(), isAnsweringMachine(), isexten_function_read(), launch_monitor_thread(), leave_voicemail(), local_call(), manager_queues_status(), meetme_show_cmd(), minivm_greet_exec(), minivm_notify_exec(), my_get_callerid(), my_handle_dtmf(), onModeChanged(), ooh323_rtp_read(), originate_exec(), park_local_transfer(), pbx_builtin_background(), pbx_builtin_waitexten(), pbx_outgoing_attempt(), pbx_parse_location(), privacy_exec(), queue_connected_line_update(), queue_exec(), readexten_exec(), recalling_enter(), ring_entry(), run_externnotify(), serialize_showchan(), setup_env(), setup_privacy_args(), sla_ring_station(), sms_exec(), socket_process_helper(), start_automixmonitor(), try_calling(), unistim_new(), unreal_colp_redirect_indicate(), update_connected_line_from_peer(), update_initial_connected_line(), valid_exit(), vm_authenticate(), wait_for_answer(), waitstream_core(), write_metadata(), and zapateller_exec().
void ast_channel_caller_set | ( | struct ast_channel * | chan, |
struct ast_party_caller * | value | ||
) |
Definition at line 945 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_CALLER, ast_channel_snapshot_invalidate_segment(), ast_channel::caller, and value.
Referenced by channel_do_masquerade(), dial_trunk(), and sla_ring_station().
ast_group_t ast_channel_callgroup | ( | const struct ast_channel * | chan | ) |
Definition at line 1075 of file channel_internal_api.c.
References ast_channel::callgroup.
Referenced by ast_var_channels_table(), find_channel_by_group(), func_channel_read(), generate_status(), handle_showchan(), and serialize_showchan().
void ast_channel_callgroup_set | ( | struct ast_channel * | chan, |
ast_group_t | value | ||
) |
Definition at line 1079 of file channel_internal_api.c.
References ast_channel::callgroup, and value.
Referenced by chan_pjsip_new(), dahdi_new(), func_channel_write_real(), jingle_new(), and unistim_new().
ast_callid ast_channel_callid | ( | const struct ast_channel * | chan | ) |
Definition at line 794 of file channel_internal_api.c.
References ast_channel::callid.
Referenced by __analog_ss_thread(), __ast_pbx_run(), ast_channel_destructor(), ast_unreal_channel_push_to_bridge(), attended_transfer_monitor_thread(), autoservice_run(), bridge_channel_control_thread(), func_channel_read(), handle_showchan(), and request_channel().
void ast_channel_callid_cleanup | ( | struct ast_channel * | chan | ) |
Definition at line 1069 of file channel_internal_api.c.
References ast_channel::callid.
Referenced by ast_channel_destructor().
void ast_channel_callid_set | ( | struct ast_channel * | chan, |
ast_callid | value | ||
) |
Definition at line 798 of file channel_internal_api.c.
References AST_CALLID_BUFFER_LENGTH, ast_callid_strnprint(), ast_channel_name(), ast_debug, ast_test_suite_event_notify, and ast_channel::callid.
Referenced by __ast_pbx_run(), ast_iax2_new(), ast_unreal_channel_push_to_bridge(), ast_unreal_new_channels(), common_recall_channel_setup(), dahdi_new(), iax2_request(), jingle_new(), and request_channel().
struct ast_cdr * ast_channel_cdr | ( | const struct ast_channel * | chan | ) |
Definition at line 598 of file channel_internal_api.c.
References ast_channel::cdr.
Referenced by ast_channel_destructor(), ast_channel_log(), ast_dummy_channel_destructor(), cdr_read_callback(), and cdr_retrieve_time().
void ast_channel_cdr_set | ( | struct ast_channel * | chan, |
struct ast_cdr * | value | ||
) |
Definition at line 602 of file channel_internal_api.c.
References ast_channel::cdr, and value.
Referenced by ast_channel_destructor(), ast_dummy_channel_destructor(), custom_log(), manager_log(), and write_cdr().
struct ast_party_connected_line * ast_channel_connected | ( | struct ast_channel * | chan | ) |
Definition at line 893 of file channel_internal_api.c.
References ast_channel::connected.
Referenced by __ast_channel_alloc_ap(), __ast_read(), __ast_request_and_dial(), action_meetmelist(), after_bridge_move_channel(), agent_login_channel_config(), analog_call(), ari_channels_handle_originate_with_id(), ast_ari_channels_dial(), ast_call_forward(), ast_channel_connected_line_sub(), ast_channel_destructor(), ast_channel_set_connected_line(), ast_do_pickup(), ast_dummy_channel_destructor(), ast_unreal_call_setup(), attended_transfer_properties_alloc(), begin_dial_prerun(), channel_do_masquerade(), channel_snapshot_connected_create(), connectedline_read(), connectedline_write(), copy_caller_data(), dahdi_call(), dial_exec_full(), dialog_info_generate_body_content(), do_forward(), findmeexec(), handle_showchan(), iax2_call(), indicate_connected_line(), launch_monitor_thread(), manager_queues_status(), ooh323_call(), ooh323_indicate(), park_local_transfer(), pbx_outgoing_attempt(), recalling_enter(), retransfer_enter(), ring_entry(), send_callerid_screen(), serialize_showchan(), try_calling(), unistim_indicate(), unreal_colp_redirect_indicate(), and wait_for_answer().
struct ast_party_id ast_channel_connected_effective_id | ( | struct ast_channel * | chan | ) |
Definition at line 901 of file channel_internal_api.c.
References ast_party_id_merge().
Referenced by caller_id_outgoing_request(), caller_id_outgoing_response(), generate_status(), handle_showchan(), is_colp_update_allowed(), set_from_header(), and stir_shaken_outgoing_request().
struct ast_party_connected_line * ast_channel_connected_indicated | ( | struct ast_channel * | chan | ) |
Definition at line 897 of file channel_internal_api.c.
References ast_channel::connected_indicated.
Referenced by __ast_channel_alloc_ap(), after_bridge_move_channel(), ast_channel_destructor(), ast_dummy_channel_destructor(), and indicate_connected_line().
void ast_channel_connected_set | ( | struct ast_channel * | chan, |
struct ast_party_connected_line * | value | ||
) |
Definition at line 950 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_CONNECTED, ast_channel_snapshot_invalidate_segment(), ast_channel::connected, and value.
Referenced by channel_do_masquerade().
const char * ast_channel_context | ( | const struct ast_channel * | chan | ) |
Definition at line 358 of file channel_internal_api.c.
References ast_channel::context.
Referenced by __analog_ss_thread(), __ast_goto_if_exists(), __ast_pbx_run(), _while_exec(), acf_isexten_exec(), action_blind_transfer(), action_bridge(), action_dialplan_exec(), analog_ss_thread(), ast_bridge_setup_after_goto(), ast_call_forward(), ast_cc_call_init(), ast_channel_by_exten_cb(), ast_channel_log(), ast_channel_yank(), ast_pbx_h_exten_run(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), ast_var_channels_table(), ast_waitstream_exten(), background_detect_exec(), blind_transfer_exec(), bridge_exec(), cc_generic_agent_init(), cc_interfaces_datastore_init(), chan_pjsip_cng_tone_detected(), channel_snapshot_dialplan_create(), collect_digits(), common_exec(), conf_run(), dahdi_handle_dtmf(), dial_exec_full(), dialout(), do_forward(), eval_exten_read(), expand_gosub_args(), extenspy_exec(), fax_detect_framehook(), feature_blind_transfer(), find_matching_endif(), find_matching_endwhile(), forward_message(), func_channel_read(), func_channel_write_real(), get_cid_name(), get_transfer_context(), gosub_exec(), gosub_run(), goto_exten(), goto_parser(), handle_call_forward(), handle_gosub(), handle_setpriority(), handle_showchan(), iax2_call(), if_helper(), launch_monitor_thread(), leave_voicemail(), log_exec(), lua_pbx_exec(), minivm_greet_exec(), my_handle_dtmf(), onedigit_goto(), onModeChanged(), ooh323_rtp_read(), pbx_builtin_background(), pbx_builtin_goto(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_extension_helper(), pbx_parse_location(), pickup_exec(), raise_exception(), readexten_exec(), realtime_exec(), ring_entry(), serialize_showchan(), setup_env(), setup_peer_after_bridge_goto(), try_calling(), vm_authenticate(), vm_execmain(), vmauthenticate(), and wait_for_answer().
void ast_channel_context_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 366 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN, ast_channel_snapshot_invalidate_segment(), ast_copy_string(), ast_channel::context, ast_channel::lastcontext, and value.
Referenced by __ast_channel_alloc_ap(), __ast_request_and_dial(), action_dialplan_exec(), analog_ss_thread(), ari_originate_dial(), ast_add_extension2_lockopt(), ast_bridge_setup_after_goto(), ast_cel_fabricate_channel_from_event(), ast_explicit_goto(), ast_iax2_new(), ast_pbx_h_exten_run(), AST_TEST_DEFINE(), dahdi_new(), dial_exec_full(), dialout(), do_notify(), forward_message(), generic_recall(), gosub_exec(), gosub_run(), handle_gosub(), handle_setcontext(), iax2_call(), jingle_new(), leave_voicemail(), minivm_greet_exec(), my_distinctive_ring(), ooh323_new(), pbx_builtin_background(), pbx_extension_helper(), pbx_outgoing_exec(), and return_exec().
struct timeval ast_channel_creationtime | ( | struct ast_channel * | chan | ) |
Definition at line 977 of file channel_internal_api.c.
Referenced by ast_channel_get_duration_ms(), ast_pickup_find_by_group(), AST_TEST_DEFINE(), channel_snapshot_base_create(), find_ringing_channel(), generate_status(), get_device_state_causing_channels(), handle_showchan(), and wait_for_answer().
void ast_channel_creationtime_set | ( | struct ast_channel * | chan, |
struct timeval * | value | ||
) |
Definition at line 981 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE, ast_channel_snapshot_invalidate_segment(), ast_channel::creationtime, and value.
Referenced by __ast_channel_alloc_ap().
const char * ast_channel_data | ( | const struct ast_channel * | chan | ) |
Definition at line 348 of file channel_internal_api.c.
References ast_channel::data.
Referenced by ast_channel_log(), ast_var_channels_table(), channel_snapshot_dialplan_create(), func_channel_read(), generate_status(), handle_showchan(), handle_verbose(), pbx_exec(), realtime_exec(), and serialize_showchan().
void ast_channel_data_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 352 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN, ast_channel_snapshot_invalidate_segment(), ast_channel::data, and value.
Referenced by ast_cel_fabricate_channel_from_event(), AST_TEST_DEFINE(), begin_dial_prerun(), dial_exec_full(), do_forward(), pbx_exec(), realtime_exec(), retrydial_exec(), and ring_entry().
struct ast_datastore_list * ast_channel_datastores | ( | struct ast_channel * | chan | ) |
Definition at line 869 of file channel_internal_api.c.
References ast_channel::datastores.
Referenced by __ast_channel_alloc_ap(), __ast_dummy_channel_alloc(), ast_channel_datastore_add(), ast_channel_datastore_find(), ast_channel_datastore_inherit(), ast_channel_datastore_remove(), ast_channel_destructor(), ast_dummy_channel_destructor(), chan_cleanup(), channel_do_masquerade(), func_read(), and handle_cli_mixmonitor().
struct ast_party_dialed * ast_channel_dialed | ( | struct ast_channel * | chan | ) |
Definition at line 905 of file channel_internal_api.c.
References ast_channel::dialed.
Referenced by __ast_channel_alloc_ap(), ast_ari_channels_dial(), ast_cel_fabricate_channel_from_event(), ast_channel_destructor(), ast_dummy_channel_destructor(), ast_iax2_new(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), ast_unreal_call_setup(), ast_var_channels_table(), begin_dial_prerun(), callerid_read(), callerid_write(), chan_pjsip_new(), channel_do_masquerade(), channel_snapshot_caller_create(), dahdi_new(), dial_exec_full(), do_forward(), generate_status(), handle_showchan(), iax2_call(), ring_entry(), serialize_showchan(), setup_env(), and wait_for_answer().
int ast_channel_dialed_causes_add | ( | const struct ast_channel * | chan, |
const struct ast_control_pvt_cause_code * | cause_code, | ||
int | datalen | ||
) |
Add cause code information to the channel.
This function makes use of datastore operations on the channel, so it is important to lock the channel before calling this function. The passed in data is copied and so is still owned by the caller.
chan | The channel on which to add information |
cause_code | The cause information to be added to the channel |
datalen | The total length of the structure since its length is variable |
0 | on success |
-1 | on error |
Definition at line 1294 of file channel_internal_api.c.
References ao2_alloc, ao2_find, ao2_link, ao2_ref, ast_control_pvt_cause_code::chan_name, ast_channel::dialed_causes, NULL, OBJ_KEY, OBJ_NODATA, and OBJ_UNLINK.
Referenced by ast_channel_hangupcause_hash_set().
struct ast_str * ast_channel_dialed_causes_channels | ( | const struct ast_channel * | chan | ) |
Retrieve a comma-separated list of channels for which dialed cause information is available.
This function makes use of datastore operations on the channel, so it is important to lock the channel before calling this function.
chan | The channel from which to retrieve information |
NULL | on allocation failure |
Pointer | to an ast_str object containing the desired information which must be freed |
Definition at line 1276 of file channel_internal_api.c.
References ao2_callback, ast_str_create, collect_names_cb(), ast_channel::dialed_causes, and NULL.
Referenced by hangupcause_keys_read().
void ast_channel_dialed_causes_clear | ( | const struct ast_channel * | chan | ) |
Clear all cause information from the channel.
This function makes use of datastore operations on the channel, so it is important to lock the channel before calling this function.
chan | The channel from which to clear information |
Definition at line 1310 of file channel_internal_api.c.
References ao2_callback, ast_channel::dialed_causes, NULL, OBJ_MULTIPLE, OBJ_NODATA, and OBJ_UNLINK.
Referenced by hangupcause_clear_exec().
struct ast_control_pvt_cause_code * ast_channel_dialed_causes_find | ( | const struct ast_channel * | chan, |
const char * | chan_name | ||
) |
Retrieve a ref-counted cause code information structure.
This function makes use of datastore operations on the channel, so it is important to lock the channel before calling this function. This function increases the ref count of the returned object, so the calling function must decrease the reference count when it is finished with the object.
chan | The channel from which to retrieve information |
chan_name | The name of the channel about which to retrieve information |
NULL | on search failure |
Pointer | to a ref-counted ast_control_pvt_cause_code object containing the desired information |
Definition at line 1289 of file channel_internal_api.c.
References ao2_find, ast_control_pvt_cause_code::chan_name, ast_channel::dialed_causes, and OBJ_KEY.
Referenced by hangupcause_read().
void ast_channel_dialed_set | ( | struct ast_channel * | chan, |
struct ast_party_dialed * | value | ||
) |
Definition at line 955 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_CALLER, ast_channel_snapshot_invalidate_segment(), ast_channel::dialed, and value.
Referenced by channel_do_masquerade().
char ast_channel_dtmf_digit_to_emulate | ( | const struct ast_channel * | chan | ) |
Definition at line 393 of file channel_internal_api.c.
References ast_channel::dtmf_digit_to_emulate.
Referenced by __ast_read().
void ast_channel_dtmf_digit_to_emulate_set | ( | struct ast_channel * | chan, |
char | value | ||
) |
Definition at line 397 of file channel_internal_api.c.
References ast_channel::dtmf_digit_to_emulate, and value.
Referenced by __ast_read().
struct timeval * ast_channel_dtmf_tv | ( | struct ast_channel * | chan | ) |
Definition at line 925 of file channel_internal_api.c.
References ast_channel::dtmf_tv.
Referenced by __ast_read(), should_skip_dtmf(), and should_trigger_dtmf_emulating().
void ast_channel_dtmf_tv_set | ( | struct ast_channel * | chan, |
struct timeval * | value | ||
) |
Definition at line 965 of file channel_internal_api.c.
References ast_channel::dtmf_tv, and value.
Referenced by __ast_read().
struct ast_frame * ast_channel_dtmff | ( | struct ast_channel * | chan | ) |
Definition at line 881 of file channel_internal_api.c.
References ast_channel::dtmff.
Referenced by __ast_read(), and queue_dtmf_readq().
void ast_channel_dtmff_set | ( | struct ast_channel * | chan, |
struct ast_frame * | value | ||
) |
Definition at line 937 of file channel_internal_api.c.
References ast_channel::dtmff, and value.
unsigned int ast_channel_emulate_dtmf_duration | ( | const struct ast_channel * | chan | ) |
Definition at line 515 of file channel_internal_api.c.
References ast_channel::emulate_dtmf_duration.
Referenced by __ast_read().
void ast_channel_emulate_dtmf_duration_set | ( | struct ast_channel * | chan, |
unsigned int | value | ||
) |
Definition at line 519 of file channel_internal_api.c.
References ast_channel::emulate_dtmf_duration, and value.
Referenced by __ast_read().
const char * ast_channel_exten | ( | const struct ast_channel * | chan | ) |
Definition at line 375 of file channel_internal_api.c.
References ast_channel::exten.
Referenced by __ast_goto_if_exists(), __ast_pbx_run(), _while_exec(), action_bridge(), action_dialplan_exec(), ast_bridge_setup_after_goto(), ast_cc_call_init(), ast_channel_by_exten_cb(), ast_channel_log(), ast_channel_yank(), ast_pbx_h_exten_run(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), ast_var_channels_table(), bridge_exec(), cc_generic_agent_init(), cc_interfaces_datastore_init(), chan_pjsip_cng_tone_detected(), channel_snapshot_dialplan_create(), dahdi_handle_dtmf(), dial_exec_full(), do_forward(), eval_exten_read(), expand_gosub_args(), fax_detect_framehook(), feature_blind_transfer(), find_matching_endif(), find_matching_endwhile(), forward_message(), func_channel_read(), func_channel_write_real(), get_cid_name(), gosub_exec(), gosub_run(), goto_parser(), handle_frame(), handle_gosub(), handle_setpriority(), handle_showchan(), if_helper(), launch_monitor_thread(), leave_voicemail(), log_exec(), lua_pbx_exec(), my_handle_dtmf(), onModeChanged(), ooh323_rtp_read(), pbx_builtin_goto(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_extension_helper(), pbx_parse_location(), raise_exception(), realtime_exec(), ring_entry(), serialize_showchan(), setup_env(), setup_peer_after_bridge_goto(), setup_privacy_args(), try_calling(), and wait_for_answer().
void ast_channel_exten_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 383 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN, ast_channel_snapshot_invalidate_segment(), ast_copy_string(), ast_channel::exten, ast_channel::lastexten, and value.
Referenced by __analog_ss_thread(), __ast_channel_alloc_ap(), __ast_request_and_dial(), action_dialplan_exec(), analog_ss_thread(), ari_originate_dial(), ast_add_extension2_lockopt(), ast_bridge_setup_after_goto(), ast_cel_fabricate_channel_from_event(), ast_explicit_goto(), ast_iax2_new(), ast_pbx_h_exten_run(), AST_TEST_DEFINE(), dahdi_new(), dial_exec_full(), dialout(), do_monitor_headset(), do_notify(), forward_message(), generic_recall(), gosub_exec(), gosub_run(), handle_gosub(), handle_response_cmgr(), handle_setextension(), jingle_new(), leave_voicemail(), minivm_greet_exec(), ooh323_new(), pbx_builtin_background(), pbx_extension_helper(), pbx_outgoing_exec(), return_exec(), ring_entry(), select_entry(), set_ext_pri(), unistim_ss(), and wait_for_answer().
int ast_channel_fd | ( | const struct ast_channel * | chan, |
int | which | ||
) |
Definition at line 1187 of file channel_internal_api.c.
References AST_VECTOR_GET, AST_VECTOR_SIZE, and ast_channel::fds.
Referenced by __dahdi_exception(), analog_exception(), ast_channel_fd_isset(), AST_TEST_DEFINE(), ast_waitfor_nandfds(), build_conf(), channel_do_masquerade(), conf_run(), flash_exec(), fxo_pvt(), meetme_menu_admin_extended(), native_chan_changed(), native_start(), serialize_showchan(), and swap_subs().
int ast_channel_fd_add | ( | struct ast_channel * | chan, |
int | value | ||
) |
Add a file descriptor to the channel without a fixed position.
chan | The channel to add the file descriptor to |
value | The file descriptor |
Definition at line 1201 of file channel_internal_api.c.
References ast_channel_fd_isset(), AST_EXTENDED_FDS, AST_VECTOR_REPLACE, ast_channel::fds, and value.
Referenced by AST_TEST_DEFINE().
int ast_channel_fd_count | ( | const struct ast_channel * | chan | ) |
Retrieve the number of file decriptor positions present on the channel.
chan | The channel to get the count of |
Definition at line 1196 of file channel_internal_api.c.
References AST_VECTOR_SIZE, and ast_channel::fds.
Referenced by AST_TEST_DEFINE(), ast_waitfor_nandfds(), and channel_do_masquerade().
int ast_channel_fd_isset | ( | const struct ast_channel * | chan, |
int | which | ||
) |
Definition at line 1191 of file channel_internal_api.c.
References ast_channel_fd().
Referenced by __ast_read(), and ast_channel_fd_add().
int ast_channel_fdno | ( | const struct ast_channel * | chan | ) |
Definition at line 433 of file channel_internal_api.c.
References ast_channel::fdno.
Referenced by __ast_read(), ast_settimeout_full(), chan_pjsip_read_stream(), channel_do_masquerade(), hook_event_cb(), jingle_read(), ooh323_rtp_read(), rtp_read(), stasis_app_control_execute_until_exhausted(), stasis_app_exec(), and unistim_rtp_read().
void ast_channel_fdno_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 437 of file channel_internal_api.c.
References ast_channel::fdno, and value.
Referenced by __ast_read(), ast_settimeout_full(), ast_waitfor_nandfds(), channel_do_masquerade(), and read_test().
unsigned int ast_channel_fin | ( | const struct ast_channel * | chan | ) |
Definition at line 523 of file channel_internal_api.c.
References ast_channel::fin.
Referenced by __ast_read(), channel_set_debug(), and serialize_showchan().
void ast_channel_fin_set | ( | struct ast_channel * | chan, |
unsigned int | value | ||
) |
Definition at line 527 of file channel_internal_api.c.
References ast_channel::fin, and value.
Referenced by __ast_channel_alloc_ap(), __ast_read(), and channel_set_debug().
struct ast_flags * ast_channel_flags | ( | struct ast_channel * | chan | ) |
Definition at line 1261 of file channel_internal_api.c.
References ast_channel::flags.
Referenced by __analog_ss_thread(), __ast_pbx_run(), __ast_queue_frame(), __ast_read(), __ast_request_and_dial(), action_bridge(), action_redirect(), agent_request_exec(), analog_ss_thread(), ari_channels_handle_originate_with_id(), ast_async_goto(), ast_audiohook_attach(), ast_autoservice_start(), ast_autoservice_stop(), ast_bridge_channel_playfile(), ast_bridge_join(), ast_bridge_setup_after_goto(), ast_call(), ast_can_pickup(), ast_channel_clear_flag(), ast_channel_defer_dtmf(), ast_channel_destructor(), ast_channel_end_dtmf(), ast_channel_move(), ast_channel_publish_snapshot(), ast_channel_set_flag(), ast_channel_snapshot_create(), ast_channel_stage_snapshot(), ast_channel_stage_snapshot_done(), ast_channel_yank(), ast_explicit_goto(), ast_hangup(), ast_iax2_new(), ast_indicate_data(), ast_pbx_h_exten_run(), ast_raw_answer_with_stream_topology(), ast_readstring_full(), ast_sendtext_data(), ast_setstate(), ast_settimeout_full(), ast_softhangup_nolock(), ast_streamfile(), AST_TEST_DEFINE(), ast_transfer_protocol(), ast_unreal_new_channels(), ast_var_channels_table(), ast_waitfor_nandfds(), ast_waitfordigit_full(), ast_write_stream(), bridge_channel_internal_join(), bridge_channel_internal_pull(), bridge_impart_internal(), bridge_reconfigured_connected_line_update(), call_forward_inherit(), channel_do_masquerade(), channel_spy(), common_exec(), dahdi_new(), dahdi_read(), deactivate_generator_nolock(), dial_exec_full(), eivr_comm(), gosub_exec(), gosub_run(), handle_exec(), handle_gosub(), limits_interval_playback(), linear_alloc(), local_ast_moh_start(), local_ast_moh_stop(), optimize_lock_chan_stack(), optimize_lock_peer_stack(), pbx_builtin_background(), pbx_outgoing_attempt(), playtones_alloc(), retrydial_exec(), return_exec(), serialize_showchan(), should_skip_dtmf(), should_trigger_dtmf_emulating(), tonepair_alloc(), and waitstream_core().
int ast_channel_forward_endpoint | ( | struct ast_channel * | chan, |
struct ast_endpoint * | endpoint | ||
) |
Forward channel stasis messages to the given endpoint.
chan | The channel to forward from |
endpoint | The endpoint to forward to |
0 | Success |
non-zero | Failure |
Definition at line 1540 of file channel_internal_api.c.
References ast_assert, ast_channel_topic(), ast_endpoint_topic(), ast_channel::endpoint_forward, NULL, and stasis_forward_all().
Referenced by ast_endpoint_add_channel().
unsigned int ast_channel_fout | ( | const struct ast_channel * | chan | ) |
Definition at line 531 of file channel_internal_api.c.
References ast_channel::fout.
Referenced by ast_write_stream(), channel_set_debug(), and serialize_showchan().
void ast_channel_fout_set | ( | struct ast_channel * | chan, |
unsigned int | value | ||
) |
Definition at line 535 of file channel_internal_api.c.
References ast_channel::fout, and value.
Referenced by __ast_channel_alloc_ap(), ast_write_stream(), and channel_set_debug().
struct ast_framehook_list * ast_channel_framehooks | ( | const struct ast_channel * | chan | ) |
Definition at line 706 of file channel_internal_api.c.
References ast_channel::framehooks.
Referenced by __ast_read(), ast_channel_has_audio_frame_or_monitor(), ast_channel_has_hook_requiring_audio(), ast_framehook_attach(), ast_framehook_detach(), ast_framehook_list_destroy(), ast_framehook_list_fixup(), ast_indicate_data(), and ast_write_stream().
void ast_channel_framehooks_set | ( | struct ast_channel * | chan, |
struct ast_framehook_list * | value | ||
) |
Definition at line 710 of file channel_internal_api.c.
References ast_channel::framehooks, and value.
Referenced by ast_framehook_attach(), and ast_framehook_list_destroy().
struct ast_generator * ast_channel_generator | ( | const struct ast_channel * | chan | ) |
Definition at line 714 of file channel_internal_api.c.
References ast_channel::generator.
Referenced by __ast_read(), ast_activate_generator(), ast_hangup(), ast_openstream_full(), ast_read_generator_actions(), ast_senddigit_end(), ast_senddigit_mf_end(), deactivate_generator_nolock(), deactivate_silence_generator(), generator_force(), generator_write_format_change(), and unreal_queue_frame().
void ast_channel_generator_set | ( | struct ast_channel * | chan, |
struct ast_generator * | value | ||
) |
Definition at line 718 of file channel_internal_api.c.
References ast_channel::generator, and value.
Referenced by ast_activate_generator(), ast_hangup(), and deactivate_generator_nolock().
void * ast_channel_generatordata | ( | const struct ast_channel * | chan | ) |
Definition at line 555 of file channel_internal_api.c.
References ast_channel::generatordata.
Referenced by __ast_read(), ast_activate_generator(), ast_hangup(), ast_read_generator_actions(), ast_tonepair(), ast_write_stream(), deactivate_generator_nolock(), deactivate_silence_generator(), generator_force(), generator_write_format_change(), safe_sleep_conditional(), and set_format().
void ast_channel_generatordata_set | ( | struct ast_channel * | chan, |
void * | value | ||
) |
Definition at line 559 of file channel_internal_api.c.
References ast_channel::generatordata, and value.
Referenced by __ast_read(), ast_activate_generator(), ast_hangup(), ast_read_generator_actions(), deactivate_generator_nolock(), and generator_force().
struct ast_stream * ast_channel_get_default_stream | ( | struct ast_channel * | chan, |
enum ast_media_type | type | ||
) |
Retrieve the default stream of a specific media type on a channel.
chan | The channel to get the stream from |
type | The media type of the default stream |
non-NULL | success |
NULL | failure |
Definition at line 1648 of file channel_internal_api.c.
References ast_assert, AST_MEDIA_TYPE_END, ast_channel::default_streams, NULL, and type.
Referenced by __ast_read(), ast_unreal_write_stream(), ast_write_stream(), and stream_echo_write_error().
struct ast_stream_topology * ast_channel_get_stream_topology | ( | const struct ast_channel * | chan | ) |
Retrieve the topology of streams on a channel.
chan | The channel to get the stream topology of |
non-NULL | success |
NULL | failure |
Definition at line 1612 of file channel_internal_api.c.
References ast_assert, NULL, and ast_channel::stream_topology.
Referenced by __ast_read(), ast_bridge_channel_stream_map(), ast_channel_request_stream_topology_change(), AST_TEST_DEFINE(), ast_unreal_indicate(), ast_write_stream(), dial_exec_full(), do_forward(), handle_showchan(), map_source_to_destinations(), native_rtp_bridge_join(), native_rtp_stream_topology_changed(), sfu_topologies_on_join(), sfu_topologies_on_source_change(), simple_bridge_join(), simple_bridge_stream_topology_changed(), softmix_bridge_stream_sources_update(), softmix_bridge_stream_topology_changed(), stream_echo_exec(), stream_echo_write(), and stream_echo_write_error().
void * ast_channel_get_stream_topology_change_source | ( | struct ast_channel * | chan | ) |
Retrieve the source that initiated the last stream topology change.
chan | The channel |
The | channel's stream topology change source |
Definition at line 673 of file channel_internal_api.c.
References ast_channel::stream_topology_change_source.
Referenced by native_rtp_stream_topology_changed(), and simple_bridge_stream_topology_changed().
struct ast_hangup_handler_list * ast_channel_hangup_handlers | ( | struct ast_channel * | chan | ) |
Definition at line 865 of file channel_internal_api.c.
References ast_channel::hangup_handlers.
Referenced by ast_pbx_hangup_handler_destroy(), ast_pbx_hangup_handler_init(), ast_pbx_hangup_handler_pop(), ast_pbx_hangup_handler_push(), ast_pbx_hangup_handler_run(), ast_pbx_hangup_handler_show(), and channel_do_masquerade().
int ast_channel_hangupcause | ( | const struct ast_channel * | chan | ) |
Definition at line 441 of file channel_internal_api.c.
References ast_channel::hangupcause.
Referenced by ast_cc_call_failed(), ast_channel_softhangup_withcause_locked(), ast_queue_hangup_with_cause(), ast_str_retrieve_variable(), ast_unreal_call_setup(), ast_unreal_hangup(), ast_var_channels_table(), bridge_channel_dissolve_check(), chan_pjsip_hangup(), chan_pjsip_session_end(), channel_set_cause(), channel_snapshot_hangup_create(), dahdi_hangup(), dahdi_indicate(), dial_bridge_after_cb(), dial_exec_full(), iax2_hangup(), jingle_hangup(), monitor_dial(), ooh323_hangup(), pbx_builtin_hangup(), rfc3326_add_reason_header(), session_inv_on_tsx_state_changed(), try_calling(), unistim_hangup(), and wait_for_answer().
void ast_channel_hangupcause_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 445 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_HANGUP, ast_channel_snapshot_invalidate_segment(), ast_channel::hangupcause, and value.
Referenced by __ast_read(), __ast_request_and_dial(), __attempt_transmit(), agent_run(), ast_ari_channels_hangup(), ast_channel_softhangup_withcause_locked(), ast_do_pickup(), AST_TEST_DEFINE(), ast_unreal_call_setup(), ast_unreal_hangup(), call_pickup_incoming_request(), channel_set_cause(), console_new(), dahdi_indicate(), dial_exec_full(), disa_exec(), eivr_comm(), handle_call_outgoing(), hangupcalls(), hanguptree(), iax2_call(), indicate_busy(), indicate_congestion(), jingle_indicate(), mbl_queue_hangup(), onCallCleared(), pbx_builtin_hangup(), pbx_start_incoming_request(), receive_dtmf_digits(), refer_incoming_invite_request(), rfc3326_use_reason_header(), ring_entry(), rtp_check_timeout(), session_inv_on_media_update(), set_hangup_source_and_cause(), socket_process_helper(), wait_for_answer(), and wait_for_winner().
int ast_channel_hold_state | ( | const struct ast_channel * | chan | ) |
Definition at line 491 of file channel_internal_api.c.
References ast_channel::hold_state.
Referenced by ast_parse_device_state(), bridge_channel_internal_join(), channel_do_masquerade(), func_channel_read(), simple_bridge_join(), and softmix_bridge_join().
void ast_channel_hold_state_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 495 of file channel_internal_api.c.
References ast_channel::hold_state, and value.
Referenced by __ast_channel_alloc_ap(), __ast_dummy_channel_alloc(), and indicate_data_internal().
unsigned long ast_channel_insmpl | ( | const struct ast_channel * | chan | ) |
void ast_channel_insmpl_set | ( | struct ast_channel * | chan, |
unsigned long | value | ||
) |
Definition at line 543 of file channel_internal_api.c.
References ast_channel::insmpl, and value.
ast_alert_status_t ast_channel_internal_alert_flush | ( | struct ast_channel * | chan | ) |
Definition at line 1116 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_flush().
Referenced by chan_cleanup().
ast_alert_status_t ast_channel_internal_alert_read | ( | struct ast_channel * | chan | ) |
Definition at line 1121 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_read().
Referenced by __ast_queue_frame(), and __ast_read().
int ast_channel_internal_alert_readable | ( | struct ast_channel * | chan | ) |
Definition at line 1131 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_readable().
int ast_channel_internal_alert_readfd | ( | struct ast_channel * | chan | ) |
Definition at line 1151 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_readfd().
Referenced by __ast_channel_alloc_ap().
void ast_channel_internal_alertpipe_clear | ( | struct ast_channel * | chan | ) |
Definition at line 1136 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_clear().
Referenced by __ast_channel_alloc_ap(), and __ast_dummy_channel_alloc().
void ast_channel_internal_alertpipe_close | ( | struct ast_channel * | chan | ) |
Definition at line 1141 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_close().
Referenced by ast_channel_destructor().
int ast_channel_internal_alertpipe_init | ( | struct ast_channel * | chan | ) |
Definition at line 1146 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_init().
Referenced by __ast_channel_alloc_ap().
void ast_channel_internal_alertpipe_swap | ( | struct ast_channel * | chan1, |
struct ast_channel * | chan2 | ||
) |
Swap the interal alertpipe between two channels.
Definition at line 1156 of file channel_internal_api.c.
References ast_channel::alertpipe, and ast_alertpipe_swap().
Referenced by channel_do_masquerade().
struct ast_bridge * ast_channel_internal_bridge | ( | const struct ast_channel * | chan | ) |
Definition at line 1241 of file channel_internal_api.c.
References ast_channel::bridge.
Referenced by ast_channel_get_bridge(), ast_channel_is_bridged(), ast_unreal_fixup(), bridge_channel_internal_join(), and try_merge_optimize_out().
struct ast_bridge_channel * ast_channel_internal_bridge_channel | ( | const struct ast_channel * | chan | ) |
Definition at line 1252 of file channel_internal_api.c.
References ast_channel::bridge_channel, and ast_bridge_channel::chan.
Referenced by ast_bridge_depart(), ast_bridge_unreal_optimize_out(), ast_channel_get_bridge_channel(), bridge_channel_depart(), optimize_lock_chan_stack(), optimize_lock_peer_stack(), and stasis_app_exec().
void ast_channel_internal_bridge_channel_set | ( | struct ast_channel * | chan, |
struct ast_bridge_channel * | value | ||
) |
Definition at line 1256 of file channel_internal_api.c.
References ast_channel::bridge_channel, ast_bridge_channel::chan, and value.
Referenced by ast_bridge_depart(), ast_bridge_join(), bridge_channel_ind_thread(), and bridge_impart_internal().
void ast_channel_internal_bridge_set | ( | struct ast_channel * | chan, |
struct ast_bridge * | value | ||
) |
Definition at line 1245 of file channel_internal_api.c.
References ast_channel_publish_snapshot(), AST_CHANNEL_SNAPSHOT_INVALIDATE_BRIDGE, ast_channel_snapshot_invalidate_segment(), ast_channel::bridge, and value.
Referenced by bridge_channel_change_bridge(), and bridge_channel_internal_join().
void ast_channel_internal_cleanup | ( | struct ast_channel * | chan | ) |
Definition at line 1500 of file channel_internal_api.c.
References ao2_cleanup, ao2_t_ref, ast_channel_internal_set_stream_topology(), ast_string_field_free_memory, AST_VECTOR_FREE, ast_channel::channel_forward, ast_channel::dialed_causes, ast_channel::endpoint_forward, ast_channel::fds, NULL, stasis_forward_cancel(), and ast_channel::topic.
Referenced by ast_channel_destructor(), and ast_dummy_channel_destructor().
void ast_channel_internal_copy_linkedid | ( | struct ast_channel * | dest, |
struct ast_channel * | source | ||
) |
Copy the full linkedid channel id structure from one channel to another.
dest | Destination to copy linkedid to |
source | Source channel to copy linkedid from |
Definition at line 1433 of file channel_internal_api.c.
References ast_channel_publish_snapshot(), AST_CHANNEL_SNAPSHOT_INVALIDATE_PEER, ast_channel_snapshot_invalidate_segment(), ast_channel_id::creation_time, ast_channel_id::creation_unique, ast_channel::linkedid, and ast_channel_id::unique_id.
Referenced by ast_bridge_channel_update_linkedids().
enum ast_channel_error ast_channel_internal_errno | ( | void | ) |
Definition at line 1602 of file channel_internal_api.c.
References AST_CHANNEL_ERROR_UNKNOWN, ast_threadstorage_get(), and channel_errno.
Referenced by ast_channel_errno().
void ast_channel_internal_errno_set | ( | enum ast_channel_error | error | ) |
Definition at line 1592 of file channel_internal_api.c.
References ast_threadstorage_get(), channel_errno, and error().
Referenced by __ast_channel_alloc_ap().
void ast_channel_internal_fd_clear | ( | struct ast_channel * | chan, |
int | which | ||
) |
Definition at line 1175 of file channel_internal_api.c.
References AST_VECTOR_REPLACE, AST_VECTOR_SIZE, and ast_channel::fds.
Referenced by handle_negotiated_sdp().
void ast_channel_internal_fd_clear_all | ( | struct ast_channel * | chan | ) |
Definition at line 1183 of file channel_internal_api.c.
References AST_VECTOR_ELEM_CLEANUP_NOOP, AST_VECTOR_RESET, and ast_channel::fds.
Referenced by __ast_channel_alloc_ap(), __ast_dummy_channel_alloc(), and channel_do_masquerade().
void ast_channel_internal_fd_set | ( | struct ast_channel * | chan, |
int | which, | ||
int | value | ||
) |
Definition at line 1162 of file channel_internal_api.c.
References AST_VECTOR_REPLACE, AST_VECTOR_SIZE, ast_channel::fds, and value.
Referenced by ast_channel_set_fd(), handle_negotiated_sdp(), start_rtp(), swap_subs(), and unistim_new().
void ast_channel_internal_finalize | ( | struct ast_channel * | chan | ) |
Definition at line 1521 of file channel_internal_api.c.
References ast_channel::finalized.
Referenced by __ast_channel_alloc_ap().
int ast_channel_internal_is_finalized | ( | struct ast_channel * | chan | ) |
Definition at line 1526 of file channel_internal_api.c.
References ast_channel::finalized.
Referenced by ast_channel_destructor().
struct ast_channel * ast_channel_internal_oldest_linkedid | ( | struct ast_channel * | a, |
struct ast_channel * | b | ||
) |
Determine which channel has an older linkedid.
a | First channel |
b | Second channel |
Definition at line 1416 of file channel_internal_api.c.
References a, ast_assert, and b.
Referenced by ast_bridge_channel_update_linkedids().
void ast_channel_internal_set_fake_ids | ( | struct ast_channel * | chan, |
const char * | uniqueid, | ||
const char * | linkedid | ||
) |
Set uniqueid and linkedid string value only (not time)
chan | The channel to set the uniqueid to |
uniqueid | The uniqueid to set |
linkedid | The linkedid to set |
Definition at line 1494 of file channel_internal_api.c.
References ast_copy_string(), ast_channel::linkedid, ast_channel_id::unique_id, and ast_channel::uniqueid.
Referenced by ast_cel_fabricate_channel_from_event().
void ast_channel_internal_set_stream_topology | ( | struct ast_channel * | chan, |
struct ast_stream_topology * | topology | ||
) |
Definition at line 659 of file channel_internal_api.c.
References ast_stream_topology_free(), channel_set_default_streams(), and ast_channel::stream_topology.
Referenced by __ast_channel_alloc_ap(), ast_channel_internal_cleanup(), ast_channel_nativeformats_set(), and ast_channel_set_stream_topology().
void ast_channel_internal_set_stream_topology_change_source | ( | struct ast_channel * | chan, |
void * | change_source | ||
) |
Definition at line 667 of file channel_internal_api.c.
References ast_channel::stream_topology_change_source.
Referenced by ast_channel_request_stream_topology_change(), and ast_channel_stream_topology_changed_externally().
int ast_channel_internal_setup_topics | ( | struct ast_channel * | chan | ) |
Definition at line 1556 of file channel_internal_api.c.
References ao2_ref, ast_asprintf, ast_assert, ast_atomic_fetchadd_int(), ast_channel_topic(), ast_channel_topic_all(), ast_free, ast_strlen_zero(), ast_channel::channel_forward, NULL, stasis_forward_all(), stasis_topic_create(), ast_channel::topic, ast_channel_id::unique_id, and ast_channel::uniqueid.
Referenced by __ast_channel_alloc_ap(), and __ast_dummy_channel_alloc().
void ast_channel_internal_swap_endpoint_forward | ( | struct ast_channel * | a, |
struct ast_channel * | b | ||
) |
Swap endpoint_forward between two channels.
a | First channel |
b | Second channel |
Definition at line 1476 of file channel_internal_api.c.
Referenced by channel_do_masquerade().
void ast_channel_internal_swap_snapshots | ( | struct ast_channel * | a, |
struct ast_channel * | b | ||
) |
Swap snapshots beteween two channels.
a | First channel |
b | Second channel |
Definition at line 1485 of file channel_internal_api.c.
Referenced by channel_do_masquerade().
void ast_channel_internal_swap_stream_topology | ( | struct ast_channel * | chan1, |
struct ast_channel * | chan2 | ||
) |
Definition at line 1657 of file channel_internal_api.c.
References ast_assert, channel_set_default_streams(), NULL, and ast_channel::stream_topology.
Referenced by channel_do_masquerade().
void ast_channel_internal_swap_topics | ( | struct ast_channel * | a, |
struct ast_channel * | b | ||
) |
Swap topics beteween two channels.
a | First channel |
b | Second channel |
Definition at line 1462 of file channel_internal_api.c.
Referenced by channel_do_masquerade().
void ast_channel_internal_swap_uniqueid_and_linkedid | ( | struct ast_channel * | a, |
struct ast_channel * | b | ||
) |
Swap uniqueid and linkedid beteween two channels.
a | First channel |
b | Second channel |
Definition at line 1445 of file channel_internal_api.c.
Referenced by channel_do_masquerade().
int ast_channel_is_multistream | ( | struct ast_channel * | chan | ) |
Determine if a channel is multi-stream capable.
chan | The channel to test |
true | if the channel is multi-stream capable. |
Definition at line 1672 of file channel_internal_api.c.
References ast_channel_tech::read_stream, ast_channel::tech, and ast_channel_tech::write_stream.
Referenced by ast_channel_nativeformats_set(), ast_channel_request_stream_topology_change(), ast_channel_set_stream_topology(), ast_channel_stream_topology_changed(), ast_channel_stream_topology_changed_externally(), ast_unreal_indicate(), ast_unreal_new_channels(), bridge_channel_write_frame(), bridge_handle_trip(), and stream_echo_write().
int ast_channel_is_t38_active | ( | struct ast_channel * | chan | ) |
This function will check if T.38 is active on the channel.
chan | Channel on which to check the unbridge_eval flag |
Definition at line 1047 of file channel_internal_api.c.
References ast_channel_is_t38_active_nolock(), ast_channel_lock, and ast_channel_unlock.
Referenced by bridge_channel_internal_join().
int ast_channel_is_t38_active_nolock | ( | struct ast_channel * | chan | ) |
ast_channel_is_t38_active variant. Use this if the channel is already locked prior to calling.
chan | Channel on which to check the is_t38_active flag |
Definition at line 1042 of file channel_internal_api.c.
References ast_channel::is_t38_active.
Referenced by ast_channel_is_t38_active().
struct ast_jb * ast_channel_jb | ( | struct ast_channel * | chan | ) |
Definition at line 885 of file channel_internal_api.c.
References ast_channel::jb.
Referenced by ast_jb_configure(), ast_jb_destroy(), ast_jb_do_usecheck(), ast_jb_empty_and_reset(), ast_jb_enable_for_channel(), ast_jb_get_and_deliver(), ast_jb_get_config(), ast_jb_get_when_to_wakeup(), ast_jb_put(), create_jb(), jb_choose_impl(), and jb_get_and_deliver().
void ast_channel_jb_set | ( | struct ast_channel * | chan, |
struct ast_jb * | value | ||
) |
Definition at line 941 of file channel_internal_api.c.
References ast_channel::jb, and value.
const char * ast_channel_lastcontext | ( | const struct ast_channel * | chan | ) |
Definition at line 362 of file channel_internal_api.c.
References ast_channel::lastcontext.
Referenced by func_channel_read().
const char * ast_channel_lastexten | ( | const struct ast_channel * | chan | ) |
Definition at line 379 of file channel_internal_api.c.
References ast_channel::lastexten.
Referenced by func_channel_read().
const char * ast_channel_linkedid | ( | const struct ast_channel * | chan | ) |
Definition at line 310 of file channel_internal_api.c.
References ast_assert, ast_channel::linkedid, and ast_channel_id::unique_id.
Referenced by ast_channel_log(), AST_TEST_DEFINE(), channel_snapshot_peer_create(), func_channel_read(), func_mchan_read(), func_mchan_write(), handle_showchan(), and serialize_showchan().
struct ast_channel * ast_channel_masq | ( | const struct ast_channel * | chan | ) |
Definition at line 606 of file channel_internal_api.c.
References ast_channel::masq.
Referenced by ast_can_pickup(), ast_channel_log(), ast_hangup(), and ast_var_channels_table().
void ast_channel_masq_set | ( | struct ast_channel * | chan, |
struct ast_channel * | value | ||
) |
Definition at line 610 of file channel_internal_api.c.
References ast_channel::masq, and value.
Referenced by ast_channel_move(), and channel_do_masquerade().
struct ast_channel * ast_channel_masqr | ( | const struct ast_channel * | chan | ) |
Definition at line 614 of file channel_internal_api.c.
References ast_channel::masqr.
Referenced by ast_channel_log(), ast_hangup(), and ast_var_channels_table().
void ast_channel_masqr_set | ( | struct ast_channel * | chan, |
struct ast_channel * | value | ||
) |
Definition at line 618 of file channel_internal_api.c.
References ast_channel::masqr, and value.
Referenced by ast_channel_move(), and channel_do_masquerade().
void * ast_channel_music_state | ( | const struct ast_channel * | chan | ) |
Definition at line 563 of file channel_internal_api.c.
References ast_channel::music_state.
Referenced by __ast_read(), ast_channel_destructor(), ast_moh_files_next(), local_ast_moh_cleanup(), local_ast_moh_start(), local_ast_moh_stop(), moh_alloc(), moh_files_alloc(), moh_files_generator(), moh_files_release(), moh_files_write_format_change(), and moh_release().
void ast_channel_music_state_set | ( | struct ast_channel * | chan, |
void * | value | ||
) |
Definition at line 567 of file channel_internal_api.c.
References ast_channel::music_state, and value.
Referenced by local_ast_moh_cleanup(), moh_alloc(), and moh_files_alloc().
struct ast_namedgroups * ast_channel_named_callgroups | ( | const struct ast_channel * | chan | ) |
Definition at line 1091 of file channel_internal_api.c.
References ast_channel::named_callgroups.
Referenced by find_channel_by_group(), and func_channel_read().
void ast_channel_named_callgroups_set | ( | struct ast_channel * | chan, |
struct ast_namedgroups * | value | ||
) |
Definition at line 1095 of file channel_internal_api.c.
References ast_ref_namedgroups(), ast_unref_namedgroups(), ast_channel::named_callgroups, and value.
Referenced by ast_channel_destructor(), chan_pjsip_new(), dahdi_new(), and func_channel_write_real().
struct ast_namedgroups * ast_channel_named_pickupgroups | ( | const struct ast_channel * | chan | ) |
Definition at line 1100 of file channel_internal_api.c.
References ast_channel::named_pickupgroups.
Referenced by find_channel_by_group(), and func_channel_read().
void ast_channel_named_pickupgroups_set | ( | struct ast_channel * | chan, |
struct ast_namedgroups * | value | ||
) |
Definition at line 1104 of file channel_internal_api.c.
References ast_ref_namedgroups(), ast_unref_namedgroups(), ast_channel::named_pickupgroups, and value.
Referenced by ast_channel_destructor(), chan_pjsip_new(), dahdi_new(), and func_channel_write_real().
struct ast_format_cap * ast_channel_nativeformats | ( | const struct ast_channel * | chan | ) |
Definition at line 638 of file channel_internal_api.c.
References ast_channel::nativeformats.
Referenced by ast_ari_channels_create(), ast_bridge_update_talker_src_video_mode(), ast_channel_make_compatible_helper(), ast_openvstream(), ast_sendtext_data(), ast_streamfile(), ast_write_stream(), attended_transfer_bridge(), begin_dial_prerun(), blind_transfer_bridge(), chan_pjsip_get_codec(), chan_pjsip_indicate(), chan_pjsip_read_stream(), chan_pjsip_write_stream(), chan_rtp_get_codec(), chanavail_exec(), channel_do_masquerade(), create_addr(), dial_transfer(), findmeexec(), func_channel_read(), generate_status(), handle_showchan(), iax2_call(), iax2_request(), jingle_read(), jingle_write(), mp3_exec(), ooh323_get_codec(), ooh323_rtp_read(), ooh323_set_write_format(), ooh323_write(), park_local_transfer(), ring_entry(), serialize_showchan(), set_caps(), set_format(), sip_session_response_cb(), socket_process_helper(), speech_create(), start_rtp(), test_vm_api_create_mock_channel(), unistim_new(), unistim_rtp_read(), unistim_write(), and wait_for_answer().
void ast_channel_nativeformats_set | ( | struct ast_channel * | chan, |
struct ast_format_cap * | value | ||
) |
Definition at line 678 of file channel_internal_api.c.
References ao2_replace, ast_assert, ast_channel_internal_set_stream_topology(), ast_channel_is_multistream(), ast_channel_name(), ast_format_cap_get_names(), ast_str_tmp, ast_stream_topology_create_from_format_cap(), ast_channel::nativeformats, NULL, S_COR, S_OR, SCOPE_ENTER, SCOPE_EXIT_RTN, ast_channel::stream_topology, and value.
Referenced by __ast_channel_alloc_ap(), ast_channel_destructor(), ast_iax2_new(), AST_TEST_DEFINE(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), chan_pjsip_read_stream(), channel_do_masquerade(), console_new(), dahdi_new(), do_notify(), handle_exec(), iax2_request(), jingle_interpret_content(), jingle_new(), jingle_read(), make_channel(), mbl_new(), multicast_rtp_request(), ooh323_new(), ooh323_rtp_read(), ooh323_set_read_format(), ooh323_set_write_format(), rec_request(), set_caps(), set_format(), socket_process_helper(), stasis_app_control_snoop(), unicast_rtp_request(), unistim_new(), and unistim_rtp_read().
struct ast_format * ast_channel_oldwriteformat | ( | struct ast_channel * | chan | ) |
Definition at line 845 of file channel_internal_api.c.
References ast_channel::oldwriteformat.
Referenced by ast_stopstream().
unsigned long ast_channel_outsmpl | ( | const struct ast_channel * | chan | ) |
void ast_channel_outsmpl_set | ( | struct ast_channel * | chan, |
unsigned long | value | ||
) |
Definition at line 551 of file channel_internal_api.c.
References ast_channel::outsmpl, and value.
struct ast_pbx * ast_channel_pbx | ( | const struct ast_channel * | chan | ) |
Definition at line 722 of file channel_internal_api.c.
References ast_channel::pbx.
Referenced by __analog_handle_event(), __ast_pbx_run(), action_dialplan_exec(), ast_app_dtget(), ast_app_getdata_terminator(), ast_async_goto(), ast_bridge_add_channel(), ast_can_pickup(), ast_channel_destructor(), bridge_impart_internal(), collect_digits(), control_swap_channel_in_bridge(), dahdi_handle_event(), depart_channel(), disa_exec(), handle_getoption(), handle_gosub(), ivr_dispatch(), pbx_builtin_waitexten(), read_exec(), read_newoption(), readexten_exec(), speech_background(), stasis_app_exec(), timeout_read(), and timeout_write().
void ast_channel_pbx_set | ( | struct ast_channel * | chan, |
struct ast_pbx * | value | ||
) |
Definition at line 726 of file channel_internal_api.c.
References ast_channel::pbx, and value.
Referenced by __ast_pbx_run(), action_dialplan_exec(), control_swap_channel_in_bridge(), handle_gosub(), and internal_bridge_after_cb().
ast_group_t ast_channel_pickupgroup | ( | const struct ast_channel * | chan | ) |
Definition at line 1083 of file channel_internal_api.c.
References ast_channel::pickupgroup.
Referenced by ast_var_channels_table(), find_channel_by_group(), func_channel_read(), generate_status(), handle_showchan(), and serialize_showchan().
void ast_channel_pickupgroup_set | ( | struct ast_channel * | chan, |
ast_group_t | value | ||
) |
Definition at line 1087 of file channel_internal_api.c.
References ast_channel::pickupgroup, and value.
Referenced by chan_pjsip_new(), dahdi_new(), func_channel_write_real(), jingle_new(), and unistim_new().
int ast_channel_priority | ( | const struct ast_channel * | chan | ) |
Definition at line 450 of file channel_internal_api.c.
References ast_channel::priority.
Referenced by __ast_pbx_run(), _while_exec(), action_bridge(), action_dialplan_exec(), ast_bridge_setup_after_goto(), ast_channel_log(), ast_channel_yank(), ast_pbx_h_exten_run(), ast_str_retrieve_variable(), ast_var_channels_table(), bridge_exec(), channel_snapshot_dialplan_create(), dial_exec_full(), feature_blind_transfer(), find_matching_endif(), find_matching_endwhile(), forward_message(), func_channel_write_real(), gosub_exec(), gosub_run(), handle_gosub(), handle_showchan(), if_helper(), launch_monitor_thread(), leave_voicemail(), log_exec(), lua_pbx_exec(), make_email_file(), pbx_builtin_goto(), pbx_builtin_setvar_multiple(), pbx_builtin_waitexten(), pbx_parseable_goto(), raise_exception(), realtime_exec(), serialize_showchan(), setup_env(), and setup_peer_after_bridge_goto().
void ast_channel_priority_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 454 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN, ast_channel_snapshot_invalidate_segment(), ast_channel::priority, and value.
Referenced by __ast_channel_alloc_ap(), __ast_pbx_run(), __ast_request_and_dial(), _while_exec(), action_dialplan_exec(), ari_originate_dial(), ast_bridge_setup_after_goto(), ast_channel_yank(), ast_explicit_goto(), ast_pbx_h_exten_run(), AST_TEST_DEFINE(), chan_pjsip_new(), dial_exec_full(), dialout(), do_notify(), forward_message(), generic_recall(), gosub_exec(), gosub_run(), handle_gosub(), if_helper(), jingle_new(), leave_voicemail(), minivm_greet_exec(), ooh323_new(), pbx_builtin_background(), pbx_extension_helper(), pbx_outgoing_exec(), return_exec(), set_ext_pri(), and unistim_new().
struct ast_format * ast_channel_rawreadformat | ( | struct ast_channel * | chan | ) |
Definition at line 849 of file channel_internal_api.c.
References ast_channel::rawreadformat.
Referenced by __ast_read(), ast_set_read_format_path(), chan_pjsip_write_stream(), channel_do_masquerade(), cli_channelstats_print_body(), dahdi_read(), gather_softmix_stats(), native_rtp_bridge_compatible_check(), serialize_showchan(), set_softmix_bridge_data(), set_talk_detect(), and snoop_determine_format().
struct ast_format * ast_channel_rawwriteformat | ( | struct ast_channel * | chan | ) |
Definition at line 853 of file channel_internal_api.c.
References ast_channel::rawwriteformat.
Referenced by ast_prod(), ast_set_write_format_path(), ast_write_stream(), chan_pjsip_read_stream(), chan_pjsip_write_stream(), channel_do_masquerade(), conf_run(), native_rtp_bridge_compatible_check(), serialize_showchan(), snoop_determine_format(), and softmix_mixing_loop().
struct ast_format * ast_channel_readformat | ( | struct ast_channel * | chan | ) |
Definition at line 857 of file channel_internal_api.c.
References ast_channel::readformat.
Referenced by __ast_read(), adsi_transmit_message_full(), agent_login_exec(), alarmreceiver_exec(), ast_bridge_channel_restore_formats(), ast_channel_yank(), ast_set_read_format_path(), audiosocket_exec(), background_detect_exec(), bridge_channel_internal_join(), chan_pjsip_read_stream(), chan_pjsip_write_stream(), channel_do_masquerade(), dictate_exec(), do_waiting(), eagi_exec(), fax_detect_framehook(), fax_gateway_framehook(), func_channel_read(), generate_status(), generic_fax_exec(), handle_recordfile(), handle_showchan(), init_jack_data(), isAnsweringMachine(), jingle_read(), jingle_write(), measurenoise(), ooh323_rtp_read(), ooh323_set_read_format(), ooh323_set_write_format(), ooh323_write(), record_exec(), send_start_rtp(), serialize_showchan(), set_caps(), set_read_to_slin(), socket_process_helper(), speech_background(), start_rtp(), unistim_rtp_read(), and unistim_write().
struct ast_readq_list * ast_channel_readq | ( | struct ast_channel * | chan | ) |
Definition at line 877 of file channel_internal_api.c.
References ast_channel::readq.
Referenced by __ast_queue_frame(), __ast_read(), ast_channel_clear_softhangup(), ast_channel_destructor(), chan_cleanup(), channel_do_masquerade(), handle_dump_frames(), load_stream_readqueue(), optimize_lock_chan_stack(), optimize_lock_peer_stack(), and wait_for_empty_queue().
struct ast_trans_pvt * ast_channel_readtrans | ( | const struct ast_channel * | chan | ) |
Definition at line 754 of file channel_internal_api.c.
References ast_channel::readtrans.
Referenced by __ast_read(), ast_channel_destructor(), ast_set_read_format_path(), chan_pjsip_write_stream(), fax_gateway_framehook(), free_translation(), generate_status(), handle_showchan(), and serialize_showchan().
void ast_channel_readtrans_set | ( | struct ast_channel * | chan, |
struct ast_trans_pvt * | value | ||
) |
Definition at line 758 of file channel_internal_api.c.
References ast_channel::readtrans, and value.
Referenced by ast_set_read_format_path(), and free_translation().
struct ast_party_redirecting * ast_channel_redirecting | ( | struct ast_channel * | chan | ) |
Definition at line 909 of file channel_internal_api.c.
References ast_channel::redirecting.
Referenced by __ast_channel_alloc_ap(), analog_call(), ast_ari_channels_dial(), ast_call_forward(), ast_cel_fabricate_channel_from_event(), ast_channel_destructor(), ast_channel_redirecting_sub(), ast_channel_set_redirecting(), ast_dummy_channel_destructor(), ast_iax2_new(), ast_unreal_call_setup(), ast_var_channels_table(), begin_dial_prerun(), call_forward_inherit(), callerid_read(), callerid_write(), channel_do_masquerade(), channel_snapshot_caller_create(), dahdi_new(), dial_exec_full(), do_forward(), get_redirecting_add_diversion(), iax2_call(), indicate_redirecting(), isAnsweringMachine(), leave_voicemail(), my_get_callerid(), redirecting_read(), redirecting_write(), ring_entry(), serialize_showchan(), setup_env(), unreal_colp_redirect_indicate(), and wait_for_answer().
struct ast_party_id ast_channel_redirecting_effective_from | ( | struct ast_channel * | chan | ) |
Definition at line 917 of file channel_internal_api.c.
References ast_party_id_merge().
struct ast_party_id ast_channel_redirecting_effective_orig | ( | struct ast_channel * | chan | ) |
Definition at line 913 of file channel_internal_api.c.
References ast_party_id_merge().
struct ast_party_id ast_channel_redirecting_effective_to | ( | struct ast_channel * | chan | ) |
Definition at line 921 of file channel_internal_api.c.
References ast_party_id_merge().
void ast_channel_redirecting_set | ( | struct ast_channel * | chan, |
struct ast_party_redirecting * | value | ||
) |
Definition at line 960 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_CALLER, ast_channel_snapshot_invalidate_segment(), ast_channel::redirecting, and value.
Referenced by channel_do_masquerade().
int ast_channel_rings | ( | const struct ast_channel * | chan | ) |
Definition at line 459 of file channel_internal_api.c.
References ast_channel::rings.
Referenced by __analog_handle_event(), ast_var_channels_table(), and serialize_showchan().
void ast_channel_rings_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 463 of file channel_internal_api.c.
References ast_channel::rings, and value.
Referenced by __analog_handle_event(), __analog_ss_thread(), analog_ss_thread(), chan_pjsip_new(), dahdi_handle_event(), dahdi_new(), jingle_new(), mbl_new(), ooh323_new(), and unistim_new().
struct ast_sched_context * ast_channel_sched | ( | const struct ast_channel * | chan | ) |
Definition at line 730 of file channel_internal_api.c.
References ast_channel::sched.
Referenced by ast_channel_destructor(), ast_hangup(), ast_readaudio_callback(), ast_readvideo_callback(), background_detect_exec(), dial_exec_full(), filestream_close(), handle_speechrecognize(), speech_background(), wait_for_winner(), and waitstream_core().
void ast_channel_sched_set | ( | struct ast_channel * | chan, |
struct ast_sched_context * | value | ||
) |
Definition at line 734 of file channel_internal_api.c.
References ast_channel::sched, and value.
Referenced by __ast_channel_alloc_ap(), and ast_hangup().
char ast_channel_sending_dtmf_digit | ( | const struct ast_channel * | chan | ) |
Definition at line 402 of file channel_internal_api.c.
References ast_channel::sending_dtmf_digit.
Referenced by ast_senddigit_end(), bridge_channel_internal_join(), and channel_do_masquerade().
void ast_channel_sending_dtmf_digit_set | ( | struct ast_channel * | chan, |
char | value | ||
) |
Definition at line 406 of file channel_internal_api.c.
References ast_channel::sending_dtmf_digit, and value.
Referenced by ast_senddigit_begin(), and ast_senddigit_end().
struct timeval ast_channel_sending_dtmf_tv | ( | const struct ast_channel * | chan | ) |
Definition at line 411 of file channel_internal_api.c.
Referenced by bridge_channel_internal_join(), and channel_do_masquerade().
void ast_channel_sending_dtmf_tv_set | ( | struct ast_channel * | chan, |
struct timeval | value | ||
) |
Definition at line 415 of file channel_internal_api.c.
References ast_channel::sending_dtmf_tv, and value.
Referenced by ast_senddigit_begin().
void ast_channel_set_is_t38_active | ( | struct ast_channel * | chan, |
int | is_t38_active | ||
) |
Sets the is_t38_active flag.
chan | Which channel is having its is_t38_active value set |
is_t38_active | Non-zero if T.38 is active |
Definition at line 1062 of file channel_internal_api.c.
References ast_channel_lock, ast_channel_set_is_t38_active_nolock(), and ast_channel_unlock.
void ast_channel_set_is_t38_active_nolock | ( | struct ast_channel * | chan, |
int | is_t38_active | ||
) |
Variant of ast_channel_set_is_t38_active. Use this if the channel is already locked prior to calling.
chan | Which channel is having its is_t38_active value set |
is_t38_active | Non-zero if T.38 is active |
Definition at line 1057 of file channel_internal_api.c.
References ast_channel::is_t38_active.
Referenced by ast_channel_set_is_t38_active(), and indicate_data_internal().
void ast_channel_set_oldwriteformat | ( | struct ast_channel * | chan, |
struct ast_format * | format | ||
) |
Definition at line 825 of file channel_internal_api.c.
References ao2_replace, and ast_channel::oldwriteformat.
Referenced by ast_channel_destructor(), and ast_openstream_full().
void ast_channel_set_rawreadformat | ( | struct ast_channel * | chan, |
struct ast_format * | format | ||
) |
Definition at line 829 of file channel_internal_api.c.
References ao2_replace, and ast_channel::rawreadformat.
Referenced by __ast_channel_alloc_ap(), ast_channel_destructor(), ast_iax2_new(), ast_set_read_format_path(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), channel_do_masquerade(), dahdi_new(), do_notify(), handle_exec(), jingle_new(), mbl_new(), multicast_rtp_request(), ooh323_new(), rec_request(), sip_session_response_cb(), stasis_app_control_snoop(), test_vm_api_create_mock_channel(), unicast_rtp_request(), and unistim_new().
void ast_channel_set_rawwriteformat | ( | struct ast_channel * | chan, |
struct ast_format * | format | ||
) |
Definition at line 833 of file channel_internal_api.c.
References ao2_replace, and ast_channel::rawwriteformat.
Referenced by __ast_channel_alloc_ap(), ast_channel_destructor(), ast_iax2_new(), ast_set_write_format_path(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), channel_do_masquerade(), dahdi_new(), do_notify(), handle_exec(), jingle_new(), mbl_new(), multicast_rtp_request(), ooh323_new(), rec_request(), sip_session_response_cb(), stasis_app_control_snoop(), test_vm_api_create_mock_channel(), unicast_rtp_request(), and unistim_new().
void ast_channel_set_readformat | ( | struct ast_channel * | chan, |
struct ast_format * | format | ||
) |
Definition at line 837 of file channel_internal_api.c.
References ao2_replace, and ast_channel::readformat.
Referenced by __ast_channel_alloc_ap(), ast_channel_destructor(), ast_channel_yank(), ast_iax2_new(), ast_set_read_format_path(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), console_new(), dahdi_new(), do_notify(), handle_exec(), iax2_request(), jingle_new(), mbl_new(), multicast_rtp_request(), rec_request(), sip_session_response_cb(), start_rtp(), stasis_app_control_snoop(), test_vm_api_create_mock_channel(), unicast_rtp_request(), and unistim_new().
struct ast_stream_topology * ast_channel_set_stream_topology | ( | struct ast_channel * | chan, |
struct ast_stream_topology * | topology | ||
) |
Set the topology of streams on a channel.
chan | The channel to set the stream topology on |
topology | The stream topology to set |
non-NULL | Success |
NULL | failure |
Definition at line 1620 of file channel_internal_api.c.
References ast_assert, ast_channel_internal_set_stream_topology(), ast_channel_is_multistream(), ast_channel_name(), ast_str_tmp, ast_stream_topology_alloc(), ast_stream_topology_to_str(), NULL, SCOPE_ENTER, and SCOPE_EXIT_RTN_VALUE.
Referenced by AST_TEST_DEFINE(), ast_unreal_indicate(), ast_unreal_new_channels(), chan_pjsip_new(), handle_negotiated_sdp(), make_channel(), and unreal_colp_stream_topology_request_change().
void ast_channel_set_unbridged | ( | struct ast_channel * | chan, |
int | value | ||
) |
Sets the unbridged flag and queues a NULL frame on the channel to trigger a check by bridge_channel_wait.
chan | Which channel is having its unbridged value set |
value | What the unbridge value is being set to |
Definition at line 1035 of file channel_internal_api.c.
References ast_channel_lock, ast_channel_set_unbridged_nolock(), ast_channel_unlock, and value.
Referenced by ast_bridge_setup_after_goto(), bridge_channel_wait(), and t38_change_state().
void ast_channel_set_unbridged_nolock | ( | struct ast_channel * | chan, |
int | value | ||
) |
Variant of ast_channel_set_unbridged. Use this if the channel is already locked prior to calling.
chan | Which channel is having its unbridged value set |
value | What the unbridge value is being set to |
Definition at line 1029 of file channel_internal_api.c.
References ast_null_frame, ast_queue_frame(), ast_channel::unbridged, and value.
Referenced by ast_audiohook_attach(), ast_audiohook_remove(), ast_channel_set_unbridged(), ast_framehook_attach(), ast_framehook_detach(), ast_framehook_list_fixup(), audio_audiohook_write_list(), chan_pjsip_read_stream(), dtmf_audiohook_write_list(), and set_caps().
void ast_channel_set_writeformat | ( | struct ast_channel * | chan, |
struct ast_format * | format | ||
) |
Definition at line 841 of file channel_internal_api.c.
References ao2_replace, and ast_channel::writeformat.
Referenced by __ast_channel_alloc_ap(), ast_channel_destructor(), ast_channel_yank(), ast_iax2_new(), ast_set_write_format_path(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), console_new(), dahdi_new(), do_notify(), handle_exec(), iax2_request(), jingle_new(), mbl_new(), multicast_rtp_request(), rec_request(), sip_session_response_cb(), start_rtp(), stasis_app_control_snoop(), test_vm_api_create_mock_channel(), unicast_rtp_request(), and unistim_new().
struct ast_channel_snapshot * ast_channel_snapshot | ( | const struct ast_channel * | chan | ) |
Definition at line 1677 of file channel_internal_api.c.
References ast_channel::snapshot.
Referenced by aoc_publish_blob(), ast_channel_blob_create(), ast_channel_snapshot_create(), and channel_snapshot_update_create().
struct ast_flags * ast_channel_snapshot_segment_flags | ( | struct ast_channel * | chan | ) |
Definition at line 1688 of file channel_internal_api.c.
References ast_channel::snapshot_segment_flags.
Referenced by ast_channel_publish_snapshot(), ast_channel_snapshot_create(), ast_channel_snapshot_invalidate_segment(), and channel_do_masquerade().
void ast_channel_snapshot_set | ( | struct ast_channel * | chan, |
struct ast_channel_snapshot * | snapshot | ||
) |
Definition at line 1682 of file channel_internal_api.c.
References ao2_bump, ao2_cleanup, and ast_channel::snapshot.
Referenced by ast_channel_publish_final_snapshot(), and ast_channel_publish_snapshot().
int ast_channel_softhangup_internal_flag | ( | struct ast_channel * | chan | ) |
Definition at line 998 of file channel_internal_api.c.
References ast_channel::softhangup.
Referenced by __ast_pbx_run(), __ast_read(), agent_request_exec(), ast_autoservice_stop(), ast_bridge_call_with_flags(), ast_bridge_join(), ast_bridge_setup_after_goto(), ast_channel_clear_softhangup(), ast_channel_end_dtmf(), ast_channel_is_leaving_bridge(), ast_channel_snapshot_create(), ast_check_hangup(), collect_digits(), gosub_run(), park_and_announce_app_exec(), park_app_exec(), and waitstream_core().
void ast_channel_softhangup_internal_flag_add | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 1006 of file channel_internal_api.c.
References ast_channel::softhangup, and value.
Referenced by __ast_read(), ast_check_hangup(), ast_dsp_process(), ast_queue_hangup(), ast_queue_hangup_with_cause(), ast_softhangup_nolock(), ast_waitfor_nandfds(), ast_write_stream(), dahdi_handle_event(), and onCallCleared().
void ast_channel_softhangup_internal_flag_clear | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 1010 of file channel_internal_api.c.
References ast_channel::softhangup.
Referenced by ast_channel_clear_softhangup().
void ast_channel_softhangup_internal_flag_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 1002 of file channel_internal_api.c.
References ast_channel::softhangup, and value.
Referenced by channel_do_masquerade().
enum ast_channel_state ast_channel_state | ( | const struct ast_channel * | chan | ) |
void ast_channel_state_set | ( | struct ast_channel * | chan, |
enum ast_channel_state | value | ||
) |
Definition at line 821 of file channel_internal_api.c.
References ast_channel::state, and value.
Referenced by __ast_channel_alloc_ap(), ast_setstate(), AST_TEST_DEFINE(), and channel_do_masquerade().
struct ast_filestream * ast_channel_stream | ( | const struct ast_channel * | chan | ) |
Definition at line 622 of file channel_internal_api.c.
References ast_channel::stream.
Referenced by ast_hangup(), ast_moh_files_next(), ast_openstream_full(), ast_readstring_full(), ast_stopstream(), background_detect_exec(), control_streamfile(), dial_exec_full(), filehelper(), handle_getoption(), handle_speechrecognize(), handle_streamfile(), local_ast_moh_stop(), moh_files_readframe(), moh_files_release(), speech_background(), wait_for_winner(), waitstream_control(), and waitstream_core().
void ast_channel_stream_set | ( | struct ast_channel * | chan, |
struct ast_filestream * | value | ||
) |
Definition at line 626 of file channel_internal_api.c.
References ast_channel::stream, and value.
Referenced by ast_hangup(), ast_moh_files_next(), ast_stopstream(), dictate_exec(), filehelper(), filestream_close(), gen_closestream(), handle_recordfile(), local_ast_moh_stop(), and moh_files_release().
int ast_channel_streamid | ( | const struct ast_channel * | chan | ) |
Definition at line 467 of file channel_internal_api.c.
References ast_channel::streamid.
Referenced by filestream_close(), handle_speechrecognize(), and speech_background().
void ast_channel_streamid_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 471 of file channel_internal_api.c.
References ast_channel::streamid, and value.
Referenced by __ast_channel_alloc_ap(), ast_readaudio_callback(), and filestream_close().
const struct ast_channel_tech * ast_channel_tech | ( | const struct ast_channel * | chan | ) |
Definition at line 770 of file channel_internal_api.c.
References ast_channel::tech.
Referenced by __ast_read(), acf_channel_read(), analog_ss_thread(), ast_ari_channels_rtpstatistics(), ast_call(), ast_channel_early_bridge(), ast_channel_queryoption(), ast_channel_request_stream_topology_change(), ast_channel_sendhtml(), ast_channel_setoption(), ast_channel_snapshot_create(), ast_channel_stream_topology_changed(), ast_channel_supports_html(), ast_hangup(), ast_jb_do_usecheck(), ast_pre_call(), ast_raw_answer_with_stream_topology(), ast_rtp_dtmf_compatible(), ast_rtp_instance_early_bridge(), ast_rtp_instance_early_bridge_make_compatible(), ast_rtp_instance_make_compatible(), ast_send_image(), ast_senddigit(), ast_senddigit_begin(), ast_senddigit_end(), ast_senddigit_external(), ast_senddigit_mf(), ast_sendtext_data(), ast_supports_images(), ast_transfer_protocol(), ast_var_channel_types_table(), ast_var_channels_table(), ast_write_stream(), ast_write_video(), channel_do_masquerade(), channel_sanitizer(), channel_snapshot_base_create(), conf_run(), dahdi_setoption(), flash_exec(), func_channel_read(), func_channel_write_real(), function_iaxpeer(), function_ooh323_read(), function_ooh323_write(), fxo_pvt(), generate_status(), handle_showchan(), iax2_prov_app(), indicate_data_internal(), my_get_sigpvt_bridged_channel(), native_bridge_is_capable(), pjsip_acf_channel_read(), pjsip_acf_dtmf_mode_read(), pjsip_acf_dtmf_mode_write(), pjsip_acf_media_offer_read(), pjsip_acf_media_offer_write(), pjsip_acf_moh_passthrough_read(), pjsip_acf_moh_passthrough_write(), pjsip_acf_session_refresh_write(), pjsip_app_hangup_handler(), push_notify_channel(), rtp_glue_data_get(), sendtext_exec(), serialize_showchan(), setup_env(), softhangup_exec(), t38_masq(), tech_write(), transfer_exec(), and try_calling().
void * ast_channel_tech_pvt | ( | const struct ast_channel * | chan | ) |
Definition at line 571 of file channel_internal_api.c.
References ast_channel::tech_pvt.
Referenced by __analog_ss_thread(), __dahdi_exception(), acf_channel_read(), analog_hangup(), analog_ss_thread(), announce_hangup(), aoc_framehook(), ast_channel_destructor(), ast_local_get_peer(), ast_local_lock_all(), ast_local_setup_bridge(), ast_local_setup_masquerade(), AST_TEST_DEFINE(), ast_unreal_answer(), ast_unreal_channel_push_to_bridge(), ast_unreal_digit_begin(), ast_unreal_digit_end(), ast_unreal_fixup(), ast_unreal_indicate(), ast_unreal_queryoption(), ast_unreal_sendhtml(), ast_unreal_sendtext(), ast_unreal_setoption(), ast_unreal_write_stream(), audiosocket_call(), audiosocket_hangup(), audiosocket_read(), audiosocket_write(), chan_pjsip_answer(), chan_pjsip_call(), chan_pjsip_digit_begin(), chan_pjsip_digit_end(), chan_pjsip_fixup(), chan_pjsip_get_rtp_peer(), chan_pjsip_get_uniqueid(), chan_pjsip_get_vrtp_peer(), chan_pjsip_hangup(), chan_pjsip_indicate(), chan_pjsip_queryoption(), chan_pjsip_read_stream(), chan_pjsip_sendtext_data(), chan_pjsip_set_rtp_peer(), chan_pjsip_transfer(), chan_pjsip_write_stream(), chan_rtp_get_rtp_peer(), channel_do_masquerade(), channel_read_pjsip(), channel_read_rtcp(), channel_read_rtp(), channel_to_session(), cli_channelstats_print_body(), conf_announce_channel_push(), console_answer(), console_call(), console_fixup(), console_hangup(), console_indicate(), console_write(), dahdi_answer(), dahdi_call(), dahdi_callwait(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_exception(), dahdi_fixup(), dahdi_func_read(), dahdi_func_write(), dahdi_handle_dtmf(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_queryoption(), dahdi_read(), dahdi_sendtext(), dahdi_setoption(), dahdi_write(), func_read_header(), func_read_headers(), func_read_param(), func_response_read_header(), func_response_read_headers(), func_write_header(), func_write_param(), function_iaxpeer(), function_ooh323_read(), function_ooh323_write(), fxo_pvt(), hangup(), iax2_answer(), iax2_call(), iax2_digit_begin(), iax2_digit_end(), iax2_fixup(), iax2_hangup(), iax2_indicate(), iax2_prov_app(), iax2_queryoption(), iax2_sendhtml(), iax2_sendimage(), iax2_sendtext(), iax2_setoption(), iax2_transfer(), iax2_write(), jingle_answer(), jingle_call(), jingle_digit_begin(), jingle_digit_end(), jingle_fixup(), jingle_get_rtp_peer(), jingle_hangup(), jingle_indicate(), jingle_read(), jingle_sendtext(), jingle_write(), load_stream_readqueue(), local_call(), local_hangup(), manager_optimize_away(), mbl_answer(), mbl_call(), mbl_digit_end(), mbl_fixup(), mbl_hangup(), mbl_read(), mbl_write(), media_hangup(), mock_channel_hangup(), mock_channel_indicate(), mock_channel_read(), mock_channel_write(), mock_channel_write_stream(), my_get_sigpvt_bridged_channel(), native_bridge_is_capable(), native_chan_changed(), native_start(), native_stop(), ooh323_answer(), ooh323_call(), ooh323_digit_begin(), ooh323_digit_end(), ooh323_fixup(), ooh323_get_codec(), ooh323_get_rtp_peer(), ooh323_get_vrtp_peer(), ooh323_hangup(), ooh323_indicate(), ooh323_queryoption(), ooh323_read(), ooh323_set_rtp_peer(), ooh323_write(), pjsip_acf_channel_read(), pjsip_acf_dtmf_mode_read(), pjsip_acf_dtmf_mode_write(), pjsip_acf_media_offer_read(), pjsip_acf_media_offer_write(), pjsip_acf_moh_passthrough_read(), pjsip_acf_moh_passthrough_write(), pjsip_acf_session_refresh_write(), pjsip_app_hangup_handler(), push_notify_channel(), read_test(), rtp_call(), rtp_hangup(), rtp_read(), rtp_write(), send_direct_media_request(), sendtext_data_create(), snoop_fixup(), snoop_hangup(), snoop_read(), snoop_write(), stasis_app_channel_unreal_set_internal(), t38_framehook(), test_bridging_chan_hangup(), test_bridging_chan_indicate(), unistim_answer(), unistim_call(), unistim_fixup(), unistim_get_rtp_peer(), unistim_hangup(), unistim_indicate(), unistim_read(), unistim_set_rtp_peer(), unistim_ss(), and unistim_write().
void ast_channel_tech_pvt_set | ( | struct ast_channel * | chan, |
void * | value | ||
) |
Definition at line 575 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE, ast_channel_snapshot_invalidate_segment(), NULL, ast_channel::tech_pvt, and value.
Referenced by ast_iax2_new(), AST_TEST_DEFINE(), ast_unreal_hangup(), ast_unreal_new_channels(), audiosocket_hangup(), audiosocket_request(), chan_pjsip_new(), channel_do_masquerade(), clear_session_and_channel(), console_hangup(), console_new(), dahdi_hangup(), dahdi_new(), destroy_dahdi_pvt(), iax2_hangup(), iax2_predestroy(), jingle_hangup(), jingle_new(), kill_hangup(), make_channel(), mbl_hangup(), mbl_new(), mock_channel_hangup(), multicast_rtp_request(), onCallCleared(), ooh323_destroy(), ooh323_hangup(), ooh323_new(), rtp_hangup(), snoop_hangup(), stasis_app_control_snoop(), test_bridging_chan_hangup(), unicast_rtp_request(), unistim_hangup_clean(), and unistim_new().
void ast_channel_tech_set | ( | struct ast_channel * | chan, |
const struct ast_channel_tech * | value | ||
) |
Definition at line 774 of file channel_internal_api.c.
References ast_assert, ast_channel::tech, and value.
Referenced by __ast_channel_alloc_ap(), ast_iax2_new(), AST_TEST_DEFINE(), ast_unreal_new_channels(), audiosocket_request(), chan_pjsip_new(), channel_do_masquerade(), console_new(), create_msg_q_chan(), dahdi_new(), do_notify(), handle_exec(), jingle_new(), make_channel(), mbl_new(), multicast_rtp_request(), ooh323_new(), rec_request(), stasis_app_control_snoop(), test_vm_api_create_mock_channel(), unicast_rtp_request(), and unistim_new().
const char * ast_channel_tenantid | ( | const struct ast_channel * | chan | ) |
Definition at line 316 of file channel_internal_api.c.
References ast_channel::linkedid, and ast_channel_id::tenant_id.
Referenced by channel_snapshot_base_create(), func_channel_read(), and handle_showchan().
void ast_channel_tenantid_set | ( | struct ast_channel * | chan, |
const char * | value | ||
) |
Definition at line 322 of file channel_internal_api.c.
References AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE, ast_channel_snapshot_invalidate_segment(), ast_copy_string(), ast_strlen_zero(), ast_channel::linkedid, ast_channel_id::tenant_id, and value.
Referenced by func_channel_write_real().
struct ast_timer * ast_channel_timer | ( | const struct ast_channel * | chan | ) |
Definition at line 738 of file channel_internal_api.c.
References ast_channel::timer.
Referenced by __ast_channel_alloc_ap(), __ast_queue_frame(), __ast_read(), ast_channel_destructor(), ast_deactivate_generator(), and ast_settimeout_full().
void ast_channel_timer_set | ( | struct ast_channel * | chan, |
struct ast_timer * | value | ||
) |
Definition at line 742 of file channel_internal_api.c.
References ast_channel::timer, and value.
Referenced by __ast_channel_alloc_ap(), and ast_channel_destructor().
void * ast_channel_timingdata | ( | const struct ast_channel * | chan | ) |
Definition at line 582 of file channel_internal_api.c.
References ast_channel::timingdata.
Referenced by __ast_read(), and ast_settimeout_full().
void ast_channel_timingdata_set | ( | struct ast_channel * | chan, |
void * | value | ||
) |
Definition at line 586 of file channel_internal_api.c.
References ast_channel::timingdata, and value.
Referenced by ast_settimeout_full().
int ast_channel_timingfd | ( | const struct ast_channel * | chan | ) |
Definition at line 475 of file channel_internal_api.c.
References ast_channel::timingfd.
Referenced by __ast_channel_alloc_ap(), __ast_queue_frame(), __ast_read(), ast_readaudio_callback(), ast_settimeout_full(), and channel_do_masquerade().
void ast_channel_timingfd_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 479 of file channel_internal_api.c.
References ast_channel::timingfd, and value.
Referenced by __ast_channel_alloc_ap(), and __ast_dummy_channel_alloc().
ast_timing_func_t ast_channel_timingfunc | ( | const struct ast_channel * | chan | ) |
Definition at line 1232 of file channel_internal_api.c.
References ast_channel::timingfunc.
Referenced by __ast_read(), ast_read_generator_actions(), background_detect_exec(), dial_exec_full(), handle_speechrecognize(), speech_background(), wait_for_winner(), and waitstream_core().
void ast_channel_timingfunc_set | ( | struct ast_channel * | chan, |
ast_timing_func_t | value | ||
) |
Definition at line 1236 of file channel_internal_api.c.
References ast_channel::timingfunc, and value.
Referenced by ast_settimeout_full().
struct stasis_topic * ast_channel_topic | ( | struct ast_channel * | chan | ) |
A topic which publishes the events for a particular channel.
If the given chan is NULL
, ast_channel_topic_all() is returned.
chan | Channel, or NULL . |
Topic | for channel's events. |
ast_channel_topic_all() | if chan is NULL . |
Definition at line 1531 of file channel_internal_api.c.
References ast_channel_topic_all(), and ast_channel::topic.
Referenced by ari_bridges_play_new(), ast_ari_bridges_record(), ast_channel_forward_endpoint(), ast_channel_internal_setup_topics(), ast_channel_publish_blob(), ast_channel_publish_cached_blob(), ast_channel_publish_final_snapshot(), ast_channel_publish_snapshot(), ast_multi_object_blob_single_channel_publish(), AST_TEST_DEFINE(), detect_callback(), forwards_create_channel(), local_optimization_finished_cb(), local_optimization_started_cb(), manager_mute_mixmonitor(), meetme_stasis_generate_msg(), mixmonitor_exec(), moh_post_start(), moh_post_stop(), publish_chanspy_message(), publish_local_bridge_message(), publish_message_for_channel_topics(), queue_publish_multi_channel_blob(), report_fax_status(), report_receive_fax_status(), report_send_fax_status(), send_call_pickup_stasis_message(), send_conf_stasis(), stasis_app_control_publish(), stop_mixmonitor_full(), and talk_detect_audiohook_cb().
unsigned short ast_channel_transfercapability | ( | const struct ast_channel * | chan | ) |
Definition at line 507 of file channel_internal_api.c.
References ast_channel::transfercapability.
Referenced by ast_ari_channels_dial(), ast_var_channels_table(), begin_dial_prerun(), dahdi_call(), dial_exec_full(), func_channel_read(), and ooh323_call().
void ast_channel_transfercapability_set | ( | struct ast_channel * | chan, |
unsigned short | value | ||
) |
Definition at line 511 of file channel_internal_api.c.
References ast_channel::transfercapability, and value.
Referenced by ast_ari_channels_dial(), begin_dial_prerun(), dial_exec_full(), and func_channel_write_real().
int ast_channel_unbridged | ( | struct ast_channel * | chan | ) |
This function will check if the bridge needs to be re-evaluated due to external changes.
chan | Channel on which to check the unbridge_eval flag |
Definition at line 1020 of file channel_internal_api.c.
References ast_channel_lock, ast_channel_unbridged_nolock(), and ast_channel_unlock.
Referenced by ast_channel_is_leaving_bridge(), and bridge_channel_wait().
int ast_channel_unbridged_nolock | ( | struct ast_channel * | chan | ) |
ast_channel_unbridged variant. Use this if the channel is already locked prior to calling.
chan | Channel on which to check the unbridge flag |
Definition at line 1015 of file channel_internal_api.c.
References ast_channel::unbridged.
Referenced by ast_channel_unbridged().
const char * ast_channel_uniqueid | ( | const struct ast_channel * | chan | ) |
Definition at line 304 of file channel_internal_api.c.
References ast_assert, ast_channel_id::unique_id, and ast_channel::uniqueid.
Referenced by __ast_change_name_nolink(), action_confbridgelist_item(), action_dahdishowchannels(), app_exec(), app_subscribe_channel(), app_unsubscribe_channel(), apply_negotiated_sdp_stream(), aqm_exec(), ari_channels_handle_originate_with_id(), ari_channels_handle_snoop_channel(), ast_ari_channels_create(), ast_attended_transfer_message_add_app(), ast_attended_transfer_message_add_link(), ast_attended_transfer_message_add_threeway(), ast_attended_transfer_message_create(), ast_blind_transfer_message_create(), ast_bridge_blob_create(), ast_bridge_publish_enter(), ast_bridge_set_single_src_video_mode(), ast_bridge_snapshot_create(), ast_bridge_transfer_blind(), ast_bridge_update_talker_src_video_mode(), ast_cel_publish_event(), ast_channel_by_uniqueid_cb(), ast_channel_log(), ast_channel_move(), ast_channel_publish_cached_blob(), ast_channel_publish_dial_internal(), ast_channel_publish_final_snapshot(), ast_channel_publish_snapshot(), ast_do_pickup(), ast_endpoint_add_channel(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), ast_var_channels_table(), blind_transfer_bridge(), bridge_channel_depart(), bridge_channel_snapshot_pair_init(), bridge_moh_create(), bridge_stasis_push_peek(), build_conf(), call(), chan_pjsip_fixup(), chan_pjsip_indicate(), chan_pjsip_new(), chan_pjsip_session_end(), channel_replaced_cb(), channel_snapshot_base_create(), conf_rec_name(), conf_run(), conf_send_event_to_participants(), create_parked_subscription_full(), detect_callback(), fast_originate(), fax_session_new(), find_by_uniqueid(), find_conf_realtime(), forwards_create_channel(), func_channel_read(), generate_status(), handle_showchan(), internal_bridge_after_cb(), jingle_enable_video(), jingle_set_owner(), local_channel_optimization_blob(), local_optimization_started_cb(), manager_mute_mixmonitor(), manager_park(), manager_park_bridged(), manager_queues_status(), masq_match_cb(), meetme_menu_admin_extended(), meetmemute(), minivm_mwi_exec(), mixmonitor_exec(), moh_post_start(), moh_post_stop(), multicast_rtp_request(), notify_new_message(), pack_channel_into_message(), park_and_announce_app_exec(), park_common_setup2(), park_local_transfer(), parking_blind_transfer_park(), parking_park_bridge_channel(), play_on_channel(), publish_chanspy_message(), publish_local_bridge_message(), queue_exec(), queue_stasis_data_alloc(), record_file(), refer_blind_callback(), report_fax_status(), report_receive_fax_status(), report_send_fax_status(), rna(), rqm_exec(), serialize_showchan(), setup_env(), setup_mixmonitor(), sfu_topologies_on_join(), sfu_topologies_on_source_change(), softmix_bridge_stream_sources_update(), start_rtp(), stasis_app_bridge_playback_channel_add(), stasis_app_control_find_by_channel(), stasis_app_control_get_channel_id(), stasis_app_control_snoop(), stasis_app_exec(), stasis_app_subscribe_channel(), stop_mixmonitor_full(), talk_detect_audiohook_cb(), test_cel_generate_peer_str(), try_calling(), unicast_rtp_request(), unistim_set_owner(), vm_execmain(), wait_for_answer(), and wait_our_turn().
struct varshead * ast_channel_varshead | ( | struct ast_channel * | chan | ) |
Definition at line 933 of file channel_internal_api.c.
References ast_channel::varshead.
Referenced by __ast_channel_alloc_ap(), __ast_dummy_channel_alloc(), ast_cel_fabricate_channel_from_event(), ast_channel_destructor(), ast_channel_get_vars(), ast_channel_inherit_variables(), ast_dummy_channel_destructor(), ast_str_retrieve_variable(), ast_str_substitute_variables_full2(), ast_unreal_call_setup(), chan_cleanup(), clearvar_prefix(), clone_variables(), eval_exten_read(), external_media_audiosocket_tcp(), external_media_rtp_udp(), generate_status(), handle_show_chanvar(), handle_showchan(), hashkeys_read(), hashkeys_read2(), inherit_channel_vars_from_id(), lua_get_variable(), lua_get_variable_value(), pbx_builtin_getvar_helper(), pbx_builtin_pushvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), pbx_substitute_variables_helper(), pbx_substitute_variables_helper_full_location(), and peek_read().
void ast_channel_varshead_set | ( | struct ast_channel * | chan, |
struct varshead * | value | ||
) |
Definition at line 973 of file channel_internal_api.c.
References value, and ast_channel::varshead.
int ast_channel_visible_indication | ( | const struct ast_channel * | chan | ) |
Definition at line 483 of file channel_internal_api.c.
References ast_channel::visible_indication.
Referenced by channel_do_masquerade(), and pre_bridge_setup().
void ast_channel_visible_indication_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 487 of file channel_internal_api.c.
References value, and ast_channel::visible_indication.
Referenced by dial_exec_full(), and indicate_data_internal().
struct ast_filestream * ast_channel_vstream | ( | const struct ast_channel * | chan | ) |
Definition at line 630 of file channel_internal_api.c.
References ast_channel::vstream.
Referenced by ast_hangup(), ast_openvstream(), ast_stopstream(), and filehelper().
void ast_channel_vstream_set | ( | struct ast_channel * | chan, |
struct ast_filestream * | value | ||
) |
Definition at line 634 of file channel_internal_api.c.
References value, and ast_channel::vstream.
Referenced by ast_hangup(), ast_stopstream(), filehelper(), and filestream_close().
int ast_channel_vstreamid | ( | const struct ast_channel * | chan | ) |
Definition at line 499 of file channel_internal_api.c.
References ast_channel::vstreamid.
Referenced by filestream_close().
void ast_channel_vstreamid_set | ( | struct ast_channel * | chan, |
int | value | ||
) |
Definition at line 503 of file channel_internal_api.c.
References value, and ast_channel::vstreamid.
Referenced by __ast_channel_alloc_ap(), ast_readvideo_callback(), and filestream_close().
struct timeval * ast_channel_whentohangup | ( | struct ast_channel * | chan | ) |
Definition at line 929 of file channel_internal_api.c.
References ast_channel::whentohangup.
Referenced by __ast_pbx_run(), ast_channel_cmpwhentohangup_tv(), ast_check_hangup(), ast_var_channels_table(), ast_waitfor_nandfds(), begin_dial_prerun(), dial_exec_full(), generate_status(), handle_showchan(), ring_entry(), serialize_showchan(), timeout_read(), and timeout_write().
void ast_channel_whentohangup_set | ( | struct ast_channel * | chan, |
struct timeval * | value | ||
) |
Definition at line 969 of file channel_internal_api.c.
References value, and ast_channel::whentohangup.
Referenced by ast_channel_setwhentohangup_tv(), and dial_exec_full().
struct ast_format * ast_channel_writeformat | ( | struct ast_channel * | chan | ) |
Definition at line 861 of file channel_internal_api.c.
References ast_channel::writeformat.
Referenced by adsi_transmit_message_full(), agent_login_exec(), alarmreceiver_exec(), ast_bridge_channel_restore_formats(), ast_channel_start_silence_generator(), ast_channel_yank(), ast_openstream_full(), ast_read_generator_actions(), ast_set_write_format_path(), ast_streamfile(), ast_write_stream(), audiosocket_exec(), bridge_channel_internal_join(), broadcast_exec(), chan_pjsip_read_stream(), chan_pjsip_write_stream(), channel_do_masquerade(), chanspy_exec(), dahdiscan_exec(), extenspy_exec(), fax_gateway_framehook(), filehelper(), func_channel_read(), generate_status(), generator_force(), generic_fax_exec(), handle_showchan(), handle_streamfile(), jingle_read(), jingle_write(), linear_alloc(), moh_alloc(), moh_files_alloc(), moh_files_write_format_change(), mp3_exec(), ooh323_rtp_read(), ooh323_set_rtp_peer(), ooh323_set_write_format(), ooh323_write(), playtones_alloc(), send_waveform_to_channel(), serialize_showchan(), set_caps(), socket_process_helper(), test_vm_api_create_mock_channel(), tonepair_alloc(), unistim_rtp_read(), and unistim_write().
struct ast_trans_pvt * ast_channel_writetrans | ( | const struct ast_channel * | chan | ) |
Definition at line 762 of file channel_internal_api.c.
References ast_channel::writetrans.
Referenced by __ast_read(), ast_channel_destructor(), ast_set_write_format_path(), ast_write_stream(), chan_pjsip_write_stream(), free_translation(), generate_status(), handle_showchan(), and serialize_showchan().
void ast_channel_writetrans_set | ( | struct ast_channel * | chan, |
struct ast_trans_pvt * | value | ||
) |
Definition at line 766 of file channel_internal_api.c.
References value, and ast_channel::writetrans.
Referenced by ast_set_write_format_path(), and free_translation().
struct ast_tone_zone * ast_channel_zone | ( | const struct ast_channel * | chan | ) |
Definition at line 746 of file channel_internal_api.c.
References ast_channel::zone.
Referenced by ast_app_dtget(), ast_channel_destructor(), ast_control_tone(), ast_var_channels_table(), dial_handle_playtones(), func_channel_read(), func_channel_write_real(), handle_playtones(), indicate_data_internal(), pbx_builtin_waitexten(), play_dialtone(), read_exec(), and readexten_exec().
void ast_channel_zone_set | ( | struct ast_channel * | chan, |
struct ast_tone_zone * | value | ||
) |
Definition at line 750 of file channel_internal_api.c.
References value, and ast_channel::zone.
Referenced by ast_channel_destructor(), chan_pjsip_new(), and func_channel_write_real().
|
static |
Definition at line 643 of file channel_internal_api.c.
References ast_assert, AST_MEDIA_TYPE_END, AST_MEDIA_TYPE_UNKNOWN, ast_stream_topology_get_first_stream_by_type(), ast_channel::default_streams, NULL, ast_channel::stream_topology, and type.
Referenced by ast_channel_internal_set_stream_topology(), and ast_channel_internal_swap_stream_topology().
|
static |
Definition at line 1266 of file channel_internal_api.c.
References ast_str_append(), ast_str_strlen(), ast_control_pvt_cause_code::chan_name, and str.
Referenced by ast_channel_dialed_causes_channels().
DEFINE_STRINGFIELD_GETTER_FOR | ( | accountcode | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | call_forward | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | dialcontext | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | hangupsource | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | language | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | latest_musicclass | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | musicclass | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | name | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | parkinglot | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | peeraccount | ) |
DEFINE_STRINGFIELD_GETTER_FOR | ( | userfield | ) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | accountcode | , |
1 | , | ||
0 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE | |||
) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | hangupsource | , |
0 | , | ||
0 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_HANGUP | |||
) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | language | , |
1 | , | ||
0 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE | |||
) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | name | , |
0 | , | ||
1 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE | |||
) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | peeraccount | , |
1 | , | ||
0 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_PEER | |||
) |
DEFINE_STRINGFIELD_SETTERS_AND_INVALIDATE_FOR | ( | userfield | , |
0 | , | ||
0 | , | ||
AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE | |||
) |
DEFINE_STRINGFIELD_SETTERS_FOR | ( | call_forward | , |
0 | |||
) |
DEFINE_STRINGFIELD_SETTERS_FOR | ( | dialcontext | , |
0 | |||
) |
DEFINE_STRINGFIELD_SETTERS_FOR | ( | latest_musicclass | , |
0 | |||
) |
DEFINE_STRINGFIELD_SETTERS_FOR | ( | musicclass | , |
0 | |||
) |
DEFINE_STRINGFIELD_SETTERS_FOR | ( | parkinglot | , |
0 | |||
) |
|
static |
Comparison function for pvt cause code frames.
Definition at line 1323 of file channel_internal_api.c.
References ast_strdupa, ast_tech_to_upper(), ast_control_pvt_cause_code::chan_name, CMP_MATCH, CMP_STOP, and str.
Referenced by __ast_channel_internal_alloc_with_initializers().
|
static |
Hash function for pvt cause code frames.
Definition at line 1316 of file channel_internal_api.c.
References ast_str_hash(), ast_strdupa, ast_tech_to_upper(), and ast_control_pvt_cause_code::chan_name.
Referenced by __ast_channel_internal_alloc_with_initializers().
|
static |
Definition at line 1590 of file channel_internal_api.c.
Referenced by ast_channel_internal_errno(), and ast_channel_internal_errno_set().
|
static |
The monotonically increasing integer counter for channel uniqueids.
Definition at line 227 of file channel_internal_api.c.
Referenced by __ast_channel_internal_alloc_with_initializers().