Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
console_pvt Struct Reference

Console pvt structure. More...

Collaboration diagram for console_pvt:
Collaboration graph
[legend]

Data Fields

struct ast_string_field_mgr __field_mgr
 
struct ast_string_field_pool__field_mgr_pool
 
unsigned int abort:1
 
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
 
struct 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
 
struct 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 124 of file chan_console.c.

Field Documentation

◆ __field_mgr

struct ast_string_field_mgr __field_mgr

Definition at line 146 of file chan_console.c.

◆ __field_mgr_pool

struct ast_string_field_pool* __field_mgr_pool

Name of the device

Default context for outgoing calls

Default extension for outgoing calls

Default CallerID number

Default CallerID name

Default MOH class to listen to, if:

  • No MOH class set on the channel
  • Peer channel putting this device on hold did not suggest a class

Default language

Default parkinglot

Definition at line 146 of file chan_console.c.

◆ abort

unsigned int abort

Abort stream processing?

Definition at line 156 of file chan_console.c.

Referenced by stop_stream(), and stream_monitor().

◆ autoanswer

unsigned int autoanswer

Automatically answer incoming calls

Definition at line 162 of file chan_console.c.

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

◆ cid_name

const ast_string_field cid_name

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), console_new(), and set_pvt_defaults().

◆ cid_num

const ast_string_field cid_num

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), console_new(), and set_pvt_defaults().

◆ context

const ast_string_field context

Definition at line 146 of file chan_console.c.

Referenced by cli_console_dial(), cli_list_devices(), and set_pvt_defaults().

◆ destroy

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

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

◆ exten

const ast_string_field exten

Definition at line 146 of file chan_console.c.

Referenced by cli_console_dial(), cli_list_devices(), and set_pvt_defaults().

◆ fr

struct ast_frame fr

A frame for preparing to queue on to the channel

Definition at line 152 of file chan_console.c.

◆ hookstate

unsigned int hookstate

◆ input_device

const ast_string_field input_device

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), and open_stream().

◆ language

const ast_string_field language

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), console_new(), and set_pvt_defaults().

◆ mohinterpret

const ast_string_field mohinterpret

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), console_indicate(), and set_pvt_defaults().

◆ muted

unsigned int muted

Unmuted = 0, Muted = 1

Definition at line 160 of file chan_console.c.

Referenced by cli_console_mute(), and cli_list_devices().

◆ name

const ast_string_field name

◆ output_device

const ast_string_field output_device

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), and open_stream().

◆ overridecontext

unsigned int overridecontext

Ignore context in the console dial CLI command

Definition at line 164 of file chan_console.c.

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

◆ owner

struct ast_channel* owner

◆ parkinglot

const ast_string_field parkinglot

Definition at line 146 of file chan_console.c.

Referenced by cli_list_devices(), and set_pvt_defaults().

◆ stream

PaStream* stream

Current PortAudio stream for this device

Definition at line 150 of file chan_console.c.

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

◆ streamstate

unsigned int streamstate

Running = 1, Not running = 0

Definition at line 154 of file chan_console.c.

Referenced by start_stream(), and stop_stream().

◆ thread

pthread_t thread

ID for the stream monitor thread

Definition at line 169 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: