Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
misdn_stack Struct Reference

#include <isdn_lib_intern.h>

Collaboration diagram for misdn_stack:
Collaboration graph
[legend]

Data Fields

int b_num
 
int b_stids [MAX_BCHANS+1]
 B Channel mISDN driver stack IDs (Child stack IDs) More...
 
struct misdn_bchannel bc [MAX_BCHANS+1+MISDN_MAX_REGISTER_LINKS]
 B Channel record pool array (Must be dimensioned the same as struct misdn_stack.channels[]) More...
 
int blocked
 TRUE if port is blocked. More...
 
int busy
 
char channels [MAX_BCHANS+1+MISDN_MAX_REGISTER_LINKS]
 Array of B channels in use (a[0] = B1). TRUE if B channel in use. (Must be dimensioned the same as struct misdn_stack.bc[]) More...
 
int d_stid
 D Channel mISDN driver stack ID (Parent stack ID) More...
 
msg_queue_t downqueue
 Queue of Event messages to send to mISDN. More...
 
struct misdn_bchannelholding
 List of held channels. More...
 
int l1link
 TRUE if Layer 1 is UP. More...
 
int l2_id
 
int l2link
 TRUE if Layer 2 is UP. More...
 
int l2upcnt
 Number of consecutive times PTP Layer 2 declared down. More...
 
int lower_id
 Lower layer mISDN ID (addr) (Layer 1/3) More...
 
manager_t mgr
 
int midev
 mISDN device handle returned by mISDN_open() More...
 
struct misdn_stacknext
 Next stack in the list of stacks. More...
 
net_stack_t nst
 
pthread_mutex_t nstlock
 
int nt
 TRUE if NT side of protocol (TE otherwise) More...
 
int port
 Logical Layer 1 port associated with this stack. More...
 
int pri
 TRUE if ISDN-PRI (ISDN-BRI otherwise) More...
 
int procids [MAXPROCS]
 CR Process ID allocation table. TRUE if ID allocated. More...
 
int ptp
 TRUE if Point-To-Point(PTP) (Point-To-Multipoint(PTMP) otherwise) More...
 
int restart_sent
 TRUE if restart has been sent to the other side after stack startup. More...
 
pthread_mutex_t st_lock
 Stack struct critical section lock. More...
 
int upper_id
 Upper layer mISDN ID (addr) (Layer 2/4) More...
 
msg_queue_t upqueue
 

Detailed Description

Definition at line 64 of file isdn_lib_intern.h.

Field Documentation

◆ b_num

int b_num

◆ b_stids

int b_stids[MAX_BCHANS+1]

B Channel mISDN driver stack IDs (Child stack IDs)

Definition at line 80 of file isdn_lib_intern.h.

Referenced by setup_bc(), and stack_init().

◆ bc

◆ blocked

int blocked

◆ busy

int busy

Definition at line 123 of file isdn_lib_intern.h.

◆ channels

Array of B channels in use (a[0] = B1). TRUE if B channel in use. (Must be dimensioned the same as struct misdn_stack.bc[])

Definition at line 138 of file isdn_lib_intern.h.

Referenced by dump_chan_list(), empty_chan_in_stack(), find_free_chan_in_stack(), and set_chan_in_stack().

◆ d_stid

int d_stid

D Channel mISDN driver stack ID (Parent stack ID)

Definition at line 74 of file isdn_lib_intern.h.

Referenced by misdn_lib_reinit_nt_stack(), and stack_init().

◆ downqueue

msg_queue_t downqueue

Queue of Event messages to send to mISDN.

Definition at line 121 of file isdn_lib_intern.h.

Referenced by manager_event_handler(), misdn_lib_send_event(), and stack_init().

◆ holding

struct misdn_bchannel* holding

List of held channels.

Definition at line 141 of file isdn_lib_intern.h.

Referenced by stack_holder_add(), stack_holder_find(), stack_holder_remove(), and stack_init().

◆ l1link

int l1link

◆ l2_id

int l2_id

Definition at line 88 of file isdn_lib_intern.h.

◆ l2link

int l2link

◆ l2upcnt

int l2upcnt

Number of consecutive times PTP Layer 2 declared down.

Definition at line 86 of file isdn_lib_intern.h.

Referenced by handle_event_nt().

◆ lower_id

int lower_id

Lower layer mISDN ID (addr) (Layer 1/3)

Definition at line 91 of file isdn_lib_intern.h.

Referenced by misdn_lib_reinit_nt_stack(), and stack_init().

◆ mgr

manager_t mgr

Definition at line 67 of file isdn_lib_intern.h.

Referenced by find_stack_by_mgr(), misdn_lib_reinit_nt_stack(), and stack_init().

◆ midev

int midev

◆ next

struct misdn_stack* next

◆ nst

net_stack_t nst

◆ nstlock

pthread_mutex_t nstlock

◆ nt

int nt

◆ port

int port

◆ pri

int pri

◆ procids

int procids[MAXPROCS]

CR Process ID allocation table. TRUE if ID allocated.

Definition at line 118 of file isdn_lib_intern.h.

Referenced by create_process(), handle_event_nt(), and release_cr().

◆ ptp

int ptp

◆ restart_sent

int restart_sent

TRUE if restart has been sent to the other side after stack startup.

Definition at line 106 of file isdn_lib_intern.h.

Referenced by handle_event_nt().

◆ st_lock

pthread_mutex_t st_lock

Stack struct critical section lock.

Definition at line 71 of file isdn_lib_intern.h.

Referenced by find_free_chan_in_stack(), misdn_lib_get_free_bc(), stack_destroy(), and stack_init().

◆ upper_id

int upper_id

◆ upqueue

msg_queue_t upqueue

Definition at line 122 of file isdn_lib_intern.h.


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