Wed Jan 8 2020 09:50:24

Asterisk developer's documentation


chan_oss_pvt Struct Reference

descriptor for one of our channels. More...

Public Types

enum  { M_UNSET, M_FULL, M_READ, M_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_pvtnext
 
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_channelowner
 
unsigned int queuesize
 
struct ast_frame read_f
 
int readpos
 
int sounddev
 
pthread_t sthread
 
int total_blocks
 
int w_errors
 
int warned
 

Detailed Description

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 247 of file chan_oss.c.

Member Enumeration Documentation

anonymous enum
Enumerator
M_UNSET 
M_FULL 
M_READ 
M_WRITE 

Definition at line 253 of file chan_oss.c.

Field Documentation

int autoanswer

Boolean: whether to answer the immediately upon calling

Definition at line 254 of file chan_oss.c.

Referenced by console_autoanswer(), keypad_toggle(), 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 255 of file chan_oss.c.

Referenced by oss_hangup(), and store_config_core().

int boost

input boost, scaled by BOOST_SCALE

Definition at line 276 of file chan_oss.c.

Referenced by console_boost(), oss_read(), and store_boost().

char cid_name[256]

Initial CallerID name

Definition at line 288 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

char cid_num[256]

Initial CallerID number

Definition at line 289 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

char ctx[AST_MAX_CONTEXT]

Definition at line 286 of file chan_oss.c.

Referenced by console_dial(), and store_config_core().

char device[64]

device to open

Definition at line 277 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 283 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 285 of file chan_oss.c.

Referenced by console_dial(), and store_config_core().

unsigned int frags

parameter for SETFRAGMENT

Definition at line 259 of file chan_oss.c.

Referenced by setformat(), and store_config_core().

int hookstate

Boolean: 1 if offhook; 0 if onhook

Definition at line 256 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 287 of file chan_oss.c.

Referenced by oss_new(), and store_config_core().

struct timeval lastopen

Definition at line 266 of file chan_oss.c.

Referenced by setformat(), and store_config().

char* mixer_cmd

initial command to issue to the mixer

Definition at line 257 of file chan_oss.c.

Referenced by store_config(), and store_mixer().

char mohinterpret[MAX_MUSICCLASS]

Definition at line 290 of file chan_oss.c.

Referenced by oss_indicate(), store_config(), and store_config_core().

int mute

Definition at line 269 of file chan_oss.c.

Referenced by console_mute(), and oss_read().

char* name

Definition at line 250 of file chan_oss.c.

Referenced by console_active(), find_desc(), store_config(), and unload_module().

struct chan_oss_pvt* next

Definition at line 248 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 298 of file chan_oss.c.

Referenced by oss_read().

char oss_write_buf[FRAME_SIZE *2]

buffers used in oss_write

Definition at line 293 of file chan_oss.c.

Referenced by oss_write().

int oss_write_dst

Definition at line 294 of file chan_oss.c.

Referenced by oss_write().

int overridecontext

Definition at line 268 of file chan_oss.c.

Referenced by ast_ext_ctx(), and store_config_core().

unsigned int queuesize

max fragments in queue

Definition at line 258 of file chan_oss.c.

Referenced by soundcard_writeframe(), and store_config_core().

struct ast_frame read_f

returned by oss_read

Definition at line 300 of file chan_oss.c.

Referenced by oss_read().

int readpos

read position above

Definition at line 299 of file chan_oss.c.

Referenced by oss_read().

int sounddev
pthread_t sthread

Definition at line 279 of file chan_oss.c.

int total_blocks

total blocks in the output device

Definition at line 251 of file chan_oss.c.

Referenced by used_blocks().

int w_errors

overfull in the write path

Definition at line 265 of file chan_oss.c.

Referenced by soundcard_writeframe().

int warned

various flags used for warnings

Definition at line 261 of file chan_oss.c.

Referenced by setformat(), and used_blocks().


The documentation for this struct was generated from the following file: