Tue Aug 20 16:35:20 2013

Asterisk developer's documentation


console_pvt Struct Reference

Console pvt structure. More...

Public Member Functions

 AST_DECLARE_STRING_FIELDS (AST_STRING_FIELD(name);AST_STRING_FIELD(input_device);AST_STRING_FIELD(output_device);AST_STRING_FIELD(context);AST_STRING_FIELD(exten);AST_STRING_FIELD(cid_num);AST_STRING_FIELD(cid_name);AST_STRING_FIELD(mohinterpret);AST_STRING_FIELD(language);AST_STRING_FIELD(parkinglot);)

Data Fields

unsigned int autoanswer:1
unsigned int destroy:1
struct ast_frame fr
unsigned int hookstate:1
unsigned int muted:1
unsigned int overridecontext:1
struct ast_channelowner
PaStream * stream
unsigned int streamstate:1
pthread_t thread

Detailed Description

Console pvt structure.

Currently, this is a singleton object. However, multiple instances will be needed when this module is updated for multiple device support.

Definition at line 118 of file chan_console.c.


Member Function Documentation

AST_DECLARE_STRING_FIELDS ( AST_STRING_FIELD(name);AST_STRING_FIELD(input_device);AST_STRING_FIELD(output_device);AST_STRING_FIELD(context);AST_STRING_FIELD(exten);AST_STRING_FIELD(cid_num);AST_STRING_FIELD(cid_name);AST_STRING_FIELD(mohinterpret);AST_STRING_FIELD(language);AST_STRING_FIELD(parkinglot);   ) 

Field Documentation

unsigned int autoanswer

Automatically answer incoming calls

Definition at line 154 of file chan_console.c.

Referenced by cli_console_autoanswer(), cli_list_devices(), console_call(), set_pvt_defaults(), and store_config_core().

unsigned int destroy

Set during a reload so that we know to destroy this if it is no longer in the configuration file.

Definition at line 159 of file chan_console.c.

Referenced by build_device(), destroy_pvts(), and pvt_mark_destroy_cb().

struct ast_frame fr [read]

A frame for preparing to queue on to the channel

Definition at line 146 of file chan_console.c.

unsigned int hookstate
unsigned int muted

Unmuted = 0, Muted = 1

Definition at line 152 of file chan_console.c.

Referenced by cli_console_mute(), and cli_list_devices().

unsigned int overridecontext

Ignore context in the console dial CLI command

Definition at line 156 of file chan_console.c.

Referenced by ast_ext_ctx(), cli_list_devices(), set_pvt_defaults(), and store_config_core().

struct ast_channel* owner [read]
PaStream* stream

Current PortAudio stream for this device

Definition at line 144 of file chan_console.c.

Referenced by console_write(), open_stream(), start_stream(), stop_stream(), and stream_monitor().

unsigned int streamstate

Running = 1, Not running = 0

Definition at line 148 of file chan_console.c.

Referenced by start_stream(), and stop_stream().

pthread_t thread

ID for the stream monitor thread

Definition at line 161 of file chan_console.c.

Referenced by init_pvt(), start_stream(), and stop_stream().


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

Generated on 20 Aug 2013 for Asterisk - The Open Source Telephony Project by  doxygen 1.6.1