![]() |
Home page |
Mailing list |
Docs
Collaboration diagram for ast_channel:Asterisk developer's documentation :: Codename Pineapple
ast_channel Struct Reference
#include <channel.h>

Definition at line 374 of file channel.h.
Public Member Functions | |
| AST_DECLARE_STRING_FIELDS (AST_STRING_FIELD(name);AST_STRING_FIELD(language);AST_STRING_FIELD(musicclass);AST_STRING_FIELD(accountcode);AST_STRING_FIELD(call_forward);AST_STRING_FIELD(uniqueid);) | |
| AST_LIST_ENTRY (ast_channel) chan_list | |
| AST_LIST_HEAD_NOLOCK (datastores, ast_datastore) datastores | |
| Data stores on the channel. | |
| AST_LIST_HEAD_NOLOCK (, ast_frame) readq | |
Data Fields | |
| ast_channel * | _bridge |
| Who are we bridged to, if we're bridged. Who is proxying for us, if we are proxied (i.e. chan_agent). Do not access directly, use ast_bridged_channel(chan). | |
| int | _softhangup |
| enum ast_channel_state | _state |
| enum ast_channel_adsicpe | adsicpe |
| int | alertpipe [2] |
| int | amaflags |
| const char * | appl |
| pthread_t | blocker |
| const char * | blockproc |
| ast_group_t | callgroup |
| ast_cdr * | cdr |
| int | cdrflags |
| ast_callerid | cid |
| char | context [AST_MAX_CONTEXT] |
| const char * | data |
| char | dialcontext [AST_MAX_CONTEXT] |
| timeval | dtmf_begin_tv |
| ast_frame | dtmff |
| char | dtmfq [AST_MAX_EXTENSION] |
| char | emulate_dtmf_digit |
| unsigned int | emulate_dtmf_duration |
| char | exten [AST_MAX_EXTENSION] |
| int | fdno |
| int | fds [AST_MAX_FDS] |
| File descriptor for channel -- Drivers will poll on these file descriptors, so at least one must be non -1. See File descriptors. | |
| unsigned int | fin |
| unsigned int | flags |
| unsigned int | fout |
| ast_generator * | generator |
| void * | generatordata |
| int | hangupcause |
| unsigned long | insmpl |
| ast_jb | jb |
| ast_mutex_t | lock |
| char | macrocontext [AST_MAX_CONTEXT] |
| char | macroexten [AST_MAX_EXTENSION] |
| int | macropriority |
| ast_channel * | masq |
| ast_channel * | masqr |
| ast_channel_monitor * | monitor |
| void * | music_state |
| int | nativeformats |
| int | oldwriteformat |
| unsigned long | outsmpl |
| ast_pbx * | pbx |
| ast_group_t | pickupgroup |
| int | priority |
| int | rawreadformat |
| int | rawwriteformat |
| int | readformat |
| ast_trans_pvt * | readtrans |
| int | rings |
| sched_context * | sched |
| ast_channel_spy_list * | spies |
| ast_filestream * | stream |
| int | streamid |
| const struct ast_channel_tech * | tech |
| Technology (point to channel driver). | |
| void * | tech_pvt |
| Private data used by the technology driver. | |
| void * | timingdata |
| int | timingfd |
| int(* | timingfunc )(void *data) |
| unsigned short | transfercapability |
| varshead | varshead |
| ast_filestream * | vstream |
| int | vstreamid |
| time_t | whentohangup |
| ast_channel_whisper_buffer * | whisper |
| int | writeformat |
| ast_trans_pvt * | writetrans |
| ind_tone_zone * | zone |
|
|
|
|
|
For easy linking |
|
||||||||||||
|
Data stores on the channel.
|
|
|
|
|
|
Who are we bridged to, if we're bridged. Who is proxying for us, if we are proxied (i.e. chan_agent). Do not access directly, use ast_bridged_channel(chan).
Definition at line 400 of file channel.h. Referenced by action_agents(), action_status(), agent_bridgedchannel(), agent_hangup(), agent_read(), ast_bridged_channel(), ast_channel_bridge(), ast_channel_masquerade(), check_bridge(), and handle_showchan(). |
|
|
Whether or not we have been hung up... Do not set this value directly, use ast_softhangup() Definition at line 405 of file channel.h. Referenced by __ast_read(), __oh323_update_info(), agi_exec(), ast_autoservice_stop(), ast_check_hangup(), ast_dsp_process(), ast_feature_request_and_dial(), ast_queue_hangup(), ast_softhangup_nolock(), ast_write(), attempt_transfer(), autoservice_run(), builtin_atxfer(), check_bridge(), cleanup_connection(), collect_digits(), dundi_lookup_internal(), eagi_exec(), hangup_connection(), iax2_destroy(), iax2_predestroy(), waitstream_core(), zt_handle_event(), and zt_indicate(). |
|
|
|
Whether or not ADSI is detected on CPE Definition at line 443 of file channel.h. Referenced by __adsi_transmit_messages(), ast_adsi_available(), ast_adsi_transmit_message_full(), ast_iax2_new(), begin_dial(), gtalk_new(), iax2_call(), jingle_new(), mgcp_new(), sip_new(), and skinny_new(). |
|
|
Definition at line 465 of file channel.h. Referenced by __ast_read(), ast_channel_free(), ast_do_masquerade(), ast_queue_frame(), restore_channel(), and update_features(). |
|
|
Set BEFORE PBX is started to determine AMA flags Definition at line 441 of file channel.h. Referenced by __ast_pbx_run(), __oh323_new(), ast_cdr_init(), ast_iax2_new(), gtalk_new(), handle_chanlist(), jingle_new(), mgcp_new(), sip_new(), and skinny_new(). |
|
|
Current application Definition at line 412 of file channel.h. Referenced by ast_bridge_call(), ast_bridge_call_thread(), begin_dial(), handle_chanlist(), and pbx_exec(). |
|
|
If anyone is blocking, this is them Definition at line 408 of file channel.h. Referenced by __ast_read(), ast_hangup(), ast_queue_frame(), and ast_softhangup_nolock(). |
|
|
Procedure causing blocking Definition at line 410 of file channel.h. Referenced by ast_hangup(). |
|
|
Call group for call pickups Definition at line 460 of file channel.h. Referenced by ast_pickup_call(), gtalk_new(), jingle_new(), mgcp_new(), read_config(), sip_new(), and skinny_new(). |
|
|
|
Call Detail Record Flags Definition at line 403 of file channel.h. Referenced by begin_dial(), features_call(), and local_call(). |
|
|
|
|
Data passed to current application Definition at line 413 of file channel.h. Referenced by action_originate(), ast_bridge_call(), ast_bridge_call_thread(), begin_dial(), handle_chanlist(), handle_verbose(), and pbx_exec(). |
|
|
Dial: Extension context that we were called from |
|
|
The time that an in process digit began Definition at line 483 of file channel.h. Referenced by __ast_read(). |
|
|
DTMF frame Definition at line 430 of file channel.h. Referenced by __ast_read(), gtalk_digit(), and jingle_digit(). |
|
|
Any/all queued DTMF characters Definition at line 429 of file channel.h. Referenced by __ast_read(). |
|
|
Digit being emulated Definition at line 481 of file channel.h. Referenced by __ast_read(). |
|
|
Number of ms left to emulate DTMF for Definition at line 482 of file channel.h. Referenced by __ast_read(). |
|
|
|
Which fd had an event detected on Definition at line 414 of file channel.h. Referenced by __ast_read(), agent_read(), oh323_read(), sip_rtp_read(), and skinny_rtp_read(). |
|
|
File descriptor for channel -- Drivers will poll on these file descriptors, so at least one must be non -1. See File descriptors.
Definition at line 391 of file channel.h. Referenced by __ast_read(), __oh323_new(), __oh323_rtp_create(), __oh323_update_info(), __zt_exception(), alsa_new(), ast_deactivate_generator(), do_parking_thread(), gtalk_new(), handle_showchan(), jingle_new(), mgcp_new(), nbs_new(), oss_new(), p2p_callback_disable(), phone_call(), restore_channel(), setformat(), sip_new(), skinny_new(), start_rtp(), swap_subs(), update_features(), and zt_bridge(). |
|
|
Frames in counters. The high bit is a debug mask, so the counter is only in the remaining bits Definition at line 453 of file channel.h. Referenced by __ast_read(), handle_core_set_debug_channel(), and handle_showchan(). |
|
|
channel flags of AST_FLAG_ type Definition at line 462 of file channel.h. Referenced by ast_feature_interpret(). |
|
|
Frames out counters. The high bit is a debug mask, so the counter is only in the remaining bits Definition at line 455 of file channel.h. Referenced by ast_write(), handle_core_set_debug_channel(), and handle_showchan(). |
|
|
Current active data generator Definition at line 395 of file channel.h. Referenced by __ast_read(), ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_senddigit_end(), and generator_force(). |
|
|
Current generator data if there is any Definition at line 394 of file channel.h. Referenced by __ast_read(), ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_quiet_chan(), ast_tonepair(), ast_write(), and generator_force(). |
|
|
Why is the channel hanged up. See causes.h Definition at line 457 of file channel.h. Referenced by __ast_request_and_dial(), __attempt_transmit(), __oh323_update_info(), __transmit_response(), ast_hangup(), ast_pbx_outgoing_exten(), gtalk_new(), handle_invite_replaces(), handle_request_invite(), handle_request_refer(), handle_response(), hangup_connection(), iax2_hangup(), jingle_new(), misdn_call(), misdn_hangup(), oh323_hangup(), pbx_builtin_hangup(), pbx_retrieve_variable(), send_cause2ast(), sip_hangup(), sip_new(), sip_park(), sip_park_thread(), ss_thread(), transmit_request_with_auth(), zt_hangup(), and zt_indicate(). |
|
|
Track the read/written samples for monitor use Definition at line 450 of file channel.h. Referenced by __ast_read(), and ast_write(). |
|
|
The jitterbuffer state Definition at line 479 of file channel.h. Referenced by ast_jb_configure(), ast_jb_destroy(), ast_jb_do_usecheck(), 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(). |
|
|
Lock, can be used to lock a channel for some operations - see ast_channel_lock() Definition at line 409 of file channel.h. Referenced by action_sendtext(), alsa_call(), ast_channel_free(), ast_do_masquerade(), attempt_transfer(), check_bridge(), cleanup_connection(), complete_ch_helper(), console_answer(), console_dial(), console_hangup(), console_sendtext(), grab_owner(), iax2_destroy(), local_queue_frame(), mgcp_queue_frame(), mgcp_queue_hangup(), wakeup_sub(), zap_queue_frame(), zt_bridge(), and zt_handle_event(). |
|
|
Macro: Current non-macro context. See app_macro.c Definition at line 435 of file channel.h. Referenced by ast_cdr_update(), channel_find_locked(), get_also_info(), get_refer_info(), process_ast_dsp(), real_ctx(), and zt_read(). |
|
|
Macro: Current non-macro extension. See app_macro.c Definition at line 436 of file channel.h. Referenced by ast_cdr_update(), channel_find_locked(), dundi_exec(), and dundi_helper(). |
|
|
Macro: Current non-macro priority. See app_macro.c |
|
|
Channel that will masquerade as us Definition at line 401 of file channel.h. Referenced by __ast_read(), ast_channel_masquerade(), ast_do_masquerade(), ast_hangup(), ast_write(), bridge_native_loop(), and bridge_p2p_loop(). |
|
|
Who we are masquerading as Definition at line 402 of file channel.h. Referenced by ast_channel_masquerade(), ast_do_masquerade(), ast_hangup(), ast_write(), bridge_native_loop(), and bridge_p2p_loop(). |
|
|
Channel monitoring Definition at line 448 of file channel.h. Referenced by __agent_start_monitoring(), __ast_read(), ast_channel_free(), ast_monitor_change_fname(), ast_monitor_set_state(), ast_monitor_setjoinfiles(), ast_monitor_start(), ast_monitor_stop(), ast_write(), and builtin_automonitor(). |
|
|
Music State Definition at line 393 of file channel.h. Referenced by ast_channel_free(), ast_moh_files_next(), local_ast_moh_cleanup(), local_ast_moh_stop(), moh_files_alloc(), moh_files_generator(), and moh_files_release(). |
|
|
Kinds of data this channel can natively handle Definition at line 467 of file channel.h. Referenced by __ast_read(), __oh323_new(), __oh323_update_info(), __sip_show_channels(), agent_call(), agent_new(), alsa_new(), ast_channel_bridge(), ast_channel_make_compatible_helper(), ast_generic_bridge(), ast_iax2_new(), ast_openvstream(), ast_streamfile(), begin_dial(), builtin_atxfer(), free_translation(), gtalk_new(), gtalk_rtp_read(), gtalk_write(), handle_showchan(), iax2_call(), iax2_request(), jingle_new(), jingle_rtp_read(), jingle_write(), local_new(), mgcp_new(), mgcp_rtp_read(), mgcp_write(), nbs_new(), oh323_rtp_read(), oh323_write(), oss_new(), set_format(), setup_rtp_connection(), sip_new(), sip_rtp_read(), sip_show_channel(), sip_write(), skinny_new(), skinny_rtp_read(), skinny_write(), and update_features(). |
|
|
Original writer format Definition at line 420 of file channel.h. Referenced by ast_openstream_full(), and ast_stopstream(). |
|
|
Track the read/written samples for monitor use Definition at line 451 of file channel.h. Referenced by __ast_read(), and ast_write(). |
|
|
PBX private structure for this channel Definition at line 440 of file channel.h. Referenced by __ast_pbx_run(), action_status(), ast_app_dtget(), ast_app_getdata(), ast_async_goto(), ast_channel_free(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pickup_call(), builtin_blindtransfer(), collect_digits(), handle_getoption(), ivr_dispatch(), read_newoption(), and zt_handle_event(). |
|
|
Pickup group - which calls groups can be picked up? Definition at line 461 of file channel.h. Referenced by ast_pickup_call(), gtalk_new(), jingle_new(), mgcp_new(), read_config(), sip_new(), and skinny_new(). |
|
|
Dialplan: Current extension priority Definition at line 434 of file channel.h. Referenced by __ast_pbx_run(), __ast_request_and_dial(), __oh323_new(), action_originate(), action_redirect(), action_status(), agent_new(), ast_explicit_goto(), ast_masq_park_call(), ast_parseable_goto(), async_wait(), builtin_atxfer(), builtin_parkcall(), do_parking_thread(), gtalk_new(), handle_chanlist(), iax_park(), jingle_new(), local_new(), mgcp_new(), park_call_exec(), pbx_builtin_background(), pbx_builtin_goto(), pbx_extension_helper(), pbx_retrieve_variable(), set_c_e_p(), set_ext_pri(), setup_env(), sip_new(), sip_park(), and skinny_new(). |
|
|
Raw read format Definition at line 472 of file channel.h. Referenced by __oh323_new(), agent_new(), ast_rtp_bridge(), ast_set_read_format(), free_translation(), gtalk_new(), jingle_new(), local_new(), mgcp_new(), nbs_new(), phone_setup(), sip_new(), skinny_new(), and zt_read(). |
|
|
Raw write format Definition at line 473 of file channel.h. Referenced by __oh323_new(), agent_new(), ast_prod(), ast_rtp_bridge(), ast_set_write_format(), ast_write(), free_translation(), gtalk_new(), jingle_new(), local_new(), mgcp_new(), nbs_new(), sip_new(), and skinny_new(). |
|
|
Requested read format Definition at line 468 of file channel.h. Referenced by __oh323_new(), __oh323_update_info(), agent_new(), alsa_new(), ast_adsi_transmit_message_full(), ast_async_goto(), ast_do_masquerade(), ast_iax2_new(), ast_masq_park_call(), ast_set_read_format(), builtin_atxfer(), eagi_exec(), gtalk_new(), gtalk_rtp_read(), gtalk_write(), handle_recordfile(), handle_showchan(), iax2_request(), iax_park(), jingle_new(), jingle_rtp_read(), jingle_write(), local_new(), mgcp_new(), mgcp_rtp_read(), mgcp_write(), nbs_new(), oh323_rtp_read(), oh323_write(), oss_new(), setup_rtp_connection(), sip_new(), sip_park(), sip_rtp_read(), sip_write(), skinny_new(), skinny_rtp_read(), skinny_write(), and update_features(). |
|
|
Read translation path Definition at line 471 of file channel.h. Referenced by __ast_read(), ast_channel_free(), ast_set_read_format(), free_translation(), and handle_showchan(). |
|
|
Number of rings so far Definition at line 427 of file channel.h. Referenced by __oh323_new(), cb_events(), gtalk_new(), handle_showchan(), jingle_new(), mgcp_new(), nbs_new(), phone_answer(), sip_new(), skinny_new(), zt_handle_event(), and zt_read(). |
|
|
Schedule context Definition at line 415 of file channel.h. Referenced by ast_channel_free(), ast_closestream(), ast_hangup(), and waitstream_core(). |
|
|
Chan Spy stuff Definition at line 475 of file channel.h. Referenced by __ast_read(), ast_channel_spy_add(), |