Wed Jan 8 2020 09:50:24

Asterisk developer's documentation


iax2_thread Struct Reference

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 {
   unsigned short   callno
 
   unsigned char   csub
 
   struct sockaddr_in   sin
 
   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
 
int iofd
 
struct sockaddr_in iosin
 
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 1002 of file chan_iax2.c.

Field Documentation

int actions

Definition at line 1013 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

unsigned char* buf
ssize_t buf_len
size_t buf_size

Definition at line 1020 of file chan_iax2.c.

Referenced by handle_deferred_full_frames(), and socket_read().

unsigned short callno

Definition at line 1032 of file chan_iax2.c.

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

time_t checktime

Definition at line 1022 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

unsigned char csub

Definition at line 1035 of file chan_iax2.c.

Referenced by socket_read(), and uncompress_subclass().

char curfunc[80]
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().

struct iax2_pkt_buf* first

Definition at line 1040 of file chan_iax2.c.

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().

int iofd

Definition at line 1021 of file chan_iax2.c.

Referenced by socket_process(), and socket_read().

struct sockaddr_in iosin

Definition at line 1016 of file chan_iax2.c.

Referenced by socket_process(), and socket_read().

struct iax2_pkt_buf* last

Definition at line 1040 of file chan_iax2.c.

struct { ... } list
struct iax2_thread* next

Definition at line 1003 of file chan_iax2.c.

unsigned char readbuf[4096]

Definition at line 1017 of file chan_iax2.c.

Referenced by socket_read().

const void* scheddata

Definition at line 1008 of file chan_iax2.c.

Referenced by __schedule_action(), and iax2_process_thread().

void(* schedfunc)(const void *)

Definition at line 1007 of file chan_iax2.c.

Referenced by __schedule_action(), and iax2_process_thread().

struct sockaddr_in sin

Definition at line 1033 of file chan_iax2.c.

Referenced by socket_read().

unsigned char stop

Definition at line 1041 of file chan_iax2.c.

Referenced by cleanup_thread_list(), and iax2_process_thread().

pthread_t threadid

Definition at line 1014 of file chan_iax2.c.

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

int threadnum
unsigned char type

Definition at line 1034 of file chan_iax2.c.


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