Fri May 26 01:51:05 2006

Asterisk developer's documentation


ast_channel Struct Reference

#include <channel.h>

Collaboration diagram for ast_channel:

Collaboration graph
[legend]

Data Fields

ast_channel_bridge
int _softhangup
int _state
char accountcode [AST_MAX_ACCOUNT_CODE]
int adsicpe
int alertpipe [2]
int amaflags
char * appl
pthread_t blocker
const char * blockproc
char call_forward [AST_MAX_EXTENSION]
unsigned int callgroup
ast_cdrcdr
int cdrflags
ast_callerid cid
char context [AST_MAX_CONTEXT]
char * data
ast_frame dtmff
char dtmfq [AST_MAX_EXTENSION]
char exten [AST_MAX_EXTENSION]
int fdno
int fds [AST_MAX_FDS]
unsigned int fin
unsigned int flags
unsigned int fout
ast_generatorgenerator
void * generatordata
int hangupcause
unsigned long insmpl
char language [MAX_LANGUAGE]
ast_mutex_t lock
char macrocontext [AST_MAX_CONTEXT]
char macroexten [AST_MAX_EXTENSION]
int macropriority
ast_channelmasq
ast_channelmasqr
ast_channel_monitormonitor
void * music_state
char musicclass [MAX_MUSICCLASS]
char name [AST_CHANNEL_NAME]
int nativeformats
ast_channelnext
int oldwriteformat
unsigned long outsmpl
ast_pbxpbx
unsigned int pickupgroup
int priority
int rawreadformat
int rawwriteformat
int readformat
ast_framereadq
ast_trans_pvtreadtrans
int rings
sched_contextsched
ast_channel_spy_listspies
ast_filestreamstream
int streamid
const struct ast_channel_techtech
void * tech_pvt
void * timingdata
int timingfd
int(* timingfunc )(void *data)
unsigned short transfercapability
const char * type
char uniqueid [32]
varshead varshead
ast_filestreamvstream
int vstreamid
time_t whentohangup
int writeformat
ast_trans_pvtwritetrans
tone_zonezone

Detailed Description

Main Channel structure associated with a channel. This is the side of it mostly used by the pbx and call management.

Definition at line 252 of file channel.h.


Field Documentation

struct ast_channel* _bridge
 

Who are we bridged to, if we're bridged Do not access directly, use ast_bridged_channel(chan)

Definition at line 280 of file channel.h.

Referenced by action_agents(), action_status(), agent_bridgedchannel(), agent_hangup(), agent_read(), ast_bridged_channel(), ast_channel_bridge(), check_bridge(), do_chanreads(), and handle_showchan().

int _softhangup
 

Whether or not we have been hung up... Do not set this value directly, use ast_softhangup

Definition at line 289 of file channel.h.

Referenced by __oh323_update_info(), agi_exec(), ast_autoservice_stop(), ast_check_hangup(), ast_dsp_process(), ast_feature_request_and_dial(), ast_queue_hangup(), ast_read(), ast_softhangup_nolock(), ast_waitstream(), ast_waitstream_exten(), ast_waitstream_fr(), ast_waitstream_full(), ast_write(), attempt_transfer(), autoservice_run(), builtin_atxfer(), check_bridge(), check_goto_on_transfer(), cleanup_connection(), conf_play(), dundi_lookup_internal(), eagi_exec(), hangup_connection(), iax2_destroy(), iax2_predestroy(), macro_exec(), run_ras(), zt_handle_event(), and zt_indicate().

int _state
 

State of line -- Don't write directly, use ast_setstate

Definition at line 325 of file channel.h.

Referenced by __ast_request_and_dial(), __login_exec(), action_status(), agent_hangup(), agent_read(), agi_exec_full(), alarmreceiver_exec(), alsa_read(), app_exec(), ast_answer(), ast_async_goto(), ast_cdr_init(), ast_control_streamfile(), ast_do_masquerade(), ast_parse_device_state(), ast_pbx_outgoing_exten(), ast_pickup_call(), ast_prod(), ast_quiet_chan(), ast_read(), ast_serialize_showchan(), ast_setstate(), async_wait(), attempt_transfer(), auth_exec(), available(), background_detect_exec(), bestdata_write(), builtin_atxfer(), check_goto_on_transfer(), conf_exec(), count_exec(), datetime_exec(), directory_exec(), disa_exec(), do_chanreads(), do_monitor(), handle_answer(), handle_chanlist(), handle_channelstatus(), handle_request(), handle_request_invite(), handle_response_invite(), handle_showchan(), iax2_call(), ices_exec(), mgcp_answer(), mgcp_call(), milliwatt_exec(), misdn_call(), misdn_hangup(), modem_call(), modem_write(), monitor_handle_owned(), nbs_call(), nbs_xwrite(), oh323_answer(), oh323_call(), oh323_hangup(), oh323_indicate(), oss_read(), park_call_exec(), park_exec(), parkandannounce_exec(), pbx_builtin_answer(), pbx_builtin_background(), phone_call(), phone_exception(), phone_write(), playback_exec(), privacy_exec(), read_exec(), record_exec(), rpt(), sayunixtime_exec(), send_waveform_to_channel(), sip_answer(), sip_call(), sip_hangup(), sip_indicate(), sip_transfer(), sip_write(), skel_exec(), skinny_answer(), skinny_call(), skinny_indicate(), testclient_exec(), testserver_exec(), vm_exec(), vm_execmain(), vpb_answer(), vpb_fixup(), vpb_indicate(), vpb_write(), wait_for_answer(), zapateller_exec(), zapras_exec(), zt_answer(), zt_bridge(), zt_call(), zt_digit(), zt_handle_event(), zt_hangup(), zt_indicate(), and zt_read().

char accountcode[AST_MAX_ACCOUNT_CODE]
 

