Thu Apr 28 2011 17:16:26

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]
 B Channel record pool array.
struct misdn_bchannelbc_list
int blocked
 TRUE if port is blocked.
int busy
int channels [MAX_BCHANS+1]
 Array of B channels in use (a[0] = B1). TRUE if B channel in use.
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
time_t l2establish
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 [0x100+1]
 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 57 of file isdn_lib_intern.h.


Field Documentation

int b_stids[MAX_BCHANS+1]

B Channel mISDN driver stack IDs (Child stack IDs)

Definition at line 73 of file isdn_lib_intern.h.

Referenced by setup_bc(), and stack_init().

Definition at line 126 of file isdn_lib_intern.h.

int busy

Definition at line 118 of file isdn_lib_intern.h.

int channels[MAX_BCHANS+1]

Array of B channels in use (a[0] = B1). TRUE if B channel in use.

Definition at line 129 of file isdn_lib_intern.h.

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

int d_stid

D Channel mISDN driver stack ID (Parent stack ID)

Definition at line 67 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 116 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 132 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 81 of file isdn_lib_intern.h.

time_t l2establish

Definition at line 95 of file isdn_lib_intern.h.

int l2upcnt

Number of consecutive times PTP Layer 2 declared down.

Definition at line 79 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 84 of file isdn_lib_intern.h.

Referenced by misdn_lib_get_l1_down(), misdn_lib_reinit_nt_stack(), stack_destroy(), and stack_init().

manager_t mgr

Definition at line 60 of file isdn_lib_intern.h.

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

net_stack_t nst
int procids[0x100+1]

CR Process ID allocation table. TRUE if ID allocated.

Definition at line 113 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 101 of file isdn_lib_intern.h.

Referenced by handle_event_nt().

pthread_mutex_t st_lock

Stack struct critical section lock.

Definition at line 64 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 117 of file isdn_lib_intern.h.

Referenced by manager_event_handler(), and stack_init().


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