Asterisk - The Open Source Telephony Project  18.5.0
Data Structures | Data Fields
mbl_pvt Struct Reference
Collaboration diagram for mbl_pvt:
Collaboration graph
[legend]

Data Structures

struct  msg_queue
 

Data Fields

struct adapter_pvtadapter
 
bdaddr_t addr
 
int alignment_count
 
unsigned int alignment_detection_triggered:1
 
short alignment_samples [4]
 
unsigned int answered:1
 
unsigned int blackberry:1
 
struct ast_smootherbt_in_smoother
 
struct ast_smootherbt_out_smoother
 
unsigned int connected:1
 
char context [AST_MAX_CONTEXT]
 
unsigned int do_alignment_detection:1
 
struct ast_dspdsp
 
struct {
   struct mbl_pvt *   next
 
entry
 
struct ast_frame fr
 
int group
 
int hangupcause
 
unsigned int has_sms:1
 
struct hfp_pvthfp
 
char id [31]
 
unsigned int incoming:1
 
unsigned int incoming_sms:1
 
char io_buf [CHANNEL_FRAME_SIZE+AST_FRIENDLY_OFFSET]
 
ast_mutex_t lock
 
pthread_t monitor_thread
 
struct mbl_pvt::msg_queue msg_queue
 
unsigned int needcallerid:1
 
unsigned int needchup:1
 
unsigned int needring:1
 
unsigned int no_callsetup:1
 
unsigned int outgoing:1
 
unsigned int outgoing_sms:1
 
struct ast_channelowner
 
char rfcomm_buf [256]
 
int rfcomm_port
 
int rfcomm_socket
 
int ring_sched_id
 
struct ast_sched_contextsched
 
int sco_socket
 
int timeout
 
enum mbl_type type
 

Detailed Description

Definition at line 118 of file chan_mobile.c.

Field Documentation

◆ adapter

struct adapter_pvt* adapter

◆ addr

bdaddr_t addr

◆ alignment_count

int alignment_count

Definition at line 146 of file chan_mobile.c.

Referenced by do_alignment_detection(), and mbl_new().

◆ alignment_detection_triggered

unsigned int alignment_detection_triggered

Definition at line 143 of file chan_mobile.c.

Referenced by do_alignment_detection(), and mbl_new().

◆ alignment_samples

short alignment_samples[4]

Definition at line 145 of file chan_mobile.c.

Referenced by do_alignment_detection().

◆ answered

unsigned int answered

we sent/received an answer

Definition at line 160 of file chan_mobile.c.

Referenced by do_monitor_headset(), handle_response_ciev(), mbl_answer(), and mbl_new().

◆ blackberry

unsigned int blackberry

Definition at line 144 of file chan_mobile.c.

Referenced by do_monitor_phone(), handle_response_ok(), and mbl_load_device().

◆ bt_in_smoother

struct ast_smoother* bt_in_smoother

Definition at line 136 of file chan_mobile.c.

Referenced by mbl_load_device(), mbl_new(), mbl_read(), and unload_module().

◆ bt_out_smoother

struct ast_smoother* bt_out_smoother

Definition at line 135 of file chan_mobile.c.

Referenced by mbl_load_device(), mbl_new(), mbl_write(), and unload_module().

◆ connected

unsigned int connected

◆ context

char context[AST_MAX_CONTEXT]

Definition at line 129 of file chan_mobile.c.

Referenced by mbl_load_device(), and mbl_new().

◆ do_alignment_detection

unsigned int do_alignment_detection

Definition at line 142 of file chan_mobile.c.

Referenced by do_alignment_detection(), mbl_new(), and mbl_read().

◆ dsp

struct ast_dsp* dsp

Definition at line 148 of file chan_mobile.c.

Referenced by mbl_load_device(), mbl_new(), mbl_read(), and unload_module().

◆ entry

struct { ... } entry

◆ fr

struct ast_frame fr

Definition at line 120 of file chan_mobile.c.

Referenced by mbl_read().

◆ group

int group

Definition at line 126 of file chan_mobile.c.

Referenced by handle_cli_mobile_show_devices(), mbl_load_device(), and mbl_request().

◆ hangupcause

int hangupcause

Definition at line 150 of file chan_mobile.c.

Referenced by handle_response_busy(), mbl_call(), and mbl_queue_hangup().

◆ has_sms

unsigned int has_sms

◆ hfp

struct hfp_pvt* hfp

◆ id

char id[31]

◆ incoming

unsigned int incoming

incoming call

Definition at line 154 of file chan_mobile.c.

Referenced by do_monitor_headset(), handle_response_ciev(), mbl_answer(), and mbl_hangup().

◆ incoming_sms

unsigned int incoming_sms

◆ io_buf

Definition at line 134 of file chan_mobile.c.

Referenced by mbl_read().

◆ lock

◆ monitor_thread

pthread_t monitor_thread

Definition at line 138 of file chan_mobile.c.

Referenced by mbl_load_device(), start_monitor(), and unload_module().

◆ msg_queue

◆ needcallerid

unsigned int needcallerid

we need callerid

Definition at line 157 of file chan_mobile.c.

Referenced by handle_response_ciev(), handle_response_clip(), and handle_response_ring().

◆ needchup

unsigned int needchup

◆ needring

unsigned int needring

we need to send a RING

Definition at line 159 of file chan_mobile.c.

Referenced by do_monitor_headset(), headset_send_ring(), mbl_call(), and mbl_hangup().

◆ next

struct mbl_pvt* next

Definition at line 163 of file chan_mobile.c.

◆ no_callsetup

unsigned int no_callsetup

Definition at line 140 of file chan_mobile.c.

Referenced by hfp_parse_cind_test(), and mbl_load_device().

◆ outgoing

unsigned int outgoing

outgoing call

Definition at line 153 of file chan_mobile.c.

Referenced by do_monitor_headset(), handle_response_ciev(), handle_response_ok(), mbl_call(), and mbl_hangup().

◆ outgoing_sms

unsigned int outgoing_sms

outgoing sms

Definition at line 155 of file chan_mobile.c.

Referenced by handle_cli_mobile_show_devices(), handle_response_error(), and handle_response_ok().

◆ owner

struct ast_channel* owner

◆ rfcomm_buf

char rfcomm_buf[256]

Definition at line 133 of file chan_mobile.c.

◆ rfcomm_port

int rfcomm_port

Definition at line 131 of file chan_mobile.c.

Referenced by do_discovery(), and mbl_load_device().

◆ rfcomm_socket

int rfcomm_socket

◆ ring_sched_id

int ring_sched_id

Definition at line 147 of file chan_mobile.c.

Referenced by mbl_call(), and mbl_load_device().

◆ sched

Definition at line 149 of file chan_mobile.c.

Referenced by do_monitor_headset(), mbl_call(), mbl_load_device(), and unload_module().

◆ sco_socket

int sco_socket

◆ timeout

int timeout

used to set the timeout for rfcomm data (may be used in the future)

Definition at line 139 of file chan_mobile.c.

Referenced by do_monitor_phone(), handle_response_error(), handle_response_ok(), and mbl_load_device().

◆ type

enum mbl_type type

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