Account code for billing

Definition at line 360 of file channel.h.

Referenced by __oh323_new(), action_status(), ast_cdr_init(), ast_cdr_setaccount(), ast_cdr_update(), ast_iax2_new(), features_call(), handle_chanlist(), local_call(), mgcp_new(), pbx_retrieve_variable(), rpt_call(), setup_env(), sip_new(), skinny_new(), wait_for_answer(), and zt_new().

int adsicpe
 

Whether or not ADSI is detected on CPE

Definition at line 364 of file channel.h.

Referenced by __adsi_transmit_messages(), adsi_available(), adsi_transmit_message_full(), ast_iax2_new(), iax2_call(), mgcp_new(), ring_entry(), sip_new(), skinny_new(), and zt_new().

int alertpipe[2]
 

Definition at line 401 of file channel.h.

Referenced by ast_channel_free(), ast_do_masquerade(), ast_queue_frame(), ast_read(), restore_channel(), and update_features().

int amaflags
 

Set BEFORE PBX is started to determine AMA flags

Definition at line 358 of file channel.h.

Referenced by __ast_pbx_run(), __oh323_new(), ast_cdr_init(), ast_iax2_new(), handle_chanlist(), mgcp_new(), sip_new(), skinny_new(), and zt_new().

char* appl
 

Current application

Definition at line 300 of file channel.h.

Referenced by ast_bridge_call(), ast_bridge_call_thread(), ast_serialize_showchan(), handle_chanlist(), pbx_exec(), ring_entry(), and rpt().

pthread_t blocker
 

If anyone is blocking, this is them

Definition at line 293 of file channel.h.

Referenced by ast_hangup(), ast_queue_frame(), ast_read(), and ast_softhangup_nolock().

const char* blockproc
 

Procedure causing blocking

Definition at line 297 of file channel.h.

Referenced by ast_hangup(), and ast_serialize_showchan().

char call_forward[AST_MAX_EXTENSION]
 

Where to forward to if asked to dial on this interface

Definition at line 366 of file channel.h.

Referenced by mgcp_new(), parse_moved_contact(), skinny_new(), wait_for_answer(), and zt_new().

unsigned int callgroup
 

Definition at line 391 of file channel.h.

Referenced by ast_pickup_call(), ast_serialize_showchan(), mgcp_new(), misdn_new(), sip_new(), skinny_new(), vpb_new(), and zt_new().

struct ast_cdr* cdr
 

Call Detail Record

Definition at line 362 of file channel.h.

Referenced by __agent_start_monitoring(), __ast_pbx_run(), __ast_request_and_dial(), __login_exec(), action_status(), agentmonitoroutgoing_exec(), appendcdruserfield_exec(), ast_answer(), ast_bridge_call(), ast_bridge_call_thread(), ast_cdr_appenduserfield(), ast_cdr_fork(), ast_cdr_setaccount(), ast_cdr_setamaflags(), ast_cdr_setuserfield(), ast_cdr_update(), ast_hangup(), ast_pbx_outgoing_app(), ast_pbx_outgoing_cdr_failed(), ast_pbx_outgoing_exten(), ast_read(), ast_serialize_showchan(), ast_set_callerid(), attempt_transfer(), builtin_function_cdr_read(), builtin_function_cdr_write(), custom_log(), dial_exec_full(), forkcdr_exec(), handle_chanlist(), handle_request_info(), handle_showchan(), nocdr_exec(), ospfinished_exec(), pbx_builtin_resetcdr(), pbx_exec(), pickup_exec(), ring_entry(), setcdruserfield_exec(), start_monitor_exec(), and wait_for_answer().

int cdrflags
 

Call Detail Record Flags

Definition at line 286 of file channel.h.

Referenced by features_call(), local_call(), and wait_for_answer().

struct ast_callerid cid
 

Definition at line 336 of file channel.h.

Referenced by __ast_pbx_run(), __login_exec(), __oh323_new(), action_agents(), action_status(), agent_call(), agentmonitoroutgoing_exec(), ast_cdr_init(), ast_cdr_setcid(), ast_cdr_update(), ast_channel_bridge(), ast_channel_free(), ast_iax2_new(), ast_modem_new(), ast_parseable_goto(), ast_serialize_showchan(), ast_set_callerid(), ast_setstate(), ast_waitstream_exten(), bestdata_handle_escape(), build_rpid(), builtin_automonitor(), builtin_blindtransfer(), callerid_read(), callerid_write(), cb_events(), chan_misdn_trace_call(), console_transfer(), copy_message(), dial_exec_full(), do_parking_thread(), features_call(), find_matching_endwhile(), forward_message(), get_callerid(), get_callerid_ast(), handle_chanlist(), handle_setpriority(), handle_showchan(), i4l_dial(), iax2_call(), join_queue(), launch_page(), leave_voicemail(), local_call(), lookupblacklist_exec(), lookupcidname_exec(), macro_exec(), manager_parking_status(), mgcp_call(), mgcp_hangup(), mgcp_new(), mgcp_ss(), misdn_call(), misdn_new(), monitor_handle_owned(), oh323_call(), osplookup_exec(), oss_call(), park_exec(), parkandannounce_exec(), pbx_retrieve_variable(), phone_call(), privacy_exec(), queue_exec(), ring_entry(), rpt_call(), senddialevent(), setcallerid_pres_exec(), setrdnis_exec(), setup_env(), sip_call(), sip_new(), skinny_call(), skinny_indicate(), skinny_new(), skinny_ss(), sms_exec(), ss_thread(), valid_exit(), wait_for_answer(), write_metadata(), zapateller_exec(), zt_call(), zt_handle_event(), zt_new(), and zt_read().

char context[AST_MAX_CONTEXT]
 

Current extension context

