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

Data Fields

int actions
 
unsigned char * buf
 
ssize_t buf_len
 
size_t buf_size
 
time_t checktime
 
ast_cond_t cond
 
char curfunc [80]
 
struct {
   struct ast_sockaddr   addr
 
   unsigned short   callno
 
   unsigned char   csub
 
   unsigned char   type
 
ffinfo
 
struct {
   struct iax2_pkt_buf *   first
 
   struct iax2_pkt_buf *   last
 
full_frames
 
ast_cond_t init_cond
 
ast_mutex_t init_lock
 
struct ast_sockaddr ioaddr
 
int iofd
 
enum iax2_thread_iostate iostate
 
struct {
   struct iax2_thread *   next
 
list
 
ast_mutex_t lock
 
unsigned char readbuf [4096]
 
const void * scheddata
 
void(* schedfunc )(const void *)
 
unsigned char stop
 
pthread_t threadid
 
int threadnum
 
enum iax2_thread_type type
 

Detailed Description

Definition at line 1060 of file chan_iax2.c.

Field Documentation

◆ actions

int actions

Definition at line 1071 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

◆ addr

struct ast_sockaddr addr

Definition at line 1091 of file chan_iax2.c.

Referenced by socket_read().

◆ buf

unsigned char* buf

◆ buf_len

ssize_t buf_len

◆ buf_size

size_t buf_size

Definition at line 1078 of file chan_iax2.c.

Referenced by handle_deferred_full_frames(), and socket_read().

◆ callno

unsigned short callno

Definition at line 1090 of file chan_iax2.c.

Referenced by __send_lagrq(), __send_ping(), and socket_read().

◆ checktime

time_t checktime

Definition at line 1080 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

◆ cond

ast_cond_t cond

◆ csub

unsigned char csub

Definition at line 1093 of file chan_iax2.c.

Referenced by socket_read(), and uncompress_subclass().

◆ curfunc

char curfunc[80]

◆ ffinfo

struct { ... } ffinfo

if this thread is processing a full frame, some information about that frame will be stored here, so we can avoid dispatching any more full frames for that callno to other threads

Referenced by find_idle_thread(), and socket_read().

◆ first

struct iax2_pkt_buf* first

Definition at line 1098 of file chan_iax2.c.

◆ full_frames

struct { ... } full_frames

Queued up full frames for processing. If more full frames arrive for a call which this thread is already processing a full frame for, they are queued up here.

Referenced by defer_full_frame(), and handle_deferred_full_frames().

◆ init_cond

ast_cond_t init_cond

◆ init_lock

ast_mutex_t init_lock

◆ ioaddr

struct ast_sockaddr ioaddr

Definition at line 1074 of file chan_iax2.c.

Referenced by socket_process_helper(), and socket_read().

◆ iofd

int iofd

Definition at line 1079 of file chan_iax2.c.

Referenced by socket_process_helper(), and socket_read().

◆ iostate

enum iax2_thread_iostate iostate

◆ last

struct iax2_pkt_buf* last

Definition at line 1098 of file chan_iax2.c.

◆ list

struct { ... } list

◆ lock

◆ next

struct iax2_thread* next

Definition at line 1061 of file chan_iax2.c.

◆ readbuf

unsigned char readbuf[4096]

Definition at line 1075 of file chan_iax2.c.

Referenced by socket_read().

◆ scheddata

const void* scheddata

Definition at line 1066 of file chan_iax2.c.

Referenced by __schedule_action(), and iax2_process_thread().

◆ schedfunc

void(* schedfunc) (const void *)

Definition at line 1065 of file chan_iax2.c.

Referenced by __schedule_action(), and iax2_process_thread().

◆ stop

unsigned char stop

Definition at line 1099 of file chan_iax2.c.

Referenced by cleanup_thread_list(), and iax2_process_thread().

◆ threadid

pthread_t threadid

Definition at line 1072 of file chan_iax2.c.

Referenced by cleanup_thread_list(), find_idle_thread(), and start_network_thread().

◆ threadnum

int threadnum

◆ type [1/2]

enum iax2_thread_type type

◆ type [2/2]

unsigned char type

Definition at line 1092 of file chan_iax2.c.

Referenced by Property::load().


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