Mon Jun 27 16:51:23 2011

Asterisk developer's documentation


console_pvt Struct Reference

Console pvt structure. More...


Data Fields

ast_string_field_mgr __field_mgr
ast_string_field_pool__field_mgr_pool
unsigned int autoanswer:1
const ast_string_field cid_name
const ast_string_field cid_num
const ast_string_field context
unsigned int destroy:1
const ast_string_field exten
ast_frame fr
unsigned int hookstate:1
const ast_string_field input_device
const ast_string_field language
const ast_string_field mohinterpret
unsigned int muted:1
const ast_string_field name
const ast_string_field output_device
unsigned int overridecontext:1
ast_channelowner
const ast_string_field parkinglot
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 117 of file chan_console.c.


Field Documentation

struct ast_string_field_mgr __field_mgr

Definition at line 139 of file chan_console.c.

struct ast_string_field_pool* __field_mgr_pool

Default parkinglot

Definition at line 139 of file chan_console.c.

unsigned int autoanswer

Automatically answer incoming calls

Definition at line 153 of file chan_console.c.

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

const ast_string_field cid_name

Definition at line 139 of file chan_console.c.

Referenced by console_new(), and set_pvt_defaults().

const ast_string_field cid_num

Definition at line 139 of file chan_console.c.

Referenced by console_new(), and set_pvt_defaults().

const ast_string_field context

Definition at line 139 of file chan_console.c.

Referenced by cli_console_dial(), and set_pvt_defaults().

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 158 of file chan_console.c.

Referenced by destroy_pvts(), and pvt_mark_destroy_cb().

const ast_string_field exten

Definition at line 139 of file chan_console.c.

Referenced by cli_console_dial(), and set_pvt_defaults().

struct ast_frame fr

A frame for preparing to queue on to the channel

Definition at line 145 of file chan_console.c.

unsigned int hookstate

On-hook = 0, Off-hook = 1

Definition at line 149 of file chan_console.c.

Referenced by cli_console_answer(), cli_console_flash(), cli_console_hangup(), console_call(), console_hangup(), and stop_streams().

const ast_string_field input_device

Definition at line 139 of file chan_console.c.

Referenced by open_stream().

const ast_string_field language

Definition at line 139 of file chan_console.c.

Referenced by console_new(), and set_pvt_defaults().

const ast_string_field mohinterpret

Definition at line 139 of file chan_console.c.

Referenced by console_indicate(), and set_pvt_defaults().

unsigned int muted

Unmuted = 0, Muted = 1

Definition at line 151 of file chan_console.c.

Referenced by cli_console_mute().

const ast_string_field name

Definition at line 139 of file chan_console.c.

Referenced by cli_console_active(), console_new(), find_pvt(), pvt_cmp_cb(), and pvt_hash_cb().

const ast_string_field output_device

Definition at line 139 of file chan_console.c.

Referenced by open_stream().

unsigned int overridecontext

Ignore context in the console dial CLI command

Definition at line 155 of file chan_console.c.

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

struct ast_channel* owner

Current channel for this device

Definition at line 141 of file chan_console.c.

Referenced by cli_console_answer(), cli_console_dial(), cli_console_flash(), cli_console_hangup(), cli_console_sendtext(), console_fixup(), console_hangup(), console_new(), console_request(), start_stream(), and stream_monitor().

const ast_string_field parkinglot

Definition at line 139 of file chan_console.c.

Referenced by set_pvt_defaults().

PaStream* stream

Current PortAudio stream for this device

Definition at line 143 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 147 of file chan_console.c.

Referenced by start_stream(), and stop_stream().

pthread_t thread

ID for the stream monitor thread

Definition at line 160 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 Mon Jun 27 16:51:23 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7