Definition at line 339 of file channel.h.

Referenced by __ast_goto_if_exists(), __ast_pbx_run(), __ast_request_and_dial(), __oh323_new(), action_status(), agent_new(), agentmonitoroutgoing_exec(), alsa_new(), aqm_exec(), ast_async_goto(), ast_cdr_init(), ast_cdr_update(), ast_explicit_goto(), ast_iax2_new(), ast_masq_park_call(), ast_modem_new(), ast_parseable_goto(), ast_pbx_outgoing_exten(), ast_serialize_showchan(), ast_waitstream_exten(), async_wait(), builtin_atxfer(), builtin_blindtransfer(), chanavail_exec(), check_availability(), conf_run(), console_transfer(), controlplayback_exec(), dial_exec_full(), dialout(), do_directory(), do_immediate_setup(), do_parking_thread(), enumlookup_exec(), find_matching_endwhile(), forward_message(), get_cid_name(), get_exec(), gosub_exec(), handle_chanlist(), handle_setcontext(), handle_setpriority(), hasvoicemail_exec(), iax2_call(), iax_park(), leave_voicemail(), local_new(), lookupblacklist_exec(), macro_exec(), md5check_exec(), mgcp_new(), mgcp_ss(), misdn_call(), misdn_hangup(), misdn_new(), misdn_tx2ast_frm(), monitor_handle_owned(), nbs_new(), onedigit_goto(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), oss_new(), parkandannounce_exec(), pbx_builtin_background(), pbx_builtin_goto(), pbx_extension_helper(), pbx_retrieve_variable(), pqm_exec(), privacy_exec(), random_exec(), ring_entry(), rpt_call(), rqm_exec(), sendimage_exec(), sendtext_exec(), sendurl_exec(), setup_env(), sip_getheader(), sip_new(), sip_park(), skinny_new(), skinny_ss(), ss_thread(), system_exec_helper(), transfer_exec(), txtcidname_exec(), upqm_exec(), vm_box_exists(), vpb_new(), wait_for_answer(), zt_new(), and zt_read().

char* data
 

Data passed to current application

Definition at line 302 of file channel.h.

Referenced by ast_bridge_call(), ast_bridge_call_thread(), ast_serialize_showchan(), handle_chanlist(), handle_verbose(), pbx_exec(), retrydial_exec(), ring_entry(), and rpt().

struct ast_frame dtmff
 

DTMF frame

Definition at line 353 of file channel.h.

Referenced by ast_read().

char dtmfq[AST_MAX_EXTENSION]
 

Any/all queued DTMF characters

Definition at line 351 of file channel.h.

Referenced by ast_read().

char exten[AST_MAX_EXTENSION]
 

Current extension number

Definition at line 347 of file channel.h.

Referenced by __ast_pbx_run(), __ast_request_and_dial(), __oh323_new(), action_status(), agent_new(), alsa_new(), ast_async_goto(), ast_cdr_init(), ast_cdr_update(), ast_explicit_goto(), ast_iax2_new(), ast_masq_park_call(), ast_modem_new(), ast_parseable_goto(), ast_pbx_outgoing_exten(), ast_serialize_showchan(), async_wait(), builtin_atxfer(), builtin_blindtransfer(), cb_events(), dial_exec_full(), dialout(), do_immediate_setup(), do_parking_thread(), dundi_exec(), dundi_helper(), find_matching_endwhile(), forward_message(), get_cid_name(), gosub_exec(), handle_chanlist(), handle_setextension(), handle_setpriority(), iax_park(), leave_voicemail(), local_new(), macro_exec(), mgcp_new(), mgcp_ss(), misdn_call(), misdn_digit(), misdn_hangup(), misdn_indication(), misdn_new(), misdn_tx2ast_frm(), monitor_handle_owned(), nbs_new(), oss_new(), park_call_exec(), parkandannounce_exec(), pbx_builtin_background(), pbx_builtin_goto(), pbx_extension_helper(), pbx_retrieve_variable(), print_bc_info(), random_exec(), ring_entry(), rpt_call(), setup_env(), sip_getheader(), sip_new(), sip_park(), skinny_indicate(), skinny_new(), skinny_ss(), ss_thread(), vpb_new(), wait_for_answer(), zt_new(), and zt_read().

int fdno
 

Which fd had an event detected on

Definition at line 305 of file channel.h.

Referenced by agent_read(), ast_read(), do_parking_thread(), and sip_rtp_read().

int fds[AST_MAX_FDS]
 

File descriptor for channel -- Drivers will poll on these file descriptors, so at least one must be non -1.

Definition at line 267 of file channel.h.

Referenced by __oh323_new(), __zt_exception(), alsa_new(), ast_channel_alloc(), ast_modem_new(), ast_serialize_showchan(), conf_run(), do_parking_thread(), flash_exec(), handle_showchan(), mgcp_new(), misdn_new(), modem_write(), nbs_new(), oss_new(), phone_call(), rbi_out(), restore_channel(), rmt_telem_finish(), rpt(), rpt_call(), rpt_tele_thread(), run_ras(), send_waveform_to_channel(), serial_remote_io(), setformat(), sip_new(), skinny_new(), spawn_ras(), start_rtp(), swap_subs(), update_features(), zt_bridge(), and zt_new().

unsigned int fin
 

Definition at line 379 of file channel.h.

Referenced by ast_read(), ast_serialize_showchan(), handle_debugchan(), handle_nodebugchan(), and handle_showchan().

unsigned int flags
 

channel flags of AST_FLAG_ type

Definition at line 395 of file channel.h.

Referenced by ast_channel_alloc(), and handle_common_options().

unsigned int fout
 

Definition at line 380 of file channel.h.

Referenced by ast_serialize_showchan(), ast_write(), handle_debugchan(), handle_nodebugchan(), and handle_showchan().

