Sat Apr 26 2014 22:03:25

Asterisk developer's documentation


misdn_stack Struct Reference

#include <isdn_lib_intern.h>

Collaboration diagram for misdn_stack:

Data Fields

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

Detailed Description

Definition at line 64 of file isdn_lib_intern.h.


Field Documentation

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

int busy

Definition at line 123 of file isdn_lib_intern.h.

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

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

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

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

int l2_id

Definition at line 88 of file isdn_lib_intern.h.

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

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

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

net_stack_t nst

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

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

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

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: