Asterisk - The Open Source Telephony Project  18.5.0
Public Types | Data Fields
chan_oss_pvt Struct Reference

descriptor for one of our channels. More...

Collaboration diagram for chan_oss_pvt:
Collaboration graph
[legend]

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

Member Enumeration Documentation

◆ anonymous enum

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.

Field Documentation

◆ autoanswer

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().

◆ autohangup

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().

◆ boost

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().

◆ cid_name

char cid_name[256]

Initial CallerID name

Definition at line 298 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

◆ cid_num

char cid_num[256]

Initial CallerID number

Definition at line 299 of file chan_oss.c.

Referenced by oss_new(), and store_callerid().

◆ ctx

char ctx[AST_MAX_CONTEXT]

Definition at line 296 of file chan_oss.c.

Referenced by console_dial(), console_transfer(), and store_config_core().

◆ device

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().

◆ duplex

enum { ... } duplex

Referenced by setformat(), and store_config().

◆ env

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().

◆ ext

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().

◆ frags

unsigned int frags

parameter for SETFRAGMENT

Definition at line 269 of file chan_oss.c.

Referenced by setformat(), and store_config_core().

◆ hookstate

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().

◆ language

char language[MAX_LANGUAGE]

Definition at line 297 of file chan_oss.c.

Referenced by oss_new(), and store_config_core().

◆ lastopen

struct timeval lastopen

Definition at line 276 of file chan_oss.c.

Referenced by setformat(), and store_config().

◆ mixer_cmd

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().

◆ mohinterpret

char mohinterpret[MAX_MUSICCLASS]

Definition at line 300 of file chan_oss.c.

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

◆ mute

int mute

Definition at line 279 of file chan_oss.c.

Referenced by console_mute(), and oss_read().

◆ name

char* name

◆ next

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().

◆ oss_read_buf

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().

◆ oss_write_buf

char oss_write_buf[FRAME_SIZE *2]

buffers used in oss_write

Definition at line 303 of file chan_oss.c.

Referenced by oss_write().

◆ oss_write_dst

int oss_write_dst

Definition at line 304 of file chan_oss.c.

Referenced by oss_write().

◆ overridecontext

int overridecontext

Definition at line 278 of file chan_oss.c.

Referenced by ast_ext_ctx(), and store_config_core().

◆ owner

struct ast_channel* owner

◆ queuesize

unsigned int queuesize

max fragments in queue

Definition at line 268 of file chan_oss.c.

Referenced by soundcard_writeframe(), and store_config_core().

◆ read_f

struct ast_frame read_f

returned by oss_read

Definition at line 310 of file chan_oss.c.

Referenced by oss_read().

◆ readpos

int readpos

read position above

Definition at line 309 of file chan_oss.c.

Referenced by oss_read().

◆ sounddev

int sounddev

◆ sthread

pthread_t sthread

Definition at line 289 of file chan_oss.c.

◆ total_blocks

int total_blocks

total blocks in the output device

Definition at line 256 of file chan_oss.c.

Referenced by used_blocks().

◆ w_errors

int w_errors

overfull in the write path

Definition at line 275 of file chan_oss.c.

Referenced by soundcard_writeframe().

◆ warned

int warned

various flags used for warnings

Definition at line 271 of file chan_oss.c.

Referenced by setformat(), and used_blocks().


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