Asterisk - The Open Source Telephony Project
18.5.0
|
#include <isdn_lib_intern.h>
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_bchannel * | holding |
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_stack * | next |
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 |
Definition at line 64 of file isdn_lib_intern.h.
int b_num |
/brief Number of B channels supported by this port
Definition at line 77 of file isdn_lib_intern.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_addr(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), init_bc(), manager_find_bc_by_pid(), misdn_lib_destroy(), misdn_lib_get_free_bc(), misdn_lib_init(), misdn_lib_send_restart(), setup_bc(), and stack_init().
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().
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[])
Definition at line 132 of file isdn_lib_intern.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_addr(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), handle_event_nt(), manager_find_bc_by_pid(), misdn_lib_destroy(), misdn_lib_get_free_bc(), misdn_lib_init(), misdn_lib_send_restart(), and setup_bc().
int blocked |
TRUE if port is blocked.
Definition at line 97 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), misdn_lib_get_free_bc(), misdn_lib_is_port_blocked(), misdn_lib_port_block(), misdn_lib_port_unblock(), misdn_lib_port_up(), and misdn_lib_reinit_nt_stack().
int busy |
Definition at line 123 of file isdn_lib_intern.h.
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[])
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().
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().
int l1link |
TRUE if Layer 1 is UP.
Definition at line 103 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), handle_event_nt(), misdn_lib_get_port_up(), misdn_lib_isdn_l1watcher(), misdn_lib_port_up(), misdn_lib_send_event(), and stack_init().
int l2_id |
Definition at line 88 of file isdn_lib_intern.h.
int l2link |
TRUE if Layer 2 is UP.
Definition at line 100 of file isdn_lib_intern.h.
Referenced by get_show_stack_details(), handle_event_nt(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), and stack_init().
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().
int midev |
mISDN device handle returned by mISDN_open()
Definition at line 109 of file isdn_lib_intern.h.
Referenced by clean_up_bc(), handle_bchan(), manager_bchannel_activate(), manager_bchannel_deactivate(), misdn_lib_destroy(), misdn_lib_get_l1_down(), misdn_lib_get_l1_up(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_get_short_status(), misdn_lib_init(), misdn_lib_tx2misdn_frm(), setup_bc(), stack_destroy(), and stack_init().
struct misdn_stack* next |
Next stack in the list of stacks.
Definition at line 144 of file isdn_lib_intern.h.
Referenced by find_bc_by_addr(), find_bc_by_confid(), find_stack_by_addr(), find_stack_by_mgr(), find_stack_by_port(), get_show_stack_details(), get_stack_by_bc(), handle_timers(), manager_event_handler(), manager_find_bc_by_pid(), misdn_dump_chanlist(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_maxchans(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_init(), misdn_lib_is_port_blocked(), misdn_lib_is_ptp(), misdn_lib_isdn_l1watcher(), misdn_lib_nt_keepcalls(), misdn_lib_port_block(), misdn_lib_port_is_nt(), misdn_lib_port_is_pri(), misdn_lib_port_unblock(), and misdn_lib_port_up().
net_stack_t nst |
is first element because &nst equals &mISDNlist
Definition at line 66 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_nt_keepcalls(), misdn_lib_reinit_nt_stack(), stack_destroy(), and stack_init().
pthread_mutex_t nstlock |
Definition at line 68 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), stack_destroy(), and stack_init().
int nt |
TRUE if NT side of protocol (TE otherwise)
Definition at line 112 of file isdn_lib_intern.h.
Referenced by build_alerting(), build_connect(), build_connect_acknowledge(), build_disconnect(), build_facility(), build_hold(), build_hold_acknowledge(), build_hold_reject(), build_information(), build_notify(), build_proceeding(), build_progress(), build_release(), build_release_complete(), build_restart(), build_resume(), build_resume_acknowledge(), build_resume_reject(), build_retrieve(), build_retrieve_acknowledge(), build_retrieve_reject(), build_setup(), build_setup_acknowledge(), build_status(), build_status_enquiry(), build_suspend(), build_suspend_acknowledge(), build_suspend_reject(), build_timeout(), build_user_information(), create_process(), get_show_stack_details(), handle_cr(), handle_event_nt(), handle_frm_te(), init_bc(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_get_port_up(), misdn_lib_log_ies(), misdn_lib_port_is_nt(), misdn_lib_port_restart(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_make_dummy(), release_cr(), stack_destroy(), and stack_init().
int port |
Logical Layer 1 port associated with this stack.
Definition at line 126 of file isdn_lib_intern.h.
Referenced by clean_up_bc(), create_process(), dump_chan_list(), empty_chan_in_stack(), find_free_chan_in_stack(), find_stack_by_port(), get_show_stack_details(), get_stack_by_bc(), handle_bchan(), handle_cr(), handle_event_nt(), handle_event_te(), handle_frm_te(), init_bc(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_ec_disable(), manager_ec_enable(), manager_event_handler(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_l1_down(), misdn_lib_get_l1_up(), misdn_lib_get_maxchans(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_is_port_blocked(), misdn_lib_is_ptp(), misdn_lib_isdn_l1watcher(), misdn_lib_log_ies(), misdn_lib_port_block(), misdn_lib_port_is_nt(), misdn_lib_port_is_pri(), misdn_lib_port_restart(), misdn_lib_port_unblock(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_lib_tx2misdn_frm(), misdn_make_dummy(), parse_restart(), release_cr(), set_chan_in_stack(), setup_bc(), stack_holder_add(), stack_holder_find(), stack_holder_remove(), stack_init(), and Registration::write().
int pri |
TRUE if ISDN-PRI (ISDN-BRI otherwise)
Definition at line 115 of file isdn_lib_intern.h.
Referenced by create_process(), dec_ie_channel_id(), enc_ie_channel_id(), find_free_chan_in_stack(), handle_event_te(), init_bc(), misdn_lib_get_free_bc(), misdn_lib_get_maxchans(), misdn_lib_port_is_pri(), misdn_lib_reinit_nt_stack(), and stack_init().
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().
int ptp |
TRUE if Point-To-Point(PTP) (Point-To-Multipoint(PTMP) otherwise)
Definition at line 83 of file isdn_lib_intern.h.
Referenced by create_process(), get_show_stack_details(), handle_event_nt(), handle_event_te(), misdn_lib_get_free_bc(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_is_ptp(), misdn_lib_port_up(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), and stack_init().
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().
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().
int upper_id |
Upper layer mISDN ID (addr) (Layer 2/4)
Definition at line 94 of file isdn_lib_intern.h.
Referenced by create_process(), find_stack_by_addr(), handle_event_nt(), misdn_lib_get_l1_down(), misdn_lib_get_l1_up(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_get_port_info(), misdn_lib_get_short_status(), misdn_lib_port_restart(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), release_cr(), stack_destroy(), and stack_init().
msg_queue_t upqueue |
Definition at line 122 of file isdn_lib_intern.h.