#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). | |
misdn_bchannel | bc [MAX_BCHANS+1] |
B Channel record pool array. | |
misdn_bchannel * | bc_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. | |
misdn_bchannel * | holding |
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() | |
misdn_stack * | next |
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 |
Definition at line 53 of file isdn_lib_intern.h.
int b_num |
/brief Number of B channels supported by this port
Definition at line 66 of file isdn_lib_intern.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_addr(), find_bc_by_channel(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), 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 69 of file isdn_lib_intern.h.
Referenced by setup_bc(), and stack_init().
struct misdn_bchannel bc[MAX_BCHANS+1] |
B Channel record pool array.
Definition at line 120 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(), clean_up_bc(), clear_l3(), create_process(), dec_ie_channel_id(), dump_chan_list(), enc_ie_channel_id(), find_bc_by_addr(), find_bc_by_channel(), find_bc_by_confid(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), get_stack_by_bc(), handle_bchan(), handle_err(), handle_event(), handle_event_nt(), init_bc(), isdn_lib_stop_dtmf(), isdn_lib_update_ec(), isdn_lib_update_rxgain(), isdn_lib_update_txgain(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_clean_bc(), manager_ec_disable(), manager_ec_enable(), manager_find_bc_by_pid(), manager_ph_control(), manager_ph_control_block(), misdn_join_conf(), misdn_lib_destroy(), misdn_lib_find_held_bc(), misdn_lib_get_free_bc(), misdn_lib_init(), misdn_lib_log_ies(), misdn_lib_release(), misdn_lib_send_restart(), misdn_lib_send_tone(), misdn_lib_setup_bc(), misdn_lib_tx2misdn_frm(), misdn_send_lock(), misdn_send_unlock(), misdn_split_conf(), parse_alerting(), parse_connect(), parse_disconnect(), parse_facility(), parse_information(), parse_proceeding(), parse_progress(), parse_release(), parse_release_complete(), parse_restart(), parse_setup(), parse_setup_acknowledge(), parse_status(), queue_cleanup_bc(), set_channel(), and setup_bc().
struct misdn_bchannel* bc_list |
Definition at line 122 of file isdn_lib_intern.h.
int blocked |
TRUE if port is blocked.
Definition at line 86 of file isdn_lib_intern.h.
Referenced by 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 114 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 125 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 63 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 112 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 128 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 94 of file isdn_lib_intern.h.
Referenced by handle_err(), handle_event_nt(), misdn_lib_get_port_up(), misdn_lib_isdn_l1watcher(), misdn_lib_port_up(), and misdn_lib_send_event().
int l2_id |
Definition at line 77 of file isdn_lib_intern.h.
time_t l2establish |
Definition at line 91 of file isdn_lib_intern.h.
int l2link |
TRUE if Layer 2 is UP.
Definition at line 89 of file isdn_lib_intern.h.
Referenced by handle_err(), handle_event_nt(), misdn_lib_get_port_down(), misdn_lib_get_port_up(), misdn_lib_port_up(), and misdn_lib_reinit_nt_stack().
int l2upcnt |
Number of consecutive times PTP Layer 2 declared down.
Definition at line 75 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 80 of file isdn_lib_intern.h.
Referenced by misdn_lib_get_l1_down(), misdn_lib_reinit_nt_stack(), and stack_destroy().
manager_t mgr |
Definition at line 56 of file isdn_lib_intern.h.
Referenced by find_stack_by_mgr(), misdn_lib_init(), and misdn_lib_reinit_nt_stack().
int midev |
mISDN device handle returned by mISDN_open()
Definition at line 100 of file isdn_lib_intern.h.
Referenced by clean_up_bc(), handle_bchan(), handle_timers(), 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 131 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_free_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_pri(), misdn_lib_port_unblock(), and misdn_lib_port_up().
net_stack_t nst |
is first element because &nst equals &mISDNlist
Definition at line 55 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), handle_timers(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_nt_keepcalls(), misdn_lib_reinit_nt_stack(), and stack_destroy().
pthread_mutex_t nstlock |
Definition at line 57 of file isdn_lib_intern.h.
Referenced by handle_event_nt(), handle_timers(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), and stack_destroy().
int nt |
TRUE if NT side of protocol (TE otherwise).
Definition at line 103 of file isdn_lib_intern.h.
Referenced by create_process(), handle_cr(), handle_event(), handle_event_nt(), handle_timers(), init_bc(), manager_event_handler(), misdn_lib_get_l2_down(), misdn_lib_get_l2_up(), misdn_lib_log_ies(), misdn_lib_port_restart(), misdn_lib_send_event(), misdn_lib_send_restart(), release_cr(), stack_destroy(), and stack_init().
int port |
Logical Layer 1 port associated with this stack.
Definition at line 117 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(), handle_event_nt(), 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_free_bc(), misdn_lib_get_l1_down(), 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_log_ies(), misdn_lib_port_block(), misdn_lib_port_is_pri(), misdn_lib_port_restart(), misdn_lib_port_unblock(), misdn_lib_port_up(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_lib_tx2misdn_frm(), parse_restart(), release_cr(), set_chan_in_stack(), setup_bc(), stack_holder_add(), stack_holder_find(), stack_holder_remove(), and stack_init().
int pri |
TRUE if ISDN-PRI (ISDN-BRI otherwise).
Definition at line 106 of file isdn_lib_intern.h.
Referenced by dec_ie_channel_id(), enc_ie_channel_id(), find_free_chan_in_stack(), handle_event(), 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[0x100+1] |
CR Process ID allocation table. TRUE if ID allocated.
Definition at line 109 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 72 of file isdn_lib_intern.h.
Referenced by handle_event(), handle_event_nt(), 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(), and stack_init().
int restart_sent |
TRUE if restart has been sent to the other side after stack startup.
Definition at line 97 of file isdn_lib_intern.h.
Referenced by handle_event_nt().
pthread_mutex_t st_lock |
Stack struct critical section lock.
Definition at line 60 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 83 of file isdn_lib_intern.h.
Referenced by find_stack_by_addr(), handle_event_nt(), 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(), and stack_destroy().
msg_queue_t upqueue |
Definition at line 113 of file isdn_lib_intern.h.
Referenced by manager_event_handler(), and stack_init().