#include <sig_pri.h>

Data Fields | |
| unsigned int | append_msn_to_user_tag:1 |
| struct sig_pri_callback * | calls |
| struct ast_cc_config_params * | cc_params |
| int | congestion_devstate |
| Congestion device state of the span. | |
| int | dchan_logical_span [SIG_PRI_NUM_DCHANS] |
| int | dchanavail [SIG_PRI_NUM_DCHANS] |
| struct pri * | dchans [SIG_PRI_NUM_DCHANS] |
| int | debug |
| int | dialplan |
| int | discardremoteholdretrieval |
| int | facilityenable |
| int | fds [SIG_PRI_NUM_DCHANS] |
| char | idlecontext [AST_MAX_CONTEXT] |
| char | idledial [AST_MAX_EXTENSION] |
| char | idleext [AST_MAX_EXTENSION] |
| char | initial_user_tag [AST_MAX_EXTENSION] |
| Initial user tag for party id's sent from this device driver. | |
| char | internationalprefix [10] |
| time_t | lastreset |
| int | localdialplan |
| char | localprefix [20] |
| ast_mutex_t | lock |
| pthread_t | master |
| int | minidle |
| int | minunused |
| char | msn_list [AST_MAX_EXTENSION] |
| char | nationalprefix [10] |
| int | new_chan_seq |
| void * | no_b_chan_end |
| void * | no_b_chan_iflist |
| unsigned int | no_d_channels:1 |
| int | nodetype |
| int | nsf |
| int | numchans |
| int | overlapdial |
| struct pri * | pri |
| int | pritimers [PRI_MAX_TIMERS] |
| char | privateprefix [20] |
| struct sig_pri_chan * | pvts [SIG_PRI_MAX_CHANNELS] |
| int | qsigchannelmapping |
| long | resetinterval |
| int | resetpos |
| int | resetting |
| int | sig |
| int | span |
| int | switchtype |
| unsigned int | transfer:1 |
| TRUE if call transfer is enabled for the span. | |
| int | trunkgroup |
| char | unknownprefix [20] |
| unsigned int append_msn_to_user_tag |
TRUE if a new call's sig_pri_chan.user_tag[] has the MSN appended to the initial_user_tag[].
Definition at line 365 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), pri_ss_thread(), pri_dchannel(), and sig_pri_call().
| struct sig_pri_callback* calls |
Definition at line 459 of file sig_pri.h.
Referenced by prepare_pri(), sig_pri_handle_dchan_exception(), and sig_pri_span_devstate_changed().
| struct ast_cc_config_params* cc_params |
CC config parameters for each new call.
Definition at line 324 of file sig_pri.h.
Referenced by dahdi_new(), mkintf(), and dahdi_cc_callback().
Congestion device state of the span.
AST_DEVICE_NOT_INUSE - Span does not have all B channels in use. AST_DEVICE_BUSY - All B channels are in use. AST_DEVICE_UNAVAILABLE - Span is in alarm.
Definition at line 469 of file sig_pri.h.
Referenced by dahdi_pri_update_span_devstate(), and dahdi_devicestate().
| int dchan_logical_span[SIG_PRI_NUM_DCHANS] |
Logical offset the DCHAN sits in
Definition at line 334 of file sig_pri.h.
Referenced by prepare_pri(), and pri_find_principle().
| int dchanavail[SIG_PRI_NUM_DCHANS] |
Whether each channel is available
Definition at line 431 of file sig_pri.h.
Referenced by pri_is_up(), pri_find_dchan(), pri_event_alarm(), pri_event_noalarm(), pri_dchannel(), sig_pri_cli_show_spans(), and sig_pri_cli_show_span().
Actual d-channels
Definition at line 442 of file sig_pri.h.
Referenced by pri_active_dchan_index(), pri_find_dchan(), pri_event_noalarm(), pri_dchannel(), sig_pri_start_pri(), sig_pri_cli_show_spans(), and sig_pri_cli_show_span().
| int debug |
set to true if to dump PRI event info
Definition at line 432 of file sig_pri.h.
Referenced by handle_pri_debug(), and pri_dchannel().
| int dialplan |
Dialing plan
Definition at line 366 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and sig_pri_call().
shall remote hold or remote retrieval notifications be discarded?
Definition at line 328 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and pri_dchannel().
| int facilityenable |
Enable facility IEs
Definition at line 329 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and sig_pri_call().
| int fds[SIG_PRI_NUM_DCHANS] |
FD's for d-channels
Definition at line 335 of file sig_pri.h.
Referenced by my_handle_dchan_exception(), dahdi_close_pri_fd(), prepare_pri(), pri_find_dchan(), pri_dchannel(), sig_pri_init_pri(), and sig_pri_start_pri().
| char idlecontext[AST_MAX_CONTEXT] |
What context to use for idle
Definition at line 392 of file sig_pri.h.
Referenced by do_idle_thread(), and pri_dchannel().
| char idledial[AST_MAX_EXTENSION] |
What to dial before dumping
Definition at line 393 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), do_idle_thread(), and pri_dchannel().
| char idleext[AST_MAX_EXTENSION] |
Where to idle extra calls
Definition at line 391 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), do_idle_thread(), and pri_dchannel().
| char initial_user_tag[AST_MAX_EXTENSION] |
Initial user tag for party id's sent from this device driver.
Definition at line 389 of file sig_pri.h.
Referenced by mkintf(), pri_ss_thread(), pri_dchannel(), and sig_pri_call().
| char internationalprefix[10] |
country access code ('00' for european dialplans)
Definition at line 368 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), apply_plan_to_number(), and sig_pri_call().
| time_t lastreset |
time when unused channels were last reset
Definition at line 458 of file sig_pri.h.
Referenced by pri_check_restart(), and pri_dchannel().
| int localdialplan |
Local dialing plan
Definition at line 367 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and sig_pri_call().
| char localprefix[20] |
area access code + area code ('0'+area code for european dialplans)
Definition at line 370 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and apply_plan_to_number().
libpri access Mutex
Definition at line 457 of file sig_pri.h.
Referenced by dahdi_unlink_pri_pvt(), destroy_all_channels(), dahdi_bridge(), create_channel_name(), pri_rel(), pri_grab(), sig_pri_new_ast_channel(), sig_pri_lock_owner(), pri_ss_thread(), pri_dchannel(), sig_pri_init_pri(), sig_pri_available(), sig_pri_start_pri(), sig_pri_cli_show_channels(), and sig_pri_cli_show_span().
| pthread_t master |
Thread of master
Definition at line 456 of file sig_pri.h.
Referenced by dahdi_restart(), __unload_module(), pri_grab(), sig_pri_init_pri(), and sig_pri_start_pri().
| int minidle |
Min # of "idling" calls to keep active
Definition at line 395 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and pri_dchannel().
| int minunused |
Min # of channels to keep empty
Definition at line 394 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and pri_dchannel().
| char msn_list[AST_MAX_EXTENSION] |
Comma separated list of MSNs to handle. Empty if disabled.
Definition at line 390 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and pri_dchannel().
| char nationalprefix[10] |
area access code ('0' for european dialplans)
Definition at line 369 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), apply_plan_to_number(), and sig_pri_call().
| int new_chan_seq |
New struct ast_channel sequence number
Definition at line 437 of file sig_pri.h.
Referenced by create_channel_name().
| void* no_b_chan_end |
List of private structures of the user of this module for no B channel interfaces. (hold and call waiting interfaces)
Definition at line 453 of file sig_pri.h.
Referenced by dahdi_nobch_insert(), and dahdi_nobch_extract().
| void* no_b_chan_iflist |
List of private structures of the user of this module for no B channel interfaces. (hold and call waiting interfaces)
Definition at line 448 of file sig_pri.h.
Referenced by dahdi_nobch_insert(), dahdi_nobch_extract(), and destroy_all_channels().
| unsigned int no_d_channels |
TRUE if we have already whined about no D channels available.
Definition at line 439 of file sig_pri.h.
Referenced by pri_find_dchan(), and pri_dchannel().
| int nodetype |
Node type
Definition at line 396 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), pri_ss_thread(), sig_pri_cc_generic_check(), pri_dchannel(), sig_pri_call(), and sig_pri_start_pri().
| int nsf |
Network-Specific Facilities
Definition at line 398 of file sig_pri.h.
Referenced by dahdi_chan_conf_default(), mkintf(), process_dahdi(), and sig_pri_start_pri().
| int numchans |
Num of channels we represent
Definition at line 454 of file sig_pri.h.
Referenced by dahdi_pri_update_span_devstate(), dahdi_unlink_pri_pvt(), mkintf(), dahdi_new_pri_nobch_channel(), pri_find_principle_by_call(), pri_find_principle(), pri_fixup_principle(), pri_check_restart(), pri_find_empty_chan(), pri_dchannel(), sig_pri_sort_pri_chans(), and sig_pri_cli_show_channels().
| int overlapdial |
In overlap dialing mode
Definition at line 326 of file sig_pri.h.
Referenced by dahdi_handle_event(), dahdi_read(), mkintf(), process_dahdi(), pri_ss_thread(), pri_dchannel(), sig_pri_start_pri(), and sig_pri_cli_show_span().
Currently active D-channel
Definition at line 443 of file sig_pri.h.
Referenced by dahdi_unlink_pri_pvt(), destroy_all_channels(), dahdi_handle_event(), sig_pri_redirecting_update(), pri_active_dchan_index(), pri_find_dchan(), sig_pri_kill_call(), pri_check_restart(), pri_ss_thread(), sig_pri_handle_cis_subcmds(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_hangup(), sig_pri_call(), sig_pri_indicate(), sig_pri_answer(), sig_pri_available(), sig_pri_digit_begin(), sig_pri_start_pri(), sig_pri_chan_alarm_notify(), sig_pri_cli_show_spans(), sig_pri_cli_show_span(), pri_send_keypad_facility_exec(), and pri_send_callrerouting_facility_exec().
| int pritimers[PRI_MAX_TIMERS] |
Definition at line 325 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and sig_pri_start_pri().
| char privateprefix[20] |
for private dialplans
Definition at line 371 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and apply_plan_to_number().
| struct sig_pri_chan* pvts[SIG_PRI_MAX_CHANNELS] |
Member channel pvt structs
Definition at line 455 of file sig_pri.h.
Referenced by dahdi_pri_update_span_devstate(), dahdi_unlink_pri_pvt(), mkintf(), dahdi_new_pri_nobch_channel(), sig_pri_lock_owner(), pri_queue_frame(), pri_queue_control(), pri_find_principle_by_call(), sig_pri_kill_call(), pri_find_principle(), pri_fixup_principle(), pri_check_restart(), pri_find_empty_chan(), sig_pri_cc_generic_check(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_sort_pri_chans(), and sig_pri_cli_show_channels().
QSIG channel mapping type
Definition at line 327 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and sig_pri_start_pri().
| long resetinterval |
Interval (in seconds) for resetting unused channels
Definition at line 373 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and pri_dchannel().
| int resetpos |
current position during a reset (-1 if not started)
Definition at line 435 of file sig_pri.h.
Referenced by pri_check_restart(), pri_dchannel(), and sig_pri_start_pri().
| int resetting |
true if span is being reset/restarted
Definition at line 434 of file sig_pri.h.
Referenced by pri_check_restart(), and pri_dchannel().
| int sig |
ISDN signalling type (SIG_PRI, SIG_BRI, SIG_BRI_PTMP, etc...)
Definition at line 436 of file sig_pri.h.
Referenced by mkintf(), dahdi_new_pri_nobch_channel(), pri_find_dchan(), sig_pri_cc_generic_check(), pri_dchannel(), and sig_pri_start_pri().
| int span |
span number put into user output messages
Definition at line 433 of file sig_pri.h.
Referenced by my_handle_dchan_exception(), dahdi_pri_update_span_devstate(), create_channel_name(), pri_resolve_span(), pri_create_trunkgroup(), is_group_or_channel_match(), dahdi_new_pri_nobch_channel(), dahdi_cc_callback(), pri_find_dchan(), pri_find_fixup_principle(), pri_check_restart(), pri_ss_thread(), sig_pri_handle_cis_subcmds(), sig_pri_handle_subcmds(), pri_dchannel(), sig_pri_indicate(), sig_pri_digit_begin(), sig_pri_start_pri(), sig_pri_cli_show_channels(), and pri_send_callrerouting_facility_exec().
| int switchtype |
Type of switch to emulate
Definition at line 397 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), pri_dchannel(), and sig_pri_start_pri().
| unsigned int transfer |
TRUE if call transfer is enabled for the span.
Definition at line 356 of file sig_pri.h.
Referenced by dahdi_bridge(), mkintf(), and sig_pri_handle_subcmds().
| int trunkgroup |
What our trunkgroup is
Definition at line 399 of file sig_pri.h.
Referenced by pri_resolve_span(), and pri_create_trunkgroup().
| char unknownprefix[20] |
for unknown dialplans
Definition at line 372 of file sig_pri.h.
Referenced by mkintf(), process_dahdi(), and apply_plan_to_number().