struct ast_generator* generator
 

Current active data generator

Definition at line 276 of file channel.h.

Referenced by ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_read(), and generator_force().

void* generatordata
 

Current generator data if there is any

Definition at line 274 of file channel.h.

Referenced by ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_quiet_chan(), ast_read(), ast_tonepair(), ast_write(), do_parking_thread(), generator_force(), and play_tone_pair().

int hangupcause
 

Definition at line 386 of file channel.h.

Referenced by __ast_request_and_dial(), __oh323_update_info(), __transmit_response(), ast_hangup(), ast_pbx_outgoing_exten(), attempt_transmit(), handle_response(), hangup_connection(), iax2_hangup(), misdn_call(), misdn_hangup(), oh323_hangup(), pbx_builtin_hangup(), pbx_retrieve_variable(), send_cause2ast(), sip_hangup(), ss_thread(), transmit_request_with_auth(), wait_for_answer(), zt_hangup(), and zt_indicate().

unsigned long insmpl
 

Track the read/written samples for monitor use

Definition at line 375 of file channel.h.

Referenced by ast_read(), and ast_write().

char language[MAX_LANGUAGE]
 

Language requested for voice prompts

Definition at line 263 of file channel.h.

Referenced by __login_exec(), agent_call(), agent_new(), alsa_new(), ast_app_getdata(), ast_app_getdata_full(), ast_app_getvoice(), ast_control_streamfile(), ast_iax2_new(), ast_modem_new(), ast_play_and_prepend(), ast_play_and_record(), ast_play_and_wait(), ast_record_review(), ast_say_date_with_format_gr(), ast_say_number_full_gr(), ast_send_image(), background_file(), bridge_playfile(), builtin_atxfer(), builtin_automonitor(), builtin_blindtransfer(), builtin_function_language_read(), builtin_function_language_write(), cb_events(), chanspy_exec(), check_availability(), check_beep(), conf_run(), copy_message(), datetime_exec(), directory_exec(), do_directory(), features_call(), forward_message(), gen_nextfile(), get_folder(), handle_getoption(), handle_recordfile(), handle_sayalpha(), handle_saydate(), handle_saydatetime(), handle_saydigits(), handle_saynumber(), handle_sayphonetic(), handle_saytime(), handle_streamfile(), iax2_call(), invent_message(), ivr_dispatch(), leave_voicemail(), local_call(), mgcp_new(), mgcp_ss(), misdn_call(), misdn_new(), nbs_new(), oss_new(), page_exec(), park_exec(), parkandannounce_exec(), pbx_builtin_background(), pbx_builtin_saycharacters(), pbx_builtin_saydigits(), pbx_builtin_saynumber(), pbx_builtin_sayphonetic(), pbx_builtin_setlanguage(), pbx_retrieve_variable(), play_and_wait(), play_file(), play_mailbox_owner(), play_message(), play_message_callerid(), play_message_datetime(), play_message_duration(), play_record_review(), privacy_exec(), record_exec(), say_position(), saycharstr(), sayfile(), saynum(), sayunixtime_exec(), setup_env(), sip_new(), skinny_new(), skinny_ss(), ss_thread(), vm_browse_messages(), vm_intro(), vm_intro_cz(), vm_intro_de(), vm_intro_en(), vm_intro_es(), vm_intro_fr(), vm_intro_gr(), vm_intro_it(), vm_intro_nl(), vm_intro_no(), vm_intro_pt(), vm_intro_se(), vm_play_folder_name(), vpb_new(), wait_file2(), and zt_new().

ast_mutex_t lock
 

Lock, can be used to lock a channel for some operations

Definition at line 295 of file channel.h.

