Asterisk - The Open Source Telephony Project
18.5.0
|
descriptor for one of our channels. More...
Public Types | |
enum | { CHAN_OSS_DUPLEX_UNSET, CHAN_OSS_DUPLEX_FULL, CHAN_OSS_DUPLEX_READ, CHAN_OSS_DUPLEX_WRITE } |
Data Fields | |
int | autoanswer |
int | autohangup |
int | boost |
char | cid_name [256] |
char | cid_num [256] |
char | ctx [AST_MAX_CONTEXT] |
char | device [64] |
enum chan_oss_pvt:: { ... } | duplex |
struct video_desc * | env |
char | ext [AST_MAX_EXTENSION] |
unsigned int | frags |
int | hookstate |
char | language [MAX_LANGUAGE] |
struct timeval | lastopen |
char * | mixer_cmd |
char | mohinterpret [MAX_MUSICCLASS] |
int | mute |
char * | name |
struct chan_oss_pvt * | next |
char | oss_read_buf [FRAME_SIZE *2+AST_FRIENDLY_OFFSET] |
char | oss_write_buf [FRAME_SIZE *2] |
int | oss_write_dst |
int | overridecontext |
struct ast_channel * | owner |
unsigned int | queuesize |
struct ast_frame | read_f |
int | readpos |
int | sounddev |
pthread_t | sthread |
int | total_blocks |
int | w_errors |
int | warned |
descriptor for one of our channels.
There is one used for 'default' values (from the [general] entry in the configuration file), and then one instance for each device (the default is cloned from [general], others are only created if the relevant section exists).
Definition at line 252 of file chan_oss.c.
anonymous enum |
Enumerator | |
---|---|
CHAN_OSS_DUPLEX_UNSET | |
CHAN_OSS_DUPLEX_FULL | |
CHAN_OSS_DUPLEX_READ | |
CHAN_OSS_DUPLEX_WRITE |
Definition at line 258 of file chan_oss.c.
int autoanswer |
Boolean: whether to answer the immediately upon calling
Definition at line 264 of file chan_oss.c.
Referenced by console_autoanswer(), keypad_cfg_read(), oss_call(), oss_hangup(), and store_config_core().
int autohangup |
Boolean: whether to hangup the call when the remote end hangs up
Definition at line 265 of file chan_oss.c.
Referenced by oss_hangup(), and store_config_core().
int boost |
input boost, scaled by BOOST_SCALE
Definition at line 286 of file chan_oss.c.
Referenced by console_boost(), oss_read(), and store_boost().
char cid_name[256] |
Initial CallerID name
Definition at line 298 of file chan_oss.c.
Referenced by oss_new(), and store_callerid().
char cid_num[256] |
Initial CallerID number
Definition at line 299 of file chan_oss.c.
Referenced by oss_new(), and store_callerid().
char ctx[AST_MAX_CONTEXT] |
Definition at line 296 of file chan_oss.c.
Referenced by console_dial(), console_transfer(), and store_config_core().
char device[64] |
device to open
Definition at line 287 of file chan_oss.c.
Referenced by console_cmd(), oss_new(), setformat(), store_config(), and store_config_core().
enum { ... } duplex |
Referenced by setformat(), and store_config().
struct video_desc* env |
parameters for video support
Definition at line 293 of file chan_oss.c.
Referenced by console_cmd(), get_video_desc(), oss_hangup(), store_config(), and store_config_core().
char ext[AST_MAX_EXTENSION] |
Definition at line 295 of file chan_oss.c.
Referenced by ast_ext_ctx(), console_dial(), console_transfer(), and store_config_core().
unsigned int frags |
parameter for SETFRAGMENT
Definition at line 269 of file chan_oss.c.
Referenced by setformat(), and store_config_core().
int hookstate |
Boolean: 1 if offhook; 0 if onhook
Definition at line 266 of file chan_oss.c.
Referenced by console_dial(), console_do_answer(), console_flash(), console_hangup(), oss_answer(), oss_call(), and oss_hangup().
char language[MAX_LANGUAGE] |
Definition at line 297 of file chan_oss.c.
Referenced by oss_new(), and store_config_core().
struct timeval lastopen |
Definition at line 276 of file chan_oss.c.
Referenced by setformat(), and store_config().
char* mixer_cmd |
initial command to issue to the mixer
Definition at line 267 of file chan_oss.c.
Referenced by store_config(), and store_mixer().
char mohinterpret[MAX_MUSICCLASS] |
Definition at line 300 of file chan_oss.c.
Referenced by oss_indicate(), store_config(), and store_config_core().
int mute |
Definition at line 279 of file chan_oss.c.
Referenced by console_mute(), and oss_read().
char* name |
Definition at line 255 of file chan_oss.c.
Referenced by console_active(), find_desc(), PathSegment::get_child(), Parameter::load(), SwaggerType::load(), Property::load(), oss_call(), oss_request(), store_config(), and unload_module().
struct chan_oss_pvt* next |
Definition at line 253 of file chan_oss.c.
Referenced by console_active(), find_desc(), store_config(), and unload_module().
char oss_read_buf[FRAME_SIZE *2+AST_FRIENDLY_OFFSET] |
buffers used in oss_read - AST_FRIENDLY_OFFSET space for headers plus enough room for a full frame
Definition at line 308 of file chan_oss.c.
Referenced by oss_read().
char oss_write_buf[FRAME_SIZE *2] |
int oss_write_dst |
Definition at line 304 of file chan_oss.c.
Referenced by oss_write().
int overridecontext |
Definition at line 278 of file chan_oss.c.
Referenced by ast_ext_ctx(), and store_config_core().
struct ast_channel* owner |
Definition at line 291 of file chan_oss.c.
Referenced by console_dial(), console_do_answer(), console_flash(), console_hangup(), console_sendtext(), console_transfer(), oss_fixup(), oss_hangup(), oss_new(), oss_request(), setformat(), and unload_module().
unsigned int queuesize |
max fragments in queue
Definition at line 268 of file chan_oss.c.
Referenced by soundcard_writeframe(), and store_config_core().
struct ast_frame read_f |
int readpos |
int sounddev |
Definition at line 257 of file chan_oss.c.
Referenced by oss_new(), oss_read(), setformat(), soundcard_writeframe(), unload_module(), and used_blocks().
pthread_t sthread |
Definition at line 289 of file chan_oss.c.
int total_blocks |
total blocks in the output device
Definition at line 256 of file chan_oss.c.
Referenced by used_blocks().
int w_errors |
overfull in the write path
Definition at line 275 of file chan_oss.c.
Referenced by soundcard_writeframe().
int warned |
various flags used for warnings
Definition at line 271 of file chan_oss.c.
Referenced by setformat(), and used_blocks().