Wed Oct 28 11:46:55 2009

Asterisk developer's documentation


chan_oss_pvt Struct Reference

descriptor for one of our channels. More...

Collaboration diagram for chan_oss_pvt:

Collaboration graph
[legend]

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


Member Enumeration Documentation

anonymous enum

Enumerator:
M_UNSET 
M_FULL 
M_READ 
M_WRITE 

Definition at line 257 of file chan_oss.c.


Field Documentation

Boolean: whether to answer the immediately upon calling

Definition at line 258 of file chan_oss.c.

Referenced by console_autoanswer(), oss_call(), oss_hangup(), and store_config_core().

Boolean: whether to hangup the call when the remote end hangs up

Definition at line 259 of file chan_oss.c.

Referenced by oss_hangup(), and store_config_core().

int boost

input boost, scaled by BOOST_SCALE

Definition at line 280 of file chan_oss.c.

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

char cid_name[256]

Initial CallerID name

Definition at line 292 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

char cid_num[256]

Initial CallerID number

Definition at line 293 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

char ctx[AST_MAX_CONTEXT]

Definition at line 290 of file chan_oss.c.

Referenced by console_dial(), and store_config_core().

char device[64]

device to open

Definition at line 281 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 [read]

parameters for video support

Definition at line 287 of file chan_oss.c.

Referenced by console_cmd(), get_video_desc(), oss_hangup(), and store_config_core().

char ext[AST_MAX_EXTENSION]

Definition at line 289 of file chan_oss.c.

Referenced by console_dial(), and store_config_core().

unsigned int frags

parameter for SETFRAGMENT

Definition at line 263 of file chan_oss.c.

Referenced by setformat(), and store_config_core().

int hookstate

Boolean: 1 if offhook; 0 if onhook

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

Referenced by oss_new(), and store_config_core().

struct timeval lastopen [read]

Definition at line 270 of file chan_oss.c.

Referenced by setformat(), and store_config().

char* mixer_cmd

initial command to issue to the mixer

Definition at line 261 of file chan_oss.c.

Referenced by store_config(), and store_mixer().

char mohinterpret[MAX_MUSICCLASS]

Definition at line 294 of file chan_oss.c.

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

int mute

Definition at line 273 of file chan_oss.c.

Referenced by console_mute(), and oss_read().

char* name

Definition at line 254 of file chan_oss.c.

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

struct chan_oss_pvt* next [read]

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

Referenced by oss_read().

char oss_write_buf[FRAME_SIZE *2]

buffers used in oss_write

Definition at line 297 of file chan_oss.c.

Referenced by oss_write().

Definition at line 298 of file chan_oss.c.

Referenced by oss_write().

Definition at line 272 of file chan_oss.c.

Referenced by ast_ext_ctx(), and store_config_core().

struct ast_channel* owner [read]

unsigned int queuesize

max fragments in queue

Definition at line 262 of file chan_oss.c.

Referenced by soundcard_writeframe(), and store_config_core().

struct ast_frame read_f [read]

returned by oss_read

Definition at line 304 of file chan_oss.c.

Referenced by oss_read().

int readpos

read position above

Definition at line 303 of file chan_oss.c.

Referenced by oss_read().

int sounddev

pthread_t sthread

Definition at line 283 of file chan_oss.c.

total blocks in the output device

Definition at line 255 of file chan_oss.c.

Referenced by used_blocks().

int w_errors

overfull in the write path

Definition at line 269 of file chan_oss.c.

Referenced by soundcard_writeframe().

int warned

various flags used for warnings

Definition at line 265 of file chan_oss.c.

Referenced by setformat(), and used_blocks().


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

Generated on Wed Oct 28 11:46:56 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6