Referenced by __oh323_destroy(), action_getvar(), action_hangup(), action_redirect(), action_setvar(), action_status(), action_timeout(), agent_hangup(), alsa_call(), ast_activate_generator(), ast_answer(), ast_app_group_get_count(), ast_app_group_match_get_count(), ast_async_goto(), ast_async_goto_by_name(), ast_call(), ast_channel_free(), ast_channel_masquerade(), ast_check_hangup_locked(), ast_deactivate_generator(), ast_do_masquerade(), ast_hangup(), ast_indicate(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_parse_device_state(), ast_pbx_outgoing_exten(), ast_pickup_call(), ast_queue_frame(), ast_queue_hangup(), ast_read(), ast_rtp_bridge(), ast_softhangup(), ast_transfer(), ast_write(), attempt_transfer(), auto_congest(), chan_ringing(), change_monitor_action(), check_bridge(), cleanup_connection(), complete_ch_helper(), conf_exec(), connection_made(), console_answer(), console_dial(), console_hangup(), console_sendtext(), do_chanreads(), do_monitor(), fast_originate(), func_header_read(), function_sipchaninfo_read(), get_sip_pvt_byid_locked(), grab_owner(), group_show_channels(), handle_chanlist(), handle_channelstatus(), handle_debugchan(), handle_getvariablefull(), handle_nodebugchan(), handle_request_invite(), handle_request_refer(), handle_softhangup(), hangup_connection(), iax2_destroy(), local_channel_walk(), local_queue_frame(), manager_play_dtmf(), mgcp_queue_frame(), mgcp_queue_hangup(), mixmonitor_cli(), monitor_handle_owned(), oh323_rtp_read(), pbx_builtin_importvar(), pickup_exec(), progress(), retrans_pkt(), sendtext_exec(), set_format(), setrdnis_exec(), setup_rtp_connection(), sip_addheader(), sip_dtmfmode(), sip_getheader(), sip_park(), sip_park_thread(), sipsock_read(), softhangup_exec(), start_monitor_action(), start_spying(), startmon(), stop_monitor_action(), stop_spying(), stopmon(), update_state(), wakeup_sub(), zap_queue_frame(), zt_bridge(), and zt_handle_event().

char macrocontext[AST_MAX_CONTEXT]
 

Current non-macro context

Definition at line 341 of file channel.h.

Referenced by ast_cdr_update(), builtin_atxfer(), builtin_blindtransfer(), conf_run(), do_directory(), get_cid_name(), leave_voicemail(), macro_exec(), misdn_tx2ast_frm(), monitor_handle_owned(), onedigit_goto(), and zt_read().

char macroexten[AST_MAX_EXTENSION]
 

Current non-macro extension

Definition at line 343 of file channel.h.

Referenced by ast_cdr_update(), dundi_exec(), dundi_helper(), get_cid_name(), macro_exec(), and wait_for_answer().

int macropriority
 

Current non-macro priority

Definition at line 345 of file channel.h.

Referenced by macro_exec().

struct ast_channel* masq
 

Channel that will masquerade as us

Definition at line 282 of file channel.h.

Referenced by ast_channel_masquerade(), ast_do_masquerade(), ast_hangup(), ast_read(), ast_rtp_bridge(), and ast_write().

struct ast_channel* masqr
 

Who we are masquerading as

Definition at line 284 of file channel.h.

Referenced by ast_channel_masquerade(), ast_do_masquerade(), ast_hangup(), ast_rtp_bridge(), and ast_write().

struct ast_channel_monitor* monitor
 

Definition at line 372 of file channel.h.

Referenced by __agent_start_monitoring(), ast_channel_free(), ast_monitor_change_fname(), ast_monitor_setjoinfiles(), ast_monitor_start(), ast_monitor_stop(), ast_read(), and ast_write().

void* music_state
 

Music State

Definition at line 272 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().

char musicclass[MAX_MUSICCLASS]
 

Default music class

Definition at line 270 of file channel.h.

Referenced by function_moh_read(), function_moh_write(), moh2_exec(), sip_new(), and zt_new().

char name[AST_CHANNEL_NAME]
 

ASCII unique channel name

Definition at line 254 of file channel.h.

Referenced by __ast_pbx_run(), __login_exec(), __oh323_destroy(), __oh323_new(), __oh323_update_info(), __queues_show(), __zt_exception(), action_agents(), action_status(), adsi_prog(), agent_bridgedchannel(), agent_call(), agent_new(), agent_read(), agent_write(), agents_show(), alarmreceiver_exec(), alsa_indicate(), alsa_new(), aqm_exec(), ast_async_goto(), ast_bridge_call(), ast_bridge_call_thread(), ast_cdr_init(), ast_change_name(), ast_channel_bridge(), ast_channel_free(), ast_channel_make_compatible(), ast_channel_masquerade(), ast_channel_spy_add(), ast_channel_spy_remove(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_do_masquerade(), ast_dsp_process(), ast_feature_interpret(), ast_hangup(), ast_iax2_new(), ast_indicate(), ast_masq_park_call(), ast_modem_new(), ast_monitor_change_fname(), ast_monitor_start(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_pickup_call(), ast_play_and_prepend(), ast_play_and_record(), ast_playtones_start(), ast_prod(), ast_queue_frame(), ast_read(), ast_rtp_bridge(), ast_serialize_showchan(), ast_set_callerid(), ast_setstate(), ast_softhangup_nolock(), ast_write(), async_wait(), attempt_transfer(), auto_congest(), background_detect_exec(), builtin_atxfer(), builtin_automonitor(), builtin_blindtransfer(), chanavail_exec(), channel_find_locked(), channel_spy(), check_availability(), check_beep(), check_goto_on_transfer(), complete_ch_helper(), conf_exec(), conf_run(), console_transfer(), cpeid_exec(), dial_exec_full(), disa_exec(), do_chanreads(), do_directory(), do_monitor(), do_parking_thread(), do_senddigit(), do_waiting(), dumpchan_exec(), dundi_lookup_internal(), eagi_exec(), features_new(), features_show(), flash_exec(), get_chan_by_ast_name(), get_refer_info(), group_count_function_read(), group_show_channels(), handle_chanlist(), handle_debugchan(), handle_nodebugchan(), handle_parkedcalls(), handle_recordfile(), handle_request_refer(), handle_showchan(), handle_softhangup(), iax2_call(), iax2_hangup(), iax2_request(), iax2_transfer(), iax_park(), increase_call_count(), is_our_turn(), join_queue(), leave_queue(), linear_alloc(), linear_release(), local_get_channel_begin_name(), local_new(), local_queue_frame(), local_write(), locals_show(), macro_exec(), manager_parking_status(), mgcp_answer(), mgcp_call(), mgcp_fixup(), mgcp_hangup(), mgcp_indicate(), mgcp_new(), mgcp_ss(), milliwatt_exec(), misdn_call(), misdn_hangup(), misdn_indication(), misdn_new(), misdn_show_cl(), misdn_transfer_bc(), misdn_tx2ast_frm(), mixmonitor_thread(), modem_answer(), modem_call(), modem_digit(), modem_hangup(), moh0_exec(), moh1_exec(), moh_alloc(), moh_files_alloc(), moh_files_generator(), moh_files_release(), moh_generate(), moh_release(), monitor_handle_owned(), nbs_call(), nbs_hangup(), nbs_new(), nbs_xread(), oh323_answer(), oh323_call(), oh323_digit(), oh323_hangup(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), oss_indicate(), oss_new(), page_exec(), park_exec(), parkandannounce_exec(), pbx_extension_helper(), pbx_retrieve_variable(), phone_answer(), phone_call(), phone_hangup(), pickup_exec(), playtones_alloc(), print_bc_info(), process_sdp(), queue_exec(), queue_frame_to_spies(), rbi_out(), receive_dtmf_digits(), record_exec(), ring_entry(), rpt(), rqm_exec(), run_agi(), run_ras(), say_position(), saycharstr(), sayfile(), saynum(), send_digit_to_chan(), senddialevent(), set_format(), setup_env(), sip_answer(), sip_call(), sip_hangup(), sip_new(), sip_park(), sip_sendtext(), skinny_answer(), skinny_call(), skinny_fixup(), skinny_hangup(), skinny_indicate(), skinny_new(), skinny_ss(), socket_read(), softhangup_exec(), ss_thread(), start_monitor_action(), start_spying(), testclient_exec(), testserver_exec(), tonepair_alloc(), userevent_exec(), vpb_answer(), vpb_fixup(), vpb_hangup(), vpb_new(), vpb_request(), vpb_write(), wait_for_answer(), zap_fake_event(), zt_answer(), zt_bridge(), zt_call(), zt_fixup(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), zt_setoption(), and zt_write().

int nativeformats
 

Kinds of data this channel can natively handle

Definition at line 330 of file channel.h.

Referenced by __oh323_new(), __oh323_update_info(), __sip_show_channels(), agent_call(), agent_new(), alsa_new(), ast_channel_bridge(), ast_channel_make_compatible(), ast_generic_bridge(), ast_iax2_new(), ast_modem_new(), ast_read(), ast_serialize_showchan(), ast_streamfile(), chanavail_exec(), echo_exec(), free_translation(), handle_showchan(), iax2_call(), iax2_request(), local_new(), mgcp_new(), mgcp_rtp_read(), mgcp_write(), misdn_new(), nbs_new(), oh323_rtp_read(), oh323_write(), oss_new(), process_sdp(), ring_entry(), set_format(), setup_rtp_connection(), sip_new(), sip_rtp_read(), sip_show_channel(), sip_write(), skinny_new(), skinny_rtp_read(), skinny_write(), update_features(), vpb_new(), wait_for_answer(), and zt_new().

struct ast_channel* next
 

For easy linking

Definition at line 415 of file channel.h.

Referenced by ast_active_channels(), ast_autoservice_start(), ast_channel_free(), channel_find_locked(), handle_common_options(), and wait_for_answer().

int oldwriteformat
 

Original writer format

Definition at line 317 of file channel.h.

Referenced by ast_openstream_full(), and ast_stopstream().

unsigned long outsmpl
 

Definition at line 376 of file channel.h.

Referenced by ast_read(), and ast_write().

struct ast_pbx* pbx
 

PBX private structure

Definition at line 356 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(), builtin_function_timeout_read(), disa_exec(), handle_getoption(), ivr_dispatch(), pbx_builtin_dtimeout(), pbx_builtin_rtimeout(), read_newoption(), rpt_call(), and zt_handle_event().

unsigned int pickupgroup
 

Definition at line 392 of file channel.h.

Referenced by ast_pickup_call(), ast_serialize_showchan(), mgcp_new(), misdn_new(), sip_new(), skinny_new(), vpb_new(), and zt_new().

int priority
 

Definition at line 349 of file channel.h.

Referenced by __ast_pbx_run(), __ast_request_and_dial(), __oh323_new(), action_originate(), action_status(), agent_new(), ast_explicit_goto(), ast_masq_park_call(), ast_parseable_goto(), ast_pbx_outgoing_exten(), ast_serialize_showchan(), async_wait(), builtin_atxfer(), builtin_blindtransfer(), dialout(), do_parking_thread(), find_matching_endwhile(), forward_message(), gosub_exec(), handle_chanlist(), iax_park(), leave_voicemail(), local_new(), macro_exec(), mgcp_new(), misdn_new(), park_call_exec(), parkandannounce_exec(), pbx_builtin_background(), pbx_builtin_goto(), pbx_extension_helper(), pbx_retrieve_variable(), random_exec(), ring_entry(), rpt_call(), setup_env(), sip_getheader(), sip_new(), sip_park(), and skinny_new().

int rawreadformat
 

Raw read format

Definition at line 407 of file channel.h.

Referenced by __oh323_new(), agent_new(), ast_set_read_format(), do_chanreads(), free_translation(), local_new(), mgcp_new(), nbs_new(), phone_setup(), sip_new(), skinny_new(), vpb_new(), zt_new(), and zt_read().

int rawwriteformat
 

Raw write format

Definition at line 409 of file channel.h.

Referenced by __oh323_new(), agent_new(), ast_prod(), ast_set_write_format(), free_translation(), local_new(), mgcp_new(), nbs_new(), sip_new(), skinny_new(), vpb_new(), and zt_new().

int readformat
 

Requested read format

Definition at line 332 of file channel.h.

Referenced by __oh323_new(), __oh323_update_info(), adsi_transmit_message_full(), agent_new(), alsa_new(), ast_app_getvoice(), ast_async_goto(), ast_do_masquerade(), ast_iax2_new(), ast_masq_park_call(), ast_serialize_showchan(), ast_set_read_format(), background_detect_exec(), builtin_atxfer(), chanspy_exec(), check_goto_on_transfer(), dictate_exec(), do_waiting(), eagi_exec(), handle_recordfile(), handle_showchan(), iax2_request(), iax_park(), ices_exec(), local_new(), measurenoise(), mgcp_new(), mgcp_rtp_read(), mgcp_write(), misdn_new(), nbs_new(), oh323_rtp_read(), oh323_write(), oss_new(), process_sdp(), record_exec(), setup_rtp_connection(), sip_new(), sip_park(), sip_rtp_read(), sip_write(), skinny_new(), skinny_rtp_read(), skinny_write(), update_features(), and zt_new().

struct ast_frame* readq
 

Definition at line 400 of file channel.h.

Referenced by ast_channel_free(), ast_do_masquerade(), ast_queue_frame(), ast_read(), and check_bridge().

struct ast_trans_pvt* readtrans
 

Read translation path

Definition at line 405 of file channel.h.

Referenced by ast_channel_free(), ast_read(), ast_set_read_format(), and free_translation().

int rings
 

Number of rings so far

Definition at line 327 of file channel.h.

Referenced by __oh323_new(), ast_modem_new(), ast_serialize_showchan(), handle_showchan(), mgcp_new(), misdn_new(), modem_answer(), nbs_new(), phone_answer(), sip_new(), skinny_new(), vpb_answer(), vpb_new(), zt_handle_event(), zt_new(), and zt_read().

struct sched_context* sched
 

Schedule context

Definition at line 307 of file channel.h.

Referenced by ast_channel_alloc(), ast_channel_free(), ast_closestream(), ast_hangup(), ast_waitstream(), ast_waitstream_exten(), ast_waitstream_fr(), and ast_waitstream_full().

struct ast_channel_spy_list* spies
 

Chan Spy stuff

Definition at line 412 of file channel.h.

Referenced by ast_channel_spy_add(), ast_channel_spy_remove(), ast_channel_spy_stop_by_type(), ast_read(), ast_write(), detach_spies(), and queue_frame_to_spies().

struct ast_filestream* stream
 

Stream itself.

Definition at line 311 of file channel.h.

Referenced by ast_closestream(), ast_control_streamfile(), ast_filehelper(), ast_hangup(), ast_moh_files_next(), ast_readstring(), ast_readstring_full(), ast_stopstream(), ast_waitstream(), ast_waitstream_exten(), ast_waitstream_fr(), ast_waitstream_full(), gen_closestream(), handle_getoption(), handle_recordfile(), handle_streamfile(), local_ast_moh_stop(), and moh_files_readframe().

int streamid
 

For streaming playback, the schedule ID

Definition at line 309 of file channel.h.

Referenced by ast_closestream().

const struct ast_channel_tech* tech
 

Technology (point to channel driver)

Definition at line 257 of file channel.h.

Referenced by __oh323_new(), agent_digit(), agent_new(), alsa_new(), ast_answer(), ast_bridged_channel(), ast_call(), ast_channel_sendhtml(), ast_channel_sendurl(), ast_channel_setoption(), ast_channel_supports_html(), ast_device_state(), ast_do_masquerade(), ast_hangup(), ast_iax2_new(), ast_indicate(), ast_modem_new(), ast_read(), ast_send_image(), ast_sendtext(), ast_supports_images(), ast_transfer(), ast_write(), ast_write_video(), do_senddigit(), features_new(), local_new(), mgcp_new(), misdn_new(), nbs_new(), oss_new(), sendtext_exec(), sip_new(), skinny_new(), transfer_exec(), vpb_hangup(), vpb_new(), wait_for_answer(), and zt_new().

void* tech_pvt
 

Private data used by the technology driver

Definition at line 260 of file channel.h.

Referenced by __oh323_destroy(), __oh323_new(), __zt_exception(), agent_bridgedchannel(), agent_call(), agent_cleanup(), agent_digit(), agent_fixup(), agent_hangup(), agent_indicate(), agent_new(), agent_read(), agent_sendhtml(), agent_sendtext(), agent_start_monitoring(), agent_write(), alsa_fixup(), alsa_hangup(), alsa_new(), ast_channel_free(), ast_check_hangup(), ast_do_masquerade(), ast_generic_bridge(), ast_iax2_new(), ast_modem_new(), ast_rtp_bridge(), features_answer(), features_call(), features_digit(), features_fixup(), features_hangup(), features_indicate(), features_read(), features_write(), func_header_read(), function_iaxpeer(), function_sipchaninfo_read(), iax2_answer(), iax2_bridge(), iax2_call(), iax2_digit(), iax2_fixup(), iax2_hangup(), iax2_indicate(), iax2_predestroy(), iax2_prov_app(), iax2_sendhtml(), iax2_sendimage(), iax2_sendtext(), iax2_setoption(), iax2_transfer(), iax2_write(), local_answer(), local_call(), local_digit(), local_fixup(), local_hangup(), local_indicate(), local_new(), local_sendhtml(), local_write(), mgcp_answer(), mgcp_call(), mgcp_fixup(), mgcp_get_rtp_peer(), mgcp_hangup(), mgcp_indicate(), mgcp_new(), mgcp_read(), mgcp_senddigit(), mgcp_set_rtp_peer(), mgcp_ss(), mgcp_write(), misdn_new(), modem_answer(), modem_call(), modem_digit(), modem_fixup(), modem_hangup(), modem_read(), modem_write(), nbs_call(), nbs_hangup(), nbs_new(), nbs_xread(), nbs_xwrite(), oh323_answer(), oh323_call(), oh323_digit(), oh323_fixup(), oh323_get_rtp_peer(), oh323_hangup(), oh323_indicate(), oh323_read(), oh323_set_rtp_peer(), oh323_update_info(), oh323_write(), oss_answer(), oss_call(), oss_fixup(), oss_hangup(), oss_indicate(), oss_new(), oss_read(), oss_write(), phone_answer(), phone_call(), phone_digit(), phone_exception(), phone_fixup(), phone_hangup(), phone_read(), phone_send_text(), phone_setup(), phone_write(), sip_answer(), sip_call(), sip_dtmfmode(), sip_fixup(), sip_get_codec(), sip_get_rtp_peer(), sip_get_vrtp_peer(), sip_getheader(), sip_hangup(), sip_indicate(), sip_new(), sip_read(), sip_senddigit(), sip_sendtext(), sip_set_rtp_peer(), sip_transfer(), sip_write(), skinny_answer(), skinny_call(), skinny_fixup(), skinny_get_rtp_peer(), skinny_hangup(), skinny_indicate(), skinny_new(), skinny_read(), skinny_senddigit(), skinny_set_rtp_peer(), skinny_ss(), skinny_write(), ss_thread(), vpb_answer(), vpb_bridge(), vpb_call(), vpb_digit(), vpb_fixup(), vpb_hangup(), vpb_indicate(), vpb_new(), vpb_read(), vpb_write(), zt_answer(), zt_bridge(), zt_call(), zt_callwait(), zt_digit(), zt_exception(), zt_fixup(), zt_handle_event(), zt_hangup(), zt_indicate(), zt_new(), zt_read(), zt_sendtext(), zt_setoption(), and zt_write().

void* timingdata
 

Definition at line 322 of file channel.h.

Referenced by ast_settimeout().

int timingfd
 

Timing fd

Definition at line 320 of file channel.h.

Referenced by ast_channel_alloc(), ast_channel_free(), ast_queue_frame(), ast_read(), ast_settimeout(), restore_channel(), and update_features().

int(* timingfunc)(void *data)
 

Referenced by ast_read(), ast_settimeout(), ast_waitstream(), ast_waitstream_exten(), ast_waitstream_fr(), and ast_waitstream_full().

unsigned short transfercapability
 

ISDN Transfer Capbility - AST_FLAG_DIGITAL is not enough

Definition at line 398 of file channel.h.

Referenced by cb_events(), misdn_call(), zt_call(), and zt_new().

const char* type
 

Type of channel

Definition at line 265 of file channel.h.

Referenced by __oh323_new(), agent_new(), agent_read(), alsa_new(), ast_iax2_new(), ast_modem_new(), ast_serialize_showchan(), conf_exec(), conf_run(), flash_exec(), func_header_read(), function_sipchaninfo_read(), get_proto(), handle_showchan(), iax2_bridge(), iax2_prov_app(), local_new(), mgcp_new(), misdn_new(), nbs_new(), oss_new(), setup_env(), sip_dtmfmode(), sip_getheader(), sip_new(), skinny_new(), softhangup_exec(), ss_thread(), transfer_exec(), vpb_new(), and zt_new().

char uniqueid[32]
 

Definition at line 383 of file channel.h.

Referenced by __agent_start_monitoring(), action_status(), agent_hangup(), ast_cdr_init(), ast_change_name(), ast_channel_bridge(), ast_do_masquerade(), ast_hangup(), ast_serialize_showchan(), ast_set_callerid(), ast_setstate(), chan_misdn_trace_call(), conf_run(), fast_originate(), handle_showchan(), pbx_extension_helper(), pbx_retrieve_variable(), process_sdp(), queue_exec(), senddialevent(), setup_env(), and userevent_exec().

struct varshead varshead
 

Definition at line 389 of file channel.h.

Referenced by aPGSQL_fetch(), ast_channel_free(), ast_channel_inherit_variables(), clone_variables(), group_list_function_read(), group_show_channels(), launch_page(), local_call(), mgcp_call(), pbx_builtin_getvar_helper(), pbx_builtin_pushvar_helper(), pbx_builtin_serialize_variables(), pbx_builtin_setvar_helper(), pbx_retrieve_variable(), pbx_substitute_variables_helper(), sip_call(), and transmit_invite().

struct ast_filestream* vstream
 

Video Stream itself.

Definition at line 315 of file channel.h.

Referenced by ast_closestream(), ast_filehelper(), ast_hangup(), and ast_stopstream().

int vstreamid
 

For streaming video playback, the schedule ID

Definition at line 313 of file channel.h.

Referenced by ast_closestream().

time_t whentohangup
 

Non-zero, set to actual time when channel is to be hung up

Definition at line 291 of file channel.h.

Referenced by ast_channel_cmpwhentohangup(), ast_channel_setwhentohangup(), ast_check_hangup(), ast_serialize_showchan(), ast_waitfor_nandfds(), builtin_function_timeout_read(), handle_autohangup(), handle_showchan(), ring_entry(), and rpt().

int writeformat
 

Requested write format

Definition at line 334 of file channel.h.

Referenced by __oh323_new(), __oh323_update_info(), adsi_transmit_message_full(), agent_new(), agent_write(), alsa_new(), ast_async_goto(), ast_channel_start_silence_generator(), ast_do_masquerade(), ast_filehelper(), ast_iax2_new(), ast_masq_park_call(), ast_openstream_full(), ast_serialize_showchan(), ast_set_write_format(), builtin_atxfer(), chanspy_exec(), check_goto_on_transfer(), handle_showchan(), iax2_request(), iax_park(), linear_alloc(), local_new(), mgcp_new(), mgcp_rtp_read(), mgcp_write(), misdn_new(), moh_alloc(), moh_files_alloc(), mp3_exec(), nbs_new(), NBScat_exec(), oh323_rtp_read(), oh323_set_rtp_peer(), oh323_write(), oss_new(), playtones_alloc(), process_sdp(), setup_rtp_connection(), sip_new(), sip_park(), sip_rtp_read(), sip_write(), skinny_new(), skinny_rtp_read(), skinny_write(), tonepair_alloc(), update_features(), and zt_new().

struct ast_trans_pvt* writetrans
 

Write translation path

Definition at line 403 of file channel.h.

Referenced by ast_channel_free(), ast_set_write_format(), ast_write(), and free_translation().

struct tone_zone* zone
 

Tone zone as set in indications.conf

Definition at line 369 of file channel.h.

Referenced by ast_app_dtget(), ast_indicate(), handle_playtones(), and play_dialtone().


The documentation for this struct was generated from the following file:
Generated on Fri May 26 01:51:06 2006 for Asterisk - the Open Source PBX by  doxygen 1.4.6