#include <channel.h>
Public Member Functions | |
AST_LIST_HEAD (varshead, ast_var_t) varshead | |
Data Fields | |
char | name [AST_CHANNEL_NAME] |
char | language [MAX_LANGUAGE] |
char * | type |
int | fds [AST_MAX_FDS] |
char | musicclass [MAX_LANGUAGE] |
void * | generatordata |
ast_generator * | generator |
int | writeinterrupt |
ast_channel * | bridge |
ast_channel * | dialed |
ast_channel * | dialing |
int | reversedialed |
ast_channel * | masq |
ast_channel * | masqr |
int | cdrflags |
int | blocking |
int | _softhangup |
int | zombie |
time_t | whentohangup |
pthread_t | blocker |
ast_mutex_t | lock |
char * | blockproc |
char * | appl |
char * | data |
int | exception |
int | fdno |
sched_context * | sched |
int | streamid |
ast_filestream * | stream |
int | vstreamid |
ast_filestream * | vstream |
int | oldwriteformat |
int | timingfd |
int(* | timingfunc )(void *data) |
void * | timingdata |
int | _state |
int | rings |
int | stack |
int | nativeformats |
int | readformat |
int | writeformat |
char * | dnid |
char * | callerid |
char * | ani |
char * | rdnis |
int | restrictcid |
char | context [AST_MAX_EXTENSION] |
char | macrocontext [AST_MAX_EXTENSION] |
char | macroexten [AST_MAX_EXTENSION] |
int | macropriority |
char | exten [AST_MAX_EXTENSION] |
int | priority |
void * | app [AST_CHANNEL_MAX_STACK] |
char | dtmfq [AST_MAX_EXTENSION] |
int | deferdtmf |
ast_frame | dtmff |
ast_channel_pvt * | pvt |
jmp_buf | jmp [AST_CHANNEL_MAX_STACK] |
ast_pbx * | pbx |
int | amaflags |
char | accountcode [20] |
ast_cdr * | cdr |
int | adsicpe |
char | call_forward [AST_MAX_EXTENSION] |
tone_zone * | zone |
ast_channel_monitor * | monitor |
unsigned long | insmpl |
unsigned long | outsmpl |
unsigned int | fin |
unsigned int | fout |
char | uniqueid [32] |
ast_var_t * | vars |
unsigned int | callgroup |
unsigned int | pickupgroup |
ast_channel * | next |
This is the side of it mostly used by the pbx and call management.
Definition at line 55 of file channel.h.
|
|
|
Whether or not we have been hung up... Do not set this value directly, use ast_softhangup Definition at line 93 of file channel.h. Referenced by ast_autoservice_stop(), ast_check_hangup(), ast_dsp_process(), ast_pbx_run(), ast_queue_hangup(), ast_read(), ast_softhangup_nolock(), ast_waitstream(), ast_waitstream_fr(), ast_waitstream_full(), and ast_write(). |
|
State of line -- Don't write directly, use ast_setstate Definition at line 133 of file channel.h. Referenced by ast_answer(), ast_async_goto(), ast_cdr_init(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_prod(), ast_request(), ast_request_and_dial(), and ast_setstate(). |
|
Account code for billing Definition at line 191 of file channel.h. Referenced by ast_cdr_init(), ast_cdr_setaccount(), and ast_cdr_update(). |
|
Whether or not ADSI is detected on CPE |
|
Set BEFORE PBX is started to determine AMA flags Definition at line 189 of file channel.h. Referenced by ast_cdr_init(), and ast_pbx_run(). |
|
Malloc'd ANI Definition at line 153 of file channel.h. Referenced by ast_cdr_init(), ast_cdr_setcid(), ast_cdr_update(), ast_channel_free(), and ast_set_callerid(). |
|
Application information -- see assigned numbers Definition at line 173 of file channel.h. Referenced by pbx_exec(). |
|
Current application Definition at line 106 of file channel.h. Referenced by pbx_exec(). |
|
If anyone is blocking, this is them Definition at line 99 of file channel.h. Referenced by ast_hangup(), ast_queue_frame(), ast_read(), and ast_softhangup_nolock(). |
|
Whether or not we're blocking Definition at line 90 of file channel.h. Referenced by ast_autoservice_stop(), ast_hangup(), ast_queue_frame(), ast_sendtext(), ast_softhangup_nolock(), ast_waitfor_nandfds(), and ast_write(). |
|
Procedure causing blocking Definition at line 103 of file channel.h. Referenced by ast_hangup(). |
|
Who are we bridged to, if we're bridged Definition at line 76 of file channel.h. Referenced by ast_channel_bridge(). |
|
Where to forward to if asked to dial on this interface |
|
Malloc'd Caller ID Definition at line 151 of file channel.h. Referenced by ast_cdr_init(), ast_cdr_setcid(), ast_cdr_update(), ast_channel_free(), ast_pbx_outgoing_exten(), ast_pbx_run(), ast_request(), ast_set_callerid(), and ast_setstate(). |
|
|
|
Call Detail Record Definition at line 193 of file channel.h. Referenced by ast_answer(), ast_cdr_setaccount(), ast_cdr_update(), ast_hangup(), ast_pbx_run(), ast_read(), ast_set_callerid(), and pbx_exec(). |
|
Call Detail Record Flags |
|
Current extension context Definition at line 161 of file channel.h. Referenced by ast_async_goto(), ast_cdr_init(), ast_cdr_update(), ast_pbx_outgoing_exten(), and ast_pbx_run(). |
|
Data passed to current application Definition at line 108 of file channel.h. Referenced by ast_indicate(), and pbx_exec(). |
|
Are DTMF digits being deferred Definition at line 177 of file channel.h. Referenced by ast_channel_defer_dtmf(), ast_channel_undefer_dtmf(), and ast_read(). |
|
Who did we call? |
|
Who called us? |
|
Malloc'd Dialed Number Identifier Definition at line 149 of file channel.h. Referenced by ast_channel_free(). |
|
DTMF frame Definition at line 179 of file channel.h. Referenced by ast_read(). |
|
Any/all queued DTMF characters Definition at line 175 of file channel.h. Referenced by ast_read(). |
|
Has an exception been detected Definition at line 111 of file channel.h. Referenced by ast_read(), and ast_waitfor_nandfds(). |
|
Current extension number Definition at line 169 of file channel.h. Referenced by ast_async_goto(), ast_cdr_init(), ast_cdr_update(), ast_pbx_outgoing_exten(), and ast_pbx_run(). |
|
Which fd had an event detected on Definition at line 113 of file channel.h. Referenced by ast_read(), and ast_waitfor_nandfds(). |
|
File descriptor for channel -- Drivers will poll on these file descriptors, so at least one must be non -1. Definition at line 63 of file channel.h. Referenced by ast_waitfor_nandfds(). |
|
Definition at line 210 of file channel.h. Referenced by ast_read(). |
|
Definition at line 211 of file channel.h. Referenced by ast_write(). |
|
Current active data generator Definition at line 71 of file channel.h. Referenced by ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_openstream(), and ast_read(). |
|
Current generator data if there is any Definition at line 69 of file channel.h. Referenced by ast_activate_generator(), ast_deactivate_generator(), ast_hangup(), ast_read(), ast_tonepair(), and ast_write(). |
|
Track the read/written samples for monitor use Definition at line 206 of file channel.h. Referenced by ast_read(), and ast_write(). |
|
Jump buffer used for returning from applications Definition at line 185 of file channel.h. Referenced by pbx_exec(). |
|
Language requested Definition at line 59 of file channel.h. Referenced by ast_app_getdata(), ast_app_getdata_full(), ast_app_getvoice(), and ast_send_image(). |
|
Lock, can be used to lock a channel for some operations Definition at line 101 of file channel.h. Referenced by ast_answer(), ast_async_goto(), ast_call(), ast_channel_free(), ast_hangup(), ast_indicate(), ast_queue_frame(), ast_read(), ast_rtp_bridge(), ast_softhangup(), ast_transfer(), and ast_write(). |
|
Current non-macro context |
|
Current non-macro extension |
|
Current non-macro priority |
|
Channel that will masquerade as us Definition at line 84 of file channel.h. Referenced by ast_channel_masquerade(), ast_hangup(), ast_read(), ast_waitfor_nandfds(), and ast_write(). |
|
Who we are masquerading as Definition at line 86 of file channel.h. Referenced by ast_channel_masquerade(), ast_hangup(), and ast_write(). |
|
Definition at line 203 of file channel.h. Referenced by ast_channel_free(), ast_read(), and ast_write(). |
|
Default music class |
|
ASCII Description of channel name Definition at line 57 of file channel.h. Referenced by ast_app_getvoice(), ast_async_goto(), ast_async_goto_by_name(), ast_cdr_init(), ast_change_name(), ast_channel_bridge(), ast_channel_free(), ast_channel_make_compatible(), ast_channel_masquerade(), ast_dsp_process(), ast_hangup(), ast_indicate(), ast_parse_device_state(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run(), ast_playtones_start(), ast_prod(), ast_queue_frame(), ast_read(), ast_request(), ast_rtp_bridge(), ast_set_callerid(), ast_set_read_format(), ast_set_write_format(), ast_setstate(), ast_softhangup_nolock(), and ast_write(). |
|
Kinds of data this channel can natively handle Definition at line 141 of file channel.h. Referenced by ast_channel_make_compatible(), ast_read(), ast_set_read_format(), ast_set_write_format(), and ast_streamfile(). |
|
For easy linking Definition at line 224 of file channel.h. Referenced by ast_active_channels(), ast_autoservice_start(), ast_channel_free(), ast_channel_unregister(), and ast_request(). |
|
Original writer format Definition at line 125 of file channel.h. Referenced by ast_openstream(), and ast_stopstream(). |
|
Definition at line 207 of file channel.h. Referenced by ast_read(), and ast_write(). |
|
Definition at line 187 of file channel.h. Referenced by ast_app_getdata(), ast_async_goto(), ast_channel_free(), and ast_pbx_run(). |
|
|
|
Definition at line 171 of file channel.h. Referenced by ast_async_goto(), ast_pbx_outgoing_exten(), and ast_pbx_run(). |
|
Private channel implementation details Definition at line 181 of file channel.h. Referenced by ast_answer(), ast_call(), ast_channel_free(), ast_channel_sendhtml(), ast_channel_sendurl(), ast_channel_setoption(), ast_channel_supports_html(), ast_check_hangup(), ast_hangup(), ast_indicate(), ast_prod(), ast_queue_frame(), ast_read(), ast_rtp_bridge(), ast_send_image(), ast_sendtext(), ast_set_read_format(), ast_set_write_format(), ast_supports_images(), ast_transfer(), ast_write(), and ast_write_video(). |
|
Malloc'd RDNIS Definition at line 155 of file channel.h. Referenced by ast_channel_free(). |
|
Requested read format Definition at line 143 of file channel.h. Referenced by ast_app_getvoice(), ast_async_goto(), and ast_set_read_format(). |
|
Hide callerid from user |
|
Reverse the dialed link (0 false, 1 true) |
|
Number of rings so far |
|
Schedule context Definition at line 115 of file channel.h. Referenced by ast_closestream(), ast_hangup(), ast_waitstream(), ast_waitstream_fr(), and ast_waitstream_full(). |
|
Current level of application Definition at line 137 of file channel.h. Referenced by pbx_exec(). |
|
Stream itself. Definition at line 119 of file channel.h. Referenced by ast_closestream(), ast_hangup(), ast_readstring(), ast_readstring_full(), ast_stopstream(), ast_waitstream(), ast_waitstream_fr(), and ast_waitstream_full(). |
|
For streaming playback, the schedule ID Definition at line 117 of file channel.h. Referenced by ast_closestream(). |
|
Definition at line 130 of file channel.h. Referenced by ast_read(), and ast_settimeout(). |
|
Timing fd Definition at line 128 of file channel.h. Referenced by ast_channel_free(), ast_read(), and ast_settimeout(). |
|
Referenced by ast_read(), ast_settimeout(), ast_waitstream(), ast_waitstream_fr(), and ast_waitstream_full(). |
|
Type of channel Definition at line 61 of file channel.h. Referenced by ast_channel_unregister(), and ast_request(). |
|
Definition at line 214 of file channel.h. Referenced by ast_cdr_init(), ast_change_name(), ast_hangup(), ast_pbx_run(), ast_request(), ast_set_callerid(), and ast_setstate(). |
|
|
|
Stream itself. Definition at line 123 of file channel.h. Referenced by ast_closestream(), and ast_stopstream(). |
|
For streaming playback, the schedule ID Definition at line 121 of file channel.h. Referenced by ast_closestream(). |
|
Non-zero, set to actual time when channel is to be hung up Definition at line 97 of file channel.h. Referenced by ast_channel_setwhentohangup(), ast_check_hangup(), and ast_pbx_run(). |
|
Requested write format Definition at line 145 of file channel.h. Referenced by ast_async_goto(), ast_openstream(), and ast_set_write_format(). |
|
Whether or not the generator should be interrupted by write Definition at line 73 of file channel.h. Referenced by ast_deactivate_generator(), and ast_write(). |
|
Non-zero if this is a zombie channel Definition at line 95 of file channel.h. Referenced by ast_answer(), ast_call(), ast_channel_bridge(), ast_hangup(), ast_indicate(), ast_read(), ast_readstring(), ast_readstring_full(), ast_sendtext(), ast_transfer(), ast_waitfordigit(), ast_waitfordigit_full(), and ast_write(). |
|
Tone zone Definition at line 200 of file channel.h. Referenced by ast_indicate(). |