Asterisk - The Open Source Telephony Project
18.5.0
|
Interface to mISDN. More...
#include <syslog.h>
#include <sys/time.h>
#include <mISDNuser/isdn_debug.h>
#include "isdn_lib_intern.h"
#include "isdn_lib.h"
#include "asterisk/causes.h"
#include <mISDNuser/net_l2.h>
#include <mISDNuser/tone.h>
#include <unistd.h>
#include <semaphore.h>
#include <pthread.h>
#include <signal.h>
Go to the source code of this file.
Data Structures | |
struct | misdn_lib |
Macros | |
#define | ARRAY_LEN(a) (sizeof(a) / sizeof(a[0])) |
#define | ECHOCAN_OFF 124 |
#define | ECHOCAN_ON 123 |
#define | ISDN_PID_L3_B_USER 0x430000ff |
#define | ISDN_PID_L4_B_USER 0x440000ff |
#define | MISDN_DEBUG 0 |
#define | MISDN_DSP |
#define | MISDN_GEN_SILENCE |
#define | MISDN_IBUF_SIZE 512 |
#define | RETURN(a, b) {retval=a; goto b;} |
#define | TONE_ALERT_CNT 41 /* 1 Sec */ |
#define | TONE_ALERT_SILENCE_CNT 200 /* 4 Sec */ |
#define | TONE_BUSY_CNT 20 /* ? */ |
#define | TONE_BUSY_SILENCE_CNT 48 /* ? */ |
Enumerations | |
enum | global_states { MISDN_INITIALIZING, MISDN_INITIALIZED } |
Functions | |
static void | bc_next_state_change (struct misdn_bchannel *bc, enum bchannel_state state) |
char * | bc_state2str (enum bchannel_state state) |
void | bc_state_change (struct misdn_bchannel *bc, enum bchannel_state state) |
int | bchdev_echocancel_activate (struct misdn_bchannel *dev) |
void | bchdev_echocancel_deactivate (struct misdn_bchannel *dev) |
static char * | bearer2str (int cap) |
static int | clean_up_bc (struct misdn_bchannel *bc) |
static void | clear_l3 (struct misdn_stack *stack) |
static msg_t * | create_l2msg (int prim, int dinfo, int size) |
msg_t * | create_l3msg (int prim, int mt, int dinfo, int size, int ntmode) |
static int | create_process (int midev, struct misdn_bchannel *bc) |
static int | do_tone (struct misdn_bchannel *bc, int len) |
static void | dump_chan_list (struct misdn_stack *stack) |
void | ec_chunk (struct misdn_bchannel *bc, unsigned char *rxchunk, unsigned char *txchunk, int chunk_size) |
static void | empty_bc (struct misdn_bchannel *bc) |
static void | empty_chan_in_stack (struct misdn_stack *stack, int channel) |
static const char * | fac2str (enum FacFunction facility) |
static msg_t * | fetch_msg (int midev) |
static struct misdn_bchannel * | find_bc_by_addr (unsigned long addr) |
static struct misdn_bchannel * | find_bc_by_confid (unsigned long confid) |
struct misdn_bchannel * | find_bc_by_l3id (struct misdn_stack *stack, unsigned long l3id) |
static struct misdn_bchannel * | find_bc_by_masked_l3id (struct misdn_stack *stack, unsigned long l3id, unsigned long mask) |
static int | find_free_chan_in_stack (struct misdn_stack *stack, struct misdn_bchannel *bc, int channel, int dec) |
static struct misdn_stack * | find_stack_by_addr (int addr) |
static struct misdn_stack * | find_stack_by_mgr (manager_t *mgr_nt) |
static struct misdn_stack * | find_stack_by_port (int port) |
static char * | flip_buf_bits (char *buf, int len) |
struct misdn_stack * | get_misdn_stack (void) |
void | get_show_stack_details (int port, char *buf) |
struct misdn_stack * | get_stack_by_bc (struct misdn_bchannel *bc) |
static int | handle_bchan (msg_t *msg) |
static int | handle_cr (struct misdn_stack *stack, iframe_t *frm) |
static int | handle_err (msg_t *msg) |
static int | handle_event_nt (void *dat, void *arg) |
static int | handle_event_te (struct misdn_bchannel *bc, enum event_e event, iframe_t *frm) |
static int | handle_frm_nt (msg_t *msg) |
static int | handle_frm_te (msg_t *msg) |
static int | handle_l1 (msg_t *msg) |
static int | handle_l2 (msg_t *msg) |
static int | handle_mgmt (msg_t *msg) |
static int | handle_timers (msg_t *msg) |
static int | init_bc (struct misdn_stack *stack, struct misdn_bchannel *bc, int midev, int port, int bidx) |
static void | init_flip_bits (void) |
void | isdn_lib_stop_dtmf (struct misdn_bchannel *bc) |
void | isdn_lib_update_ec (struct misdn_bchannel *bc) |
void | isdn_lib_update_rxgain (struct misdn_bchannel *bc) |
void | isdn_lib_update_txgain (struct misdn_bchannel *bc) |
void | manager_bchannel_activate (struct misdn_bchannel *bc) |
void | manager_bchannel_cleanup (struct misdn_bchannel *bc) |
void | manager_bchannel_deactivate (struct misdn_bchannel *bc) |
void | manager_bchannel_setup (struct misdn_bchannel *bc) |
void | manager_clean_bc (struct misdn_bchannel *bc) |
void | manager_ec_disable (struct misdn_bchannel *bc) |
void | manager_ec_enable (struct misdn_bchannel *bc) |
static void | manager_event_handler (void *arg) |
struct misdn_bchannel * | manager_find_bc_by_pid (int pid) |
char * | manager_isdn_get_info (enum event_e event) |
int | manager_isdn_handler (iframe_t *frm, msg_t *msg) |
void | manager_ph_control (struct misdn_bchannel *bc, int c1, int c2) |
void | manager_ph_control_block (struct misdn_bchannel *bc, int c1, void *c2, int c2_len) |
int | misdn_cap_is_speech (int cap) |
void | misdn_dump_chanlist (void) |
int | misdn_inband_avail (struct misdn_bchannel *bc) |
void | misdn_join_conf (struct misdn_bchannel *bc, int conf_id) |
void | misdn_lib_bridge (struct misdn_bchannel *bc1, struct misdn_bchannel *bc2) |
void | misdn_lib_destroy (void) |
void | misdn_lib_echo (struct misdn_bchannel *bc, int onoff) |
struct misdn_bchannel * | misdn_lib_find_held_bc (int port, int l3_id) |
Find a held call's B channel record. More... | |
struct misdn_bchannel * | misdn_lib_get_free_bc (int port, int channel, int inout, int dec) |
static int | misdn_lib_get_l1_down (struct misdn_stack *stack) |
static int | misdn_lib_get_l1_up (struct misdn_stack *stack) |
static int | misdn_lib_get_l2_down (struct misdn_stack *stack) |
int | misdn_lib_get_l2_up (struct misdn_stack *stack) |
int | misdn_lib_get_maxchans (int port) |
int | misdn_lib_get_port_down (int port) |
int | misdn_lib_get_port_info (int port) |
int | misdn_lib_get_port_up (int port) |
static int | misdn_lib_get_short_status (struct misdn_stack *stack) |
int | misdn_lib_init (char *portlist, struct misdn_lib_iface *iface, void *user_data) |
int | misdn_lib_is_port_blocked (int port) |
int | misdn_lib_is_ptp (int port) |
static void | misdn_lib_isdn_event_catcher (void *arg) |
void | misdn_lib_isdn_l1watcher (int port) |
void | misdn_lib_log_ies (struct misdn_bchannel *bc) |
int | misdn_lib_maxports_get (void) |
void | misdn_lib_nt_debug_init (int flags, char *file) |
void | misdn_lib_nt_keepcalls (int kc) |
int | misdn_lib_pid_restart (int pid) |
int | misdn_lib_port_block (int port) |
int | misdn_lib_port_is_nt (int port) |
int | misdn_lib_port_is_pri (int port) |
int | misdn_lib_port_restart (int port) |
int | misdn_lib_port_unblock (int port) |
int | misdn_lib_port_up (int port, int check) |
void | misdn_lib_reinit_nt_stack (int port) |
void | misdn_lib_release (struct misdn_bchannel *bc) |
int | misdn_lib_send_event (struct misdn_bchannel *bc, enum event_e event) |
int | misdn_lib_send_restart (int port, int channel) |
void | misdn_lib_send_tone (struct misdn_bchannel *bc, enum tone_e tone) |
void | misdn_lib_split_bridge (struct misdn_bchannel *bc1, struct misdn_bchannel *bc2) |
void | misdn_lib_tone_generator_start (struct misdn_bchannel *bc) |
void | misdn_lib_tone_generator_stop (struct misdn_bchannel *bc) |
int | misdn_lib_tx2misdn_frm (struct misdn_bchannel *bc, void *data, int len) |
void | misdn_make_dummy (struct misdn_bchannel *dummybc, int port, int l3id, int nt, int channel) |
static void | misdn_send_lock (struct misdn_bchannel *bc) |
static void | misdn_send_unlock (struct misdn_bchannel *bc) |
void | misdn_split_conf (struct misdn_bchannel *bc, int conf_id) |
void | misdn_tx_jitter (struct misdn_bchannel *bc, int len) |
static void | prepare_bc (struct misdn_bchannel *bc, int channel) |
static int | release_cr (struct misdn_stack *stack, mISDNuser_head_t *hh) |
static int | send_msg (int midev, struct misdn_bchannel *bc, msg_t *dmsg) |
static int | set_chan_in_stack (struct misdn_stack *stack, int channel) |
static int | setup_bc (struct misdn_bchannel *bc) |
static void | stack_destroy (struct misdn_stack *stack) |
void | stack_holder_add (struct misdn_stack *stack, struct misdn_bchannel *holder) |
struct misdn_bchannel * | stack_holder_find (struct misdn_stack *stack, unsigned long l3id) |
void | stack_holder_remove (struct misdn_stack *stack, struct misdn_bchannel *holder) |
static struct misdn_stack * | stack_init (int midev, int port, int ptp) |
void | te_lib_destroy (int midev) |
static int | te_lib_init (void) |
static int | test_inuse (struct misdn_bchannel *bc) |
Variables | |
enum event_response_e(* | cb_event )(enum event_e event, struct misdn_bchannel *bc, void *user_data) |
int(* | cb_jb_empty )(struct misdn_bchannel *bc, char *buffer, int len) |
void(* | cb_log )(int level, int port, char *tmpl,...) |
static int | entity |
static char | flip_table [256] |
static struct misdn_lib * | glob_mgr |
static enum global_states | global_state =MISDN_INITIALIZING |
static sem_t | handler_started |
struct isdn_msg | msgs_g [] |
static int | mypid =1 |
static int | new_te_id = 0 |
static int | nt_err_cnt =0 |
static char | tone_425_flip [TONE_425_SIZE] |
static char | tone_silence_flip [TONE_SILENCE_SIZE] |
Interface to mISDN.
Definition in file isdn_lib.c.
Definition at line 42 of file isdn_lib.c.
Referenced by __analog_ss_thread(), __ast_cli_generator(), __init_manager(), __unload_module(), _sip_show_peer(), aco_init(), action_dahdishowchannels(), action_events(), add_exten_to_pattern_tree(), add_required_respheader(), add_static_payload(), ademco_verify_checksum(), adpcm_sample(), alarm2str(), alaw_sample(), allocate_dns_record(), analog_cidtype_to_str(), analog_sigtype_to_str(), analog_ss_thread(), analog_str_to_cidtype(), analog_str_to_sigtype(), analyse_softmix_stats(), ao2_container_unregister(), aoc_s_add_entry(), aoc_shutdown(), ast_aoc_add_unit_entry(), ast_aoc_cli_init(), ast_ari_applications_subscribe_cb(), ast_ari_applications_unsubscribe_cb(), ast_ari_asterisk_get_info_cb(), ast_ari_bridges_add_channel_cb(), ast_ari_bridges_play_cb(), ast_ari_bridges_play_with_id_cb(), ast_ari_bridges_remove_channel_cb(), ast_ari_channels_play_cb(), ast_ari_channels_play_with_id_cb(), ast_ari_cli_register(), ast_ari_cli_unregister(), ast_ari_events_event_websocket_ws_attempted_cb(), ast_ari_events_event_websocket_ws_established_cb(), ast_ari_events_user_event_cb(), ast_bridge_channel_feature_digit(), ast_bridge_features_do(), ast_bridge_features_enable(), ast_bridge_features_register(), ast_bridge_features_unregister(), ast_bridge_interval_register(), ast_bridge_interval_unregister(), ast_bridging_init(), ast_builtins_init(), ast_cause2str(), ast_cel_str_to_event_type(), ast_channels_init(), ast_cli_netstats(), ast_codec_init(), ast_compile_ael2(), ast_connected_line_source_describe(), ast_connected_line_source_name(), ast_connected_line_source_parse(), ast_describe_caller_presentation(), ast_dsp_set_call_progress_zone(), ast_dynamic_logger_level(), ast_event_get_ie_pltype(), ast_event_get_ie_type_name(), ast_event_get_type_name(), ast_extension_state2str(), ast_file_init(), ast_get_http_method(), ast_hook_send_action(), ast_http_ftype2mtype(), ast_image_init(), ast_jb_get_impl(), ast_local_init(), ast_logger_get_channels(), ast_logger_unregister_level(), ast_media_cache_init(), ast_msg_data_alloc2(), ast_named_caller_presentation(), ast_parse_caller_presentation(), ast_party_name_charset_describe(), ast_party_name_charset_parse(), ast_party_name_charset_str(), ast_presence_state2str(), ast_presence_state_val(), ast_redirecting_reason_describe(), ast_redirecting_reason_name(), ast_redirecting_reason_parse(), ast_res_pjsip_cleanup_options_handling(), ast_res_pjsip_destroy_configuration(), ast_res_pjsip_init_options_handling(), ast_res_pjsip_initialize_configuration(), ast_rtp_instance_extmap_get_uri(), ast_rtp_instance_extmap_negotiate(), ast_security_event_severity_get_name(), ast_sendtext(), ast_sip_destroy_cli(), ast_sip_destroy_distributor(), ast_sip_destroy_scheduler(), ast_sip_destroy_sorcery_auth(), ast_sip_destroy_sorcery_location(), ast_sip_destroy_sorcery_transport(), ast_sip_get_contact_short_status_label(), ast_sip_get_contact_status_label(), ast_sip_get_distributor_serializer(), ast_sip_initialize_cli(), ast_sip_initialize_distributor(), ast_sip_initialize_scheduler(), ast_sip_initialize_sorcery_auth(), ast_sip_initialize_sorcery_location(), ast_sip_initialize_sorcery_transport(), ast_state_chan2dev(), ast_str2cause(), ast_str2tos(), ast_str_retrieve_variable(), ast_syslog_facility(), ast_syslog_facility_name(), ast_syslog_priority(), ast_syslog_priority_from_loglevel(), ast_syslog_priority_name(), AST_TEST_DEFINE(), ast_test_init(), ast_timing_init(), ast_to_misdn_reason(), ast_tos2str(), ast_tps_init(), ast_translate_init(), ast_utils_init(), ast_xmldoc_printable(), astdb_atexit(), astdb_init(), asterisk_daemon(), astman_append_headers(), astobj2_cleanup(), astobj2_init(), attended_transfer_dtor(), authority_to_str(), autopause2int(), available(), bearer2str(), block_msg_header(), bridge_channel_feature_digit_add(), bridge_cleanup(), bridge_snapshot_update(), bridges_scrape_cb(), build_cfg(), build_expression_queue(), cache_get_callno_locked(), callerid_read(), callerid_write(), cb_events(), cdr_engine_shutdown(), cel_snapshot_update_cb(), chan_pjsip_sendtext(), channel_snapshot_update(), channels_scrape_cb(), channels_shutdown(), check_blacklist(), cleanup_module(), clear_l3(), cli_init(), cli_shutdown(), cli_unload_cb(), close_logger(), codec_choose_from_prefs(), codec_pref_remove(), codec_pref_remove_index(), codec_shutdown(), common_exec(), complete_dpreply(), complete_ulimit(), conf_destroy_config(), conf_exec(), conf_load_config(), config_shutdown(), connectedline_read(), connectedline_write(), container_init(), convert_attribute_name_from_ldap(), convert_attribute_name_to_ldap(), corosync_show_config(), corosync_show_members(), cpg_confchg_cb(), crypto_init(), destroy_escs(), destroy_peer(), determine_starting_point(), dispatch_thread_handler(), distributor_pool_setup(), distributor_pool_shutdown(), do_message(), dtmf_features_flags_to_string(), dump_cause(), dump_chan_list(), dump_ies(), dundi_eid_zero(), dundi_ie2str(), dundi_query_read(), dundi_showframe(), empty_chan_in_stack(), endpoints_scrape_cb(), event2str(), exceptional_accept(), ext_cmp_pattern(), fac2str(), file_shutdown(), fill_rxgain(), fill_txgain(), find_alias(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_cache(), find_free_chan_in_stack(), find_full_alias(), find_sip_method(), find_subscription_type(), frame_drop_helper(), frame_trace_helper(), g722_sample(), g726_sample(), gather_softmix_stats(), gen_events(), generate_dns_answer(), generate_dns_header(), generate_dns_question(), get_allowed_field(), get_chan_by_ast_name(), get_esc(), get_folder_by_name(), get_perm(), get_pjsip_method(), geteventbyname(), getjustifybyname(), handle_cli_dynamic_level_test(), handle_cli_iax2_show_cache(), handle_cli_iax2_show_channels(), handle_cli_iax2_show_stats(), handle_cli_misdn_send_facility(), handle_cli_performance_test(), handle_cli_ulimit(), handle_input(), handle_jack_audio(), handle_logger_set_level(), handle_logger_show_channels(), handle_request_bye(), handle_request_invite(), hfp_parse_ciev(), hfp_parse_cind_indicator(), hfp_parse_clip(), hook_event_cb(), iax2_codec_pref_append_bitfield(), iax2_codec_pref_best_bitfield2cap(), iax2_codec_pref_convert(), iax2_codec_pref_format_bitfield_to_order_value(), iax2_codec_pref_index(), iax2_codec_pref_order_value_to_format_bitfield(), iax2_codec_pref_prepend(), iax2_codec_pref_remove_missing(), iax2_codec_pref_to_cap(), iax2_format_compatibility_best(), iax_ie2str(), iax_provflags2str(), iax_showframe(), iax_str2flags(), image_shutdown(), init_logger(), initialize_escs(), int2strat(), is_digest_algorithm_supported(), is_msg_var_blocked(), is_reserved_word(), jack_status_to_str(), jb_choose_impl(), jingle_action_hook(), jingle_action_session_terminate(), jingle_hangup(), keyset_translatebitmask(), load_features_config(), load_general_config(), load_module(), load_parking_ui(), load_pbx(), load_pbx_app(), load_pbx_builtins(), load_pbx_functions_cli(), load_pbx_hangup_handler(), load_pbx_switch(), load_pbx_variables(), loadresult2str(), local_ast_moh_start(), local_shutdown(), logger_register_level(), main(), main_atexit(), make_components(), manager_shutdown(), mbox(), media_cache_shutdown(), milliwatt_generate(), minivm_accmess_exec(), minivm_greet_exec(), minivm_mwi_exec(), minivm_notify_exec(), minivm_record_exec(), misdn_get_ch_state(), misdn_lib_get_free_bc(), misdn_lib_init(), mkintf(), mute_fragment(), nominal_test(), not_allowed(), off_nominal_test(), parse_naptr(), parse_sip_options(), pjsip_channel_cli_register(), pjsip_channel_cli_unregister(), play_message_by_id(), process_dahdi(), process_echocancel(), process_opcode(), process_returncode(), prometheus_config_post_apply(), queue_voice_frame(), rb_ao2_destroy(), reason_code_to_cause(), reason_code_to_str(), redirecting_read(), redirecting_write(), register_config_cli(), reload(), res_sdp_srtp_get_attr(), rotate_file(), send_message(), sendtext_exec(), set_chan_in_stack(), set_event(), set_next_mime_type(), set_queue_result(), sip_reason_code_to_str(), sip_show_channel(), slin16_sample(), slin8_sample(), stasis_cleanup(), stasis_init(), stir_shaken_certificate_load(), stir_shaken_certificate_unload(), stir_shaken_general_load(), stir_shaken_general_unload(), stir_shaken_store_load(), stir_shaken_store_unload(), str2desc(), str2limit(), strat2int(), strings_to_mask(), sub_channel_update_handler(), subscription_type2str(), test_chan_string(), test_chan_variable(), test_cleanup(), test_config_validity(), test_dtmf_amplitude_sweep(), test_dtmf_twist_sweep(), test_new_subscribe(), test_tone_amplitude_sweep(), test_traversal_nonsorted(), test_traversal_sorted(), threadstorage_init(), timing_shutdown(), tls_method_to_str(), tps_shutdown(), translate_shutdown(), transmit_softkeysetres(), try_merge_optimize_out(), two_bridge_attended_transfer(), udptl_rx_packet(), ulaw_sample(), unload_features_config(), unload_module(), unload_parking_ui(), unload_pbx(), unload_pbx_app(), unload_pbx_builtins(), unload_pbx_functions_cli(), unload_pbx_hangup_handler(), unload_pbx_switch(), unload_pbx_variables(), update_modem_bits(), user_authority_to_str(), utils_shutdown(), validate_metric(), vm_mailbox_snapshot_create(), wait_for_winner(), write_config_file(), xmldoc_get_syntax_type(), xmldoc_has_specialtags(), xmldoc_parse_specialtags(), xmldoc_update_config_option(), and xmpp_action_hook().
#define ECHOCAN_OFF 124 |
Definition at line 230 of file isdn_lib.c.
Referenced by manager_ec_disable().
#define ECHOCAN_ON 123 |
Definition at line 229 of file isdn_lib.c.
Referenced by manager_ec_enable().
#define ISDN_PID_L3_B_USER 0x430000ff |
Definition at line 246 of file isdn_lib.c.
Referenced by setup_bc().
#define ISDN_PID_L4_B_USER 0x440000ff |
Definition at line 247 of file isdn_lib.c.
Referenced by setup_bc().
#define MISDN_DEBUG 0 |
Definition at line 233 of file isdn_lib.c.
#define MISDN_DSP |
#define MISDN_GEN_SILENCE |
#define MISDN_IBUF_SIZE 512 |
Definition at line 250 of file isdn_lib.c.
Referenced by init_bc().
Definition at line 3507 of file isdn_lib.c.
Referenced by misdn_lib_send_event().
#define TONE_ALERT_CNT 41 /* 1 Sec */ |
Definition at line 253 of file isdn_lib.c.
#define TONE_ALERT_SILENCE_CNT 200 /* 4 Sec */ |
Definition at line 254 of file isdn_lib.c.
#define TONE_BUSY_CNT 20 /* ? */ |
Definition at line 256 of file isdn_lib.c.
#define TONE_BUSY_SILENCE_CNT 48 /* ? */ |
Definition at line 257 of file isdn_lib.c.
enum global_states |
Enumerator | |
---|---|
MISDN_INITIALIZING | |
MISDN_INITIALIZED |
Definition at line 194 of file isdn_lib.c.
|
static |
Definition at line 659 of file isdn_lib.c.
References bc_state2str(), cb_log, misdn_bchannel::next_bc_state, misdn_bchannel::port, and state.
Referenced by misdn_lib_bridge().
char* bc_state2str | ( | enum bchannel_state | state | ) |
Definition at line 617 of file isdn_lib.c.
References BCHAN_ACTIVATED, BCHAN_BRIDGED, BCHAN_CLEANED, BCHAN_EMPTY, BCHAN_ERROR, and BCHAN_RELEASE.
Referenced by bc_next_state_change(), bc_state_change(), cb_events(), misdn_lib_send_event(), misdn_lib_split_bridge(), misdn_lib_tx2misdn_frm(), print_bc_info(), and setup_bc().
void bc_state_change | ( | struct misdn_bchannel * | bc, |
enum bchannel_state | state | ||
) |
Definition at line 639 of file isdn_lib.c.
References misdn_bchannel::bc_state, bc_state2str(), BCHAN_ACTIVATED, BCHAN_BRIDGED, BCHAN_EMPTY, cb_log, misdn_bchannel::conf_id, misdn_bchannel::l3_id, misdn_join_conf(), misdn_bchannel::next_bc_state, misdn_bchannel::port, and state.
Referenced by clean_up_bc(), init_bc(), manager_bchannel_deactivate(), misdn_join_conf(), misdn_lib_send_event(), misdn_split_conf(), and setup_bc().
int bchdev_echocancel_activate | ( | struct misdn_bchannel * | dev | ) |
void bchdev_echocancel_deactivate | ( | struct misdn_bchannel * | dev | ) |
|
static |
Definition at line 290 of file isdn_lib.c.
References INFO_CAPABILITY_AUDIO_3_1K, INFO_CAPABILITY_DIGITAL_RESTRICTED, INFO_CAPABILITY_DIGITAL_UNRESTRICTED, and INFO_CAPABILITY_SPEECH.
Referenced by misdn_lib_log_ies().
|
static |
Definition at line 815 of file isdn_lib.c.
References misdn_bchannel::b_stid, misdn_bchannel::bc_state, bc_state_change(), BCHAN_CLEANED, buff, cb_log, get_stack_by_bc(), misdn_bchannel::layer_id, manager_bchannel_deactivate(), manager_ec_disable(), misdn_stack::midev, NULL, misdn_bchannel::pid, misdn_stack::port, and misdn_bchannel::port.
Referenced by clear_l3(), handle_cr(), handle_event_nt(), handle_frm_te(), misdn_lib_release(), misdn_lib_send_event(), and misdn_lib_send_restart().
|
static |
Definition at line 852 of file isdn_lib.c.
References ARRAY_LEN, misdn_stack::b_num, misdn_stack::bc, cb_event, clean_up_bc(), empty_bc(), empty_chan_in_stack(), EVENT_CLEANUP, misdn_bchannel::in_use, MAX_BCHANS, MISDN_INITIALIZED, and NULL.
Referenced by handle_mgmt(), and misdn_lib_port_restart().
|
static |
Definition at line 349 of file isdn_lib.c.
References NULL.
Referenced by misdn_lib_get_l2_down(), and misdn_lib_get_l2_up().
msg_t* create_l3msg | ( | int | prim, |
int | mt, | ||
int | dinfo, | ||
int | size, | ||
int | ntmode | ||
) |
Definition at line 371 of file isdn_lib.c.
References NULL.
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(), and handle_event_nt().
|
static |
Definition at line 976 of file isdn_lib.c.
References cb_log, misdn_bchannel::channel, misdn_bchannel::channel_preselected, misdn_bchannel::dec, find_free_chan_in_stack(), get_stack_by_bc(), misdn_bchannel::l3_id, MAXPROCS, misdn_stack::nt, misdn_stack::port, misdn_stack::pri, misdn_stack::procids, misdn_stack::ptp, misdn_bchannel::te_choose_channel, and misdn_stack::upper_id.
Referenced by misdn_lib_send_event().
|
static |
Definition at line 2282 of file isdn_lib.c.
References cb_event, cb_log, errno, EVENT_TONE_GENERATE, misdn_bchannel::generate_tone, len(), misdn_tx_jitter(), misdn_bchannel::nojitter, misdn_bchannel::tone_cnt, and misdn_lib::user_data.
Referenced by handle_bchan().
|
static |
Definition at line 464 of file isdn_lib.c.
References ARRAY_LEN, misdn_stack::b_num, misdn_stack::bc, cb_log, misdn_stack::channels, misdn_bchannel::in_use, MAX_BCHANS, and misdn_stack::port.
Referenced by empty_chan_in_stack(), find_free_chan_in_stack(), handle_cr(), misdn_dump_chanlist(), and set_chan_in_stack().
void ec_chunk | ( | struct misdn_bchannel * | bc, |
unsigned char * | rxchunk, | ||
unsigned char * | txchunk, | ||
int | chunk_size | ||
) |
|
static |
Set Default Bearer Caps
Definition at line 679 of file isdn_lib.c.
References misdn_bchannel::active, misdn_bchannel::AOCD_need_export, AST_CAUSE_NORMAL_CLEARING, misdn_bchannel::bframe_len, misdn_bchannel::caller, misdn_bchannel::capability, misdn_bchannel::cause, misdn_bchannel::channel, misdn_bchannel::channel_found, misdn_bchannel::conf_id, misdn_bchannel::connected, misdn_party_redirecting::count, misdn_bchannel::crypt, misdn_bchannel::crypt_key, misdn_bchannel::curprx, misdn_bchannel::curptx, misdn_bchannel::cw, misdn_bchannel::dec, misdn_bchannel::dialed, misdn_bchannel::display, misdn_bchannel::display_connected, misdn_bchannel::display_setup, misdn_bchannel::dummy, misdn_bchannel::early_bconnect, misdn_bchannel::ec_deftaps, misdn_bchannel::ec_enable, misdn_bchannel::fac_in, misdn_bchannel::fac_out, misdn_party_redirecting::from, misdn_bchannel::generate_tone, misdn_bchannel::hdlc, INFO_CAPABILITY_SPEECH, INFO_CODEC_ALAW, misdn_bchannel::info_dad, misdn_bchannel::infos_pending, misdn_bchannel::last_used, misdn_bchannel::law, mISDN_NOTIFY_CODE_INVALID, mISDN_REDIRECTING_REASON_UNKNOWN, misdn_bchannel::mode, misdn_party_id::name, misdn_bchannel::need_more_infos, misdn_bchannel::nodsp, misdn_bchannel::nojitter, misdn_bchannel::notify_description_code, NULL, misdn_party_dialing::number, misdn_party_id::number, misdn_party_id::number_plan, misdn_party_dialing::number_plan, misdn_party_id::number_type, misdn_party_dialing::number_type, NUMPLAN_ISDN, NUMTYPE_UNKNOWN, misdn_bchannel::orig, misdn_bchannel::out_cause, misdn_bchannel::outgoing_colp, misdn_party_id::presentation, misdn_bchannel::presentation, misdn_bchannel::progress_coding, misdn_bchannel::progress_indicator, misdn_bchannel::progress_location, misdn_bchannel::rate, misdn_party_redirecting::reason, misdn_bchannel::redirecting, misdn_bchannel::restart_channel, misdn_bchannel::rxgain, misdn_bchannel::send_dtmf, misdn_bchannel::sending_complete, misdn_bchannel::set_presentation, misdn_party_dialing::subaddress, misdn_party_id::subaddress, misdn_bchannel::te_choose_channel, misdn_bchannel::time_usec, misdn_party_redirecting::to, misdn_party_redirecting::to_changed, misdn_bchannel::tone_cnt, misdn_bchannel::txgain, misdn_bchannel::urate, misdn_bchannel::user1, misdn_bchannel::uu, and misdn_bchannel::uulen.
Referenced by clear_l3(), handle_cr(), handle_event_nt(), handle_frm_te(), init_bc(), manager_clean_bc(), misdn_lib_release(), misdn_lib_send_event(), and misdn_lib_send_restart().
|
static |
Definition at line 605 of file isdn_lib.c.
References ARRAY_LEN, cb_log, misdn_stack::channels, dump_chan_list(), and misdn_stack::port.
Referenced by clear_l3(), handle_cr(), handle_event_nt(), handle_frm_te(), manager_clean_bc(), misdn_lib_release(), and misdn_lib_send_event().
|
static |
Definition at line 3338 of file isdn_lib.c.
References ARRAY_LEN, and name.
Referenced by misdn_lib_log_ies().
|
static |
Definition at line 3011 of file isdn_lib.c.
References cb_log, errno, and NULL.
Referenced by misdn_lib_isdn_event_catcher().
|
static |
Definition at line 1556 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_stack::b_num, misdn_stack::bc, misdn_bchannel::in_use, misdn_bchannel::layer_id, misdn_stack::next, NULL, and misdn_lib::stack_list.
Referenced by handle_bchan().
|
static |
Definition at line 1574 of file isdn_lib.c.
References misdn_stack::b_num, misdn_stack::bc, misdn_bchannel::conf_id, misdn_bchannel::in_use, misdn_stack::next, NULL, and misdn_lib::stack_list.
Referenced by misdn_lib_send_event().
struct misdn_bchannel * find_bc_by_l3id | ( | struct misdn_stack * | stack, |
unsigned long | l3id | ||
) |
Definition at line 1536 of file isdn_lib.c.
References ARRAY_LEN, misdn_stack::b_num, misdn_stack::bc, misdn_bchannel::in_use, misdn_bchannel::l3_id, MAX_BCHANS, and stack_holder_find().
Referenced by handle_cr(), handle_event_nt(), handle_frm_te(), manager_event_handler(), and release_cr().
|
static |
Definition at line 1515 of file isdn_lib.c.
References ARRAY_LEN, misdn_stack::b_num, misdn_stack::bc, misdn_bchannel::in_use, misdn_bchannel::l3_id, MAX_BCHANS, and stack_holder_find().
Referenced by handle_event_nt().
|
static |
Definition at line 513 of file isdn_lib.c.
References ARRAY_LEN, AST_CAUSE_NORMAL_CIRCUIT_CONGESTION, AST_CAUSE_REQUESTED_CHAN_UNAVAIL, misdn_stack::b_num, cb_log, misdn_bchannel::channel, misdn_bchannel::channel_found, misdn_stack::channels, dump_chan_list(), misdn_bchannel::is_register_pool, MAX_BCHANS, misdn_bchannel::out_cause, misdn_stack::port, misdn_stack::pri, pthread_mutex_lock, pthread_mutex_unlock, set_chan_in_stack(), and misdn_stack::st_lock.
Referenced by create_process(), handle_event_nt(), handle_event_te(), and misdn_lib_send_event().
|
static |
Definition at line 1472 of file isdn_lib.c.
References misdn_stack::next, misdn_lib::stack_list, and misdn_stack::upper_id.
Referenced by handle_frm_nt(), handle_frm_te(), handle_l1(), handle_l2(), and handle_mgmt().
|
static |
Definition at line 1501 of file isdn_lib.c.
References misdn_stack::mgr, misdn_stack::next, and misdn_lib::stack_list.
Referenced by handle_event_nt().
|
static |
Definition at line 1487 of file isdn_lib.c.
References misdn_stack::next, misdn_stack::port, and misdn_lib::stack_list.
Referenced by misdn_lib_get_free_bc(), misdn_lib_get_port_info(), misdn_lib_port_restart(), misdn_lib_reinit_nt_stack(), and misdn_lib_send_restart().
|
static |
Definition at line 334 of file isdn_lib.c.
Referenced by handle_bchan(), misdn_lib_init(), misdn_lib_tx2misdn_frm(), and misdn_tx_jitter().
struct misdn_stack * get_misdn_stack | ( | void | ) |
Definition at line 4698 of file isdn_lib.c.
References misdn_lib::stack_list.
Referenced by get_show_stack_details(), get_stack_by_bc(), misdn_dump_chanlist(), misdn_lib_find_held_bc(), misdn_lib_get_maxchans(), misdn_lib_is_port_blocked(), misdn_lib_is_ptp(), misdn_lib_nt_keepcalls(), misdn_lib_port_block(), misdn_lib_port_is_nt(), misdn_lib_port_is_pri(), and misdn_lib_port_unblock().
void get_show_stack_details | ( | int | port, |
char * | buf | ||
) |
Definition at line 168 of file isdn_lib.c.
References misdn_stack::blocked, get_misdn_stack(), misdn_stack::l1link, misdn_stack::l2link, misdn_stack::next, misdn_stack::nt, misdn_stack::port, and misdn_stack::ptp.
Referenced by handle_cli_misdn_show_port(), and handle_cli_misdn_show_stacks().
struct misdn_stack* get_stack_by_bc | ( | struct misdn_bchannel * | bc | ) |
Definition at line 152 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, NULL, misdn_stack::port, and misdn_bchannel::port.
Referenced by clean_up_bc(), create_process(), dec_ie_channel_id(), enc_ie_channel_id(), handle_bchan(), handle_event_te(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_clean_bc(), manager_ec_disable(), manager_ec_enable(), misdn_lib_log_ies(), misdn_lib_release(), misdn_lib_send_event(), misdn_lib_tx2misdn_frm(), parse_release_complete(), parse_restart(), send_msg(), and setup_bc().
|
static |
Anyway flip the bufbits
Definition at line 2395 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::bc_state, BCHAN_ACTIVATED, misdn_bchannel::bframe, misdn_bchannel::bframe_len, buf, misdn_bchannel::caller, misdn_bchannel::capability, cb_event, cb_log, misdn_bchannel::channel, misdn_bchannel::dialed, do_tone(), misdn_bchannel::dtmf, EVENT_BCHAN_DATA, EVENT_DTMF_TONE, find_bc_by_addr(), flip_buf_bits(), get_stack_by_bc(), if(), misdn_stack::midev, misdn_cap_is_speech(), misdn_tx_jitter(), misdn_party_id::name, misdn_bchannel::nojitter, NULL, misdn_party_dialing::number, misdn_party_id::number, misdn_party_id::number_type, misdn_party_dialing::number_type, misdn_bchannel::pid, misdn_stack::port, misdn_bchannel::port, and misdn_lib::user_data.
Referenced by handle_err(), and manager_isdn_handler().
|
static |
Definition at line 1686 of file isdn_lib.c.
References bc, cb_event, cb_log, misdn_bchannel::channel, clean_up_bc(), dump_chan_list(), empty_bc(), empty_chan_in_stack(), EVENT_CLEANUP, find_bc_by_l3id(), free(), misdn_bchannel::in_use, misdn_bchannel::l3_id, misdn_lib_get_free_bc(), misdn_make_dummy(), misdn_bchannel::need_disconnect, misdn_bchannel::need_release, misdn_bchannel::need_release_complete, misdn_stack::nt, misdn_stack::port, misdn_bchannel::stack_holder, stack_holder_remove(), and misdn_lib::user_data.
Referenced by handle_event_nt(), handle_frm_te(), and release_cr().
|
static |
Definition at line 3779 of file isdn_lib.c.
References cb_log, handle_bchan(), and if().
Referenced by manager_isdn_handler().
|
static |
Definition at line 1890 of file isdn_lib.c.
References misdn_bchannel::addr, AST_CAUSE_USER_BUSY, misdn_bchannel::b_stid, bc, misdn_stack::bc, misdn_bchannel::cause, cb_event, cb_log, misdn_bchannel::channel, clean_up_bc(), create_l3msg(), empty_bc(), empty_chan_in_stack(), EVENT_NEW_L3ID, EVENT_PORT_ALARM, EVENT_RELEASE, EVENT_RELEASE_COMPLETE, EVENT_SETUP, find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), find_stack_by_mgr(), free(), handle_cr(), misdn_bchannel::holded, misdn_bchannel::in_use, misdn_bchannel::is_register_pool, isdn_get_info(), isdn_msg_get_event(), isdn_msg_parse_event(), misdn_stack::l1link, misdn_stack::l2link, misdn_stack::l2upcnt, misdn_bchannel::l3_id, misdn_lib_get_free_bc(), misdn_lib_get_l2_up(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_make_dummy(), mISDNUSER_HEAD_SIZE, msgs_g, misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, misdn_stack::port, misdn_bchannel::port, misdn_stack::procids, pthread_mutex_lock, pthread_mutex_unlock, misdn_stack::ptp, release_cr(), misdn_stack::restart_sent, stack_holder_find(), stack_holder_remove(), misdn_stack::upper_id, and misdn_lib::user_data.
Referenced by misdn_lib_reinit_nt_stack(), and stack_init().
|
static |
Definition at line 1590 of file isdn_lib.c.
References misdn_bchannel::caller, misdn_bchannel::capability, cb_log, misdn_bchannel::channel, misdn_bchannel::crypt_key, misdn_bchannel::cw, misdn_bchannel::dialed, EVENT_ALERTING, EVENT_CONNECT, EVENT_CONNECT_ACKNOWLEDGE, EVENT_PROCEEDING, EVENT_PROGRESS, EVENT_RELEASE, EVENT_RELEASE_COMPLETE, EVENT_SETUP, EVENT_SETUP_ACKNOWLEDGE, find_free_chan_in_stack(), get_stack_by_bc(), manager_ec_enable(), manager_ph_control(), manager_ph_control_block(), misdn_cap_is_speech(), misdn_lib_send_event(), misdn_party_id::name, misdn_bchannel::nodsp, misdn_party_dialing::number, misdn_party_id::number, misdn_party_id::number_type, misdn_party_dialing::number_type, misdn_bchannel::out_cause, misdn_stack::port, misdn_stack::pri, misdn_stack::ptp, misdn_bchannel::rxgain, setup_bc(), and misdn_bchannel::txgain.
Referenced by handle_frm_te().
|
static |
Definition at line 2626 of file isdn_lib.c.
References cb_log, find_stack_by_addr(), pthread_mutex_lock, and pthread_mutex_unlock.
Referenced by manager_isdn_handler().
|
static |
Definition at line 2661 of file isdn_lib.c.
References AST_CAUSE_NORMAL_CLEARING, AST_CAUSE_REQUESTED_CHAN_UNAVAIL, bc, misdn_bchannel::cause, cb_event, cb_log, misdn_bchannel::channel, clean_up_bc(), empty_bc(), empty_chan_in_stack(), EVENT_RELEASE_COMPLETE, EVENT_RESTART, EVENT_SETUP, find_bc_by_l3id(), find_stack_by_addr(), handle_cr(), handle_event_te(), misdn_bchannel::in_use, isdn_get_info(), isdn_msg_get_event(), isdn_msg_parse_event(), misdn_bchannel::l3_id, misdn_lib_send_event(), misdn_lib_send_restart(), misdn_make_dummy(), msgs_g, misdn_bchannel::need_release_complete, misdn_stack::nt, misdn_bchannel::out_cause, misdn_stack::port, RESPONSE_IGNORE_SETUP, RESPONSE_IGNORE_SETUP_WITHOUT_CLOSE, RESPONSE_OK, RESPONSE_RELEASE_SETUP, misdn_bchannel::restart_channel, and misdn_lib::user_data.
Referenced by manager_isdn_handler().
|
static |
Definition at line 2803 of file isdn_lib.c.
References cb_event, cb_log, EVENT_CLEANUP, find_stack_by_addr(), MISDN_INITIALIZED, misdn_lib_get_l2_up(), pthread_mutex_lock, pthread_mutex_unlock, and misdn_lib::user_data.
Referenced by manager_isdn_handler().
|
static |
Definition at line 2883 of file isdn_lib.c.
References cb_event, cb_log, EVENT_PORT_ALARM, find_stack_by_addr(), and misdn_lib::user_data.
Referenced by manager_isdn_handler().
|
static |
Definition at line 2932 of file isdn_lib.c.
References cb_log, clear_l3(), find_stack_by_addr(), and if().
Referenced by manager_isdn_handler().
|
static |
Definition at line 2216 of file isdn_lib.c.
References cb_log, misdn_stack::next, NULL, pthread_mutex_lock, pthread_mutex_unlock, and misdn_lib::stack_list.
Referenced by manager_isdn_handler().
|
static |
IFACE
Definition at line 1210 of file isdn_lib.c.
References misdn_bchannel::astbuf, misdn_stack::b_num, bc_state_change(), BCHAN_CLEANED, buff, cb_log, empty_bc(), send_lock::lock, malloc(), MISDN_IBUF_SIZE, misdn_stack::nt, misdn_bchannel::nt, NULL, misdn_stack::port, misdn_bchannel::port, misdn_stack::pri, misdn_bchannel::pri, pthread_mutex_init, and misdn_bchannel::send_lock.
Referenced by misdn_lib_init().
|
static |
void isdn_lib_stop_dtmf | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4462 of file isdn_lib.c.
References manager_ph_control().
Referenced by process_ast_dsp().
void isdn_lib_update_ec | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4450 of file isdn_lib.c.
References misdn_bchannel::ec_enable, manager_ec_disable(), and manager_ec_enable().
Referenced by process_ast_dsp().
void isdn_lib_update_rxgain | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4440 of file isdn_lib.c.
References manager_ph_control(), and misdn_bchannel::rxgain.
Referenced by process_ast_dsp().
void isdn_lib_update_txgain | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4445 of file isdn_lib.c.
References manager_ph_control(), and misdn_bchannel::txgain.
Referenced by process_ast_dsp().
void manager_bchannel_activate | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4329 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::astbuf, buf, cb_log, get_stack_by_bc(), misdn_stack::midev, NULL, misdn_stack::port, and misdn_bchannel::port.
Referenced by setup_bc().
void manager_bchannel_cleanup | ( | struct misdn_bchannel * | bc | ) |
void manager_bchannel_deactivate | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4351 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::astbuf, misdn_bchannel::bc_state, bc_state_change(), BCHAN_ACTIVATED, BCHAN_BRIDGED, BCHAN_RELEASE, buf, cb_log, misdn_bchannel::conf_id, misdn_bchannel::generate_tone, get_stack_by_bc(), misdn_stack::midev, misdn_split_conf(), NULL, misdn_stack::port, and misdn_bchannel::port.
Referenced by clean_up_bc().
void manager_bchannel_setup | ( | struct misdn_bchannel * | bc | ) |
void manager_clean_bc | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4489 of file isdn_lib.c.
References cb_event, misdn_bchannel::channel, empty_bc(), empty_chan_in_stack(), EVENT_CLEANUP, get_stack_by_bc(), misdn_bchannel::in_use, and NULL.
Referenced by misdn_lib_pid_restart().
void manager_ec_disable | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4677 of file isdn_lib.c.
References misdn_bchannel::capability, cb_log, misdn_bchannel::ec_enable, ECHOCAN_OFF, get_stack_by_bc(), manager_ph_control(), manager_ph_control_block(), misdn_cap_is_speech(), and misdn_stack::port.
Referenced by clean_up_bc(), handle_cli_misdn_toggle_echocancel(), and isdn_lib_update_ec().
void manager_ec_enable | ( | struct misdn_bchannel * | bc | ) |
Definition at line 4628 of file isdn_lib.c.
References misdn_bchannel::capability, cb_log, misdn_bchannel::ec_deftaps, misdn_bchannel::ec_enable, ECHOCAN_ON, get_stack_by_bc(), manager_ph_control_block(), misdn_cap_is_speech(), and misdn_stack::port.
Referenced by handle_cli_misdn_toggle_echocancel(), handle_event_te(), isdn_lib_update_ec(), and misdn_lib_send_event().
|
static |
wait for events
Definition at line 4025 of file isdn_lib.c.
References misdn_lib::activatequeue, cb_log, misdn_stack::downqueue, find_bc_by_l3id(), misdn_lib::midev, misdn_make_dummy(), misdn_lib::new_msg, misdn_stack::next, misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, misdn_stack::port, pthread_mutex_lock, pthread_mutex_unlock, send_msg(), and misdn_lib::stack_list.
Referenced by misdn_lib_init().
struct misdn_bchannel * manager_find_bc_by_pid | ( | int | pid | ) |
Definition at line 3152 of file isdn_lib.c.
References misdn_stack::b_num, misdn_stack::bc, misdn_bchannel::in_use, misdn_stack::next, NULL, misdn_bchannel::pid, and misdn_lib::stack_list.
Referenced by misdn_lib_pid_restart().
char* manager_isdn_get_info | ( | enum event_e | event | ) |
Definition at line 4324 of file isdn_lib.c.
References isdn_get_info(), and msgs_g.
Referenced by cb_events().
int manager_isdn_handler | ( | iframe_t * | frm, |
msg_t * | msg | ||
) |
Definition at line 3837 of file isdn_lib.c.
References cb_log, handle_bchan(), handle_err(), handle_frm_nt(), handle_frm_te(), handle_l1(), handle_l2(), handle_mgmt(), handle_timers(), and LOG_NOTICE.
Referenced by misdn_lib_isdn_event_catcher().
void manager_ph_control | ( | struct misdn_bchannel * | bc, |
int | c1, | ||
int | c2 | ||
) |
Definition at line 4419 of file isdn_lib.c.
References misdn_bchannel::addr, cb_log, d, misdn_lib::midev, and misdn_bchannel::port.
Referenced by handle_event_te(), isdn_lib_stop_dtmf(), isdn_lib_update_rxgain(), isdn_lib_update_txgain(), manager_ec_disable(), misdn_join_conf(), misdn_lib_echo(), misdn_lib_send_event(), misdn_lib_send_tone(), and misdn_split_conf().
void manager_ph_control_block | ( | struct misdn_bchannel * | bc, |
int | c1, | ||
void * | c2, | ||
int | c2_len | ||
) |
Definition at line 4470 of file isdn_lib.c.
References misdn_bchannel::addr, d, and misdn_lib::midev.
Referenced by handle_event_te(), manager_ec_disable(), manager_ec_enable(), and misdn_lib_send_event().
int misdn_cap_is_speech | ( | int | cap | ) |
Poor mans version
Definition at line 436 of file isdn_lib.c.
References INFO_CAPABILITY_DIGITAL_RESTRICTED, and INFO_CAPABILITY_DIGITAL_UNRESTRICTED.
Referenced by cb_events(), handle_bchan(), handle_event_te(), manager_ec_disable(), manager_ec_enable(), misdn_lib_send_event(), misdn_lib_tx2misdn_frm(), and misdn_write().
void misdn_dump_chanlist | ( | void | ) |
Definition at line 483 of file isdn_lib.c.
References dump_chan_list(), get_misdn_stack(), and misdn_stack::next.
Referenced by handle_cli_misdn_show_channels().
int misdn_inband_avail | ( | struct misdn_bchannel * | bc | ) |
Definition at line 444 of file isdn_lib.c.
References misdn_bchannel::early_bconnect, INFO_PI_CALL_NOT_E2E_ISDN, INFO_PI_CALLED_NOT_ISDN, INFO_PI_INBAND_AVAILABLE, and misdn_bchannel::progress_indicator.
Referenced by cb_events().
void misdn_join_conf | ( | struct misdn_bchannel * | bc, |
int | conf_id | ||
) |
Definition at line 4705 of file isdn_lib.c.
References misdn_bchannel::addr, bc_state_change(), BCHAN_BRIDGED, cb_log, manager_ph_control(), misdn_lib_tx2misdn_frm(), and misdn_bchannel::port.
Referenced by bc_state_change(), and misdn_lib_bridge().
void misdn_lib_bridge | ( | struct misdn_bchannel * | bc1, |
struct misdn_bchannel * | bc2 | ||
) |
Definition at line 4728 of file isdn_lib.c.
References bc, bc_next_state_change(), BCHAN_ACTIVATED, BCHAN_BRIDGED, cb_log, misdn_bchannel::conf_id, misdn_join_conf(), NULL, misdn_bchannel::pid, and misdn_bchannel::port.
Referenced by misdn_write().
void misdn_lib_destroy | ( | void | ) |
Definition at line 4285 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_stack::b_num, misdn_stack::bc, buf, cb_log, misdn_lib::event_handler_thread, misdn_lib::event_thread, free(), misdn_stack::midev, misdn_lib::midev, MISDN_INITIALIZED, misdn_stack::next, NULL, misdn_stack::port, stack_destroy(), misdn_lib::stack_list, and te_lib_destroy().
Referenced by unload_module().
void misdn_lib_echo | ( | struct misdn_bchannel * | bc, |
int | onoff | ||
) |
Definition at line 4771 of file isdn_lib.c.
References cb_log, manager_ph_control(), and misdn_bchannel::port.
struct misdn_bchannel* misdn_lib_find_held_bc | ( | int | port, |
int | l3_id | ||
) |
Find a held call's B channel record.
port | Port the call is on. |
l3_id | mISDN Layer 3 ID of held call. |
Definition at line 4580 of file isdn_lib.c.
References bc, get_misdn_stack(), misdn_stack::next, NULL, misdn_stack::port, and stack_holder_find().
Referenced by misdn_hangup().
struct misdn_bchannel* misdn_lib_get_free_bc | ( | int | port, |
int | channel, | ||
int | inout, | ||
int | dec | ||
) |
Definition at line 3205 of file isdn_lib.c.
References ARRAY_LEN, misdn_stack::b_num, bc, misdn_stack::bc, misdn_stack::blocked, cb_log, misdn_bchannel::channel, misdn_bchannel::cw, misdn_bchannel::dec, find_stack_by_port(), if(), MAX_BCHANS, misdn_bchannel::need_disconnect, misdn_bchannel::need_release, NULL, misdn_bchannel::port, prepare_bc(), misdn_stack::pri, pthread_mutex_lock, pthread_mutex_unlock, misdn_stack::ptp, misdn_stack::st_lock, and test_inuse().
Referenced by handle_cr(), handle_event_nt(), and misdn_request().
|
static |
Definition at line 876 of file isdn_lib.c.
References cb_log, misdn_stack::midev, misdn_stack::port, and misdn_stack::upper_id.
Referenced by misdn_lib_get_port_down().
|
static |
Definition at line 918 of file isdn_lib.c.
References cb_log, misdn_stack::midev, misdn_stack::port, and misdn_stack::upper_id.
Referenced by misdn_lib_get_port_up(), misdn_lib_isdn_l1watcher(), misdn_lib_reinit_nt_stack(), misdn_lib_send_event(), and stack_init().
|
static |
Definition at line 890 of file isdn_lib.c.
References create_l2msg(), misdn_stack::midev, misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, pthread_mutex_lock, pthread_mutex_unlock, misdn_stack::ptp, and misdn_stack::upper_id.
Referenced by misdn_lib_get_port_down().
int misdn_lib_get_l2_up | ( | struct misdn_stack * | stack | ) |
Definition at line 932 of file isdn_lib.c.
References create_l2msg(), misdn_stack::midev, misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, pthread_mutex_lock, pthread_mutex_unlock, misdn_stack::ptp, and misdn_stack::upper_id.
Referenced by handle_event_nt(), handle_l1(), misdn_lib_get_port_up(), misdn_lib_isdn_l1watcher(), and stack_init().
int misdn_lib_get_maxchans | ( | int | port | ) |
Definition at line 137 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, misdn_stack::port, and misdn_stack::pri.
Referenced by misdn_request().
int misdn_lib_get_port_down | ( | int | port | ) |
Definition at line 1805 of file isdn_lib.c.
References misdn_stack::l2link, misdn_lib_get_l1_down(), misdn_lib_get_l2_down(), misdn_stack::next, misdn_stack::port, and misdn_lib::stack_list.
Referenced by handle_cli_misdn_port_down().
int misdn_lib_get_port_info | ( | int | port | ) |
Definition at line 3903 of file isdn_lib.c.
References misdn_lib::activatequeue, cb_log, find_stack_by_port(), if(), misdn_lib::new_msg, and misdn_stack::upper_id.
int misdn_lib_get_port_up | ( | int | port | ) |
Definition at line 1781 of file isdn_lib.c.
References misdn_stack::l1link, misdn_stack::l2link, misdn_lib_get_l1_up(), misdn_lib_get_l2_up(), misdn_stack::next, misdn_stack::nt, misdn_stack::port, and misdn_lib::stack_list.
Referenced by handle_cli_misdn_port_up(), and misdn_check_l2l1().
|
static |
Definition at line 959 of file isdn_lib.c.
References misdn_stack::midev, and misdn_stack::upper_id.
Referenced by misdn_lib_isdn_l1watcher(), and stack_init().
int misdn_lib_init | ( | char * | portlist, |
struct misdn_lib_iface * | iface, | ||
void * | user_data | ||
) |
Definition at line 4143 of file isdn_lib.c.
References misdn_lib::activatequeue, ARRAY_LEN, misdn_stack::b_num, misdn_stack::bc, calloc, misdn_lib_iface::cb_event, cb_event, cb_jb_empty, misdn_lib_iface::cb_jb_empty, cb_log, misdn_lib_iface::cb_log, misdn_lib::event_handler_thread, misdn_lib::event_thread, flip_buf_bits(), free(), init_bc(), init_flip_bits(), misdn_bchannel::is_register_pool, manager_event_handler(), MAX_BCHANS, misdn_stack::midev, misdn_lib::midev, MISDN_INITIALIZED, misdn_lib_isdn_event_catcher(), misdn_lib_nt_debug_init(), misdn_lib::new_msg, misdn_stack::next, NULL, pthread_create, ptp, stack_destroy(), stack_init(), misdn_lib::stack_list, te_lib_destroy(), and te_lib_init().
Referenced by load_module().
int misdn_lib_is_port_blocked | ( | int | port | ) |
Definition at line 117 of file isdn_lib.c.
References misdn_stack::blocked, get_misdn_stack(), misdn_stack::next, and misdn_stack::port.
int misdn_lib_is_ptp | ( | int | port | ) |
Definition at line 128 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, misdn_stack::port, and misdn_stack::ptp.
Referenced by build_setup(), cb_events(), do_immediate_setup(), misdn_call(), misdn_update_connected_line(), and misdn_update_redirecting().
|
static |
When we make a call from NT2Ast we get these frames
I get this sometimes after setup_bc
Definition at line 3068 of file isdn_lib.c.
References cb_log, fetch_msg(), if(), manager_isdn_handler(), and misdn_lib::midev.
Referenced by misdn_lib_init().
void misdn_lib_isdn_l1watcher | ( | int | port | ) |
Definition at line 3049 of file isdn_lib.c.
References cb_log, misdn_stack::l1link, misdn_lib_get_l1_up(), misdn_lib_get_l2_up(), misdn_lib_get_short_status(), misdn_stack::next, misdn_stack::port, and misdn_lib::stack_list.
Referenced by misdn_l1_task().
void misdn_lib_log_ies | ( | struct misdn_bchannel * | bc | ) |
Definition at line 3431 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::b_stid, bearer2str(), misdn_bchannel::caller, misdn_bchannel::capability, misdn_bchannel::cause, cb_log, misdn_bchannel::channel, misdn_bchannel::connected, misdn_party_redirecting::count, misdn_bchannel::dialed, fac2str(), misdn_bchannel::fac_in, misdn_bchannel::fac_out, misdn_party_redirecting::from, get_stack_by_bc(), misdn_bchannel::holded, misdn_bchannel::info_dad, misdn_bchannel::keypad, misdn_bchannel::l3_id, misdn_bchannel::layer_id, misdn_bchannel::mode, misdn_party_id::name, misdn_stack::nt, misdn_party_id::number, misdn_party_id::number_plan, misdn_party_dialing::number_plan, misdn_party_id::number_type, misdn_party_dialing::number_type, misdn_bchannel::out_cause, misdn_stack::port, misdn_party_id::presentation, misdn_bchannel::presentation, misdn_bchannel::progress_indicator, misdn_bchannel::rate, misdn_party_redirecting::reason, misdn_bchannel::redirecting, misdn_party_id::screening, misdn_bchannel::sending_complete, misdn_bchannel::set_presentation, misdn_bchannel::stack_holder, misdn_party_redirecting::to, misdn_bchannel::urate, and misdn_bchannel::user1.
Referenced by cb_events(), and misdn_lib_send_event().
int misdn_lib_maxports_get | ( | void | ) |
void misdn_lib_nt_debug_init | ( | int | flags, |
char * | file | ||
) |
Definition at line 4124 of file isdn_lib.c.
References make_ari_stubs::file, and NULL.
Referenced by load_module(), and misdn_lib_init().
void misdn_lib_nt_keepcalls | ( | int | kc | ) |
Definition at line 4112 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, and misdn_stack::nst.
Referenced by load_module().
int misdn_lib_pid_restart | ( | int | pid | ) |
Definition at line 3932 of file isdn_lib.c.
References manager_clean_bc(), and manager_find_bc_by_pid().
Referenced by handle_cli_misdn_restart_pid().
int misdn_lib_port_block | ( | int | port | ) |
Definition at line 91 of file isdn_lib.c.
References misdn_stack::blocked, get_misdn_stack(), misdn_stack::next, and misdn_stack::port.
Referenced by cb_events(), and handle_cli_misdn_port_block().
int misdn_lib_port_is_nt | ( | int | port | ) |
Definition at line 65 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, misdn_stack::nt, and misdn_stack::port.
Referenced by handle_cli_misdn_send_facility(), misdn_update_connected_line(), misdn_update_redirecting(), reload(), and wait_for_digits().
int misdn_lib_port_is_pri | ( | int | port | ) |
Definition at line 53 of file isdn_lib.c.
References get_misdn_stack(), misdn_stack::next, misdn_stack::port, and misdn_stack::pri.
Referenced by misdn_new(), test_inuse(), and update_name().
int misdn_lib_port_restart | ( | int | port | ) |
Definition at line 3982 of file isdn_lib.c.
References misdn_lib::activatequeue, cb_log, clear_l3(), find_stack_by_port(), misdn_lib_reinit_nt_stack(), misdn_lib::new_msg, misdn_stack::nt, misdn_stack::port, and misdn_stack::upper_id.
Referenced by handle_cli_misdn_restart_port().
int misdn_lib_port_unblock | ( | int | port | ) |
Definition at line 104 of file isdn_lib.c.
References misdn_stack::blocked, get_misdn_stack(), misdn_stack::next, and misdn_stack::port.
Referenced by handle_cli_misdn_port_unblock().
int misdn_lib_port_up | ( | int | port, |
int | check | ||
) |
Definition at line 1821 of file isdn_lib.c.
References misdn_stack::blocked, cb_log, misdn_stack::l1link, misdn_stack::l2link, misdn_stack::next, misdn_stack::port, misdn_stack::ptp, and misdn_lib::stack_list.
Referenced by misdn_check_l2l1(), and misdn_request().
void misdn_lib_reinit_nt_stack | ( | int | port | ) |
Definition at line 4779 of file isdn_lib.c.
References misdn_stack::blocked, misdn_stack::d_stid, find_stack_by_port(), handle_event_nt(), misdn_stack::l2link, misdn_stack::lower_id, misdn_stack::mgr, misdn_lib::midev, misdn_lib_get_l1_up(), misdn_stack::nst, misdn_stack::port, misdn_stack::pri, misdn_stack::ptp, and misdn_stack::upper_id.
Referenced by misdn_lib_port_restart().
void misdn_lib_release | ( | struct misdn_bchannel * | bc | ) |
Definition at line 1759 of file isdn_lib.c.
References cb_log, misdn_bchannel::channel, clean_up_bc(), empty_bc(), empty_chan_in_stack(), get_stack_by_bc(), and misdn_bchannel::in_use.
Referenced by misdn_hangup(), and misdn_request().
int misdn_lib_send_event | ( | struct misdn_bchannel * | bc, |
enum event_e | event | ||
) |
Definition at line 3523 of file isdn_lib.c.
References bc, misdn_bchannel::bc_state, bc_state2str(), bc_state_change(), BCHAN_BRIDGED, BCHAN_CLEANED, misdn_bchannel::caller, misdn_bchannel::capability, misdn_bchannel::cause, cb_log, misdn_bchannel::channel, misdn_bchannel::channel_found, misdn_bchannel::channel_preselected, clean_up_bc(), misdn_bchannel::conf_id, create_process(), misdn_bchannel::crypt_key, misdn_bchannel::dialed, misdn_stack::downqueue, empty_bc(), empty_chan_in_stack(), ENOCHAN, EVENT_ALERTING, EVENT_CONNECT, EVENT_CONNECT_ACKNOWLEDGE, EVENT_DISCONNECT, EVENT_HOLD_ACKNOWLEDGE, EVENT_PROCEEDING, EVENT_PROGRESS, EVENT_REGISTER, EVENT_RELEASE, EVENT_RELEASE_COMPLETE, EVENT_RETRIEVE_ACKNOWLEDGE, EVENT_SETUP, EVENT_SETUP_ACKNOWLEDGE, find_bc_by_confid(), find_free_chan_in_stack(), get_stack_by_bc(), misdn_bchannel::holded, misdn_bchannel::in_use, isdn_get_info(), isdn_msg_build_event(), misdn_stack::l1link, malloc(), manager_ec_enable(), manager_ph_control(), manager_ph_control_block(), misdn_lib::midev, misdn_cap_is_speech(), misdn_lib_get_l1_up(), misdn_lib_log_ies(), misdn_send_lock(), misdn_send_unlock(), misdn_split_conf(), msgs_g, misdn_party_id::name, misdn_bchannel::need_disconnect, misdn_bchannel::need_release, misdn_bchannel::need_release_complete, misdn_lib::new_msg, misdn_bchannel::nodsp, misdn_stack::nt, misdn_bchannel::nt, misdn_party_dialing::number, misdn_party_id::number, misdn_party_id::number_type, misdn_party_dialing::number_type, misdn_bchannel::out_cause, misdn_bchannel::pid, misdn_stack::port, misdn_bchannel::port, misdn_stack::ptp, RETURN, retval, misdn_bchannel::rxgain, setup_bc(), stack_holder_add(), misdn_bchannel::txgain, and misdn_stack::upper_id.
Referenced by cb_events(), do_immediate_setup(), get_chan_by_ast_name(), handle_cli_misdn_send_display(), handle_cli_misdn_send_facility(), handle_event_nt(), handle_event_te(), handle_frm_te(), misdn_answer(), misdn_call(), misdn_digit_end(), misdn_facility_exec(), misdn_facility_ie_handler(), misdn_hangup(), misdn_indication(), misdn_lib_send_restart(), misdn_overlap_dial_task(), misdn_send_text(), misdn_update_connected_line(), misdn_update_redirecting(), reload(), start_pbx(), and wait_for_digits().
int misdn_lib_send_restart | ( | int | port, |
int | channel | ||
) |
Definition at line 3943 of file isdn_lib.c.
References misdn_stack::b_num, misdn_stack::bc, cb_log, misdn_bchannel::channel, clean_up_bc(), empty_bc(), EVENT_RESTART, find_stack_by_port(), misdn_bchannel::in_use, misdn_lib_send_event(), misdn_make_dummy(), misdn_stack::nt, and misdn_stack::port.
Referenced by handle_cli_misdn_send_restart(), handle_event_nt(), and handle_frm_te().
void misdn_lib_send_tone | ( | struct misdn_bchannel * | bc, |
enum tone_e | tone | ||
) |
Definition at line 4596 of file isdn_lib.c.
References misdn_bchannel::addr, buf, manager_ph_control(), misdn_lib::midev, TONE_ALERTING, TONE_DIAL, TONE_HANGUP, and TONE_NONE.
Referenced by hanguptone_indicate().
void misdn_lib_split_bridge | ( | struct misdn_bchannel * | bc1, |
struct misdn_bchannel * | bc2 | ||
) |
Definition at line 4751 of file isdn_lib.c.
References bc, bc_state2str(), BCHAN_BRIDGED, cb_log, misdn_bchannel::conf_id, misdn_split_conf(), and NULL.
Referenced by misdn_write().
void misdn_lib_tone_generator_start | ( | struct misdn_bchannel * | bc | ) |
Definition at line 2271 of file isdn_lib.c.
References misdn_bchannel::generate_tone.
Referenced by misdn_write().
void misdn_lib_tone_generator_stop | ( | struct misdn_bchannel * | bc | ) |
Definition at line 2276 of file isdn_lib.c.
References misdn_bchannel::generate_tone.
Referenced by start_bc_tones(), and stop_indicate().
int misdn_lib_tx2misdn_frm | ( | struct misdn_bchannel * | bc, |
void * | data, | ||
int | len | ||
) |
Definition at line 4382 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::bc_state, bc_state2str(), BCHAN_ACTIVATED, BCHAN_BRIDGED, buf, misdn_bchannel::capability, cb_log, flip_buf_bits(), get_stack_by_bc(), len(), misdn_stack::midev, misdn_cap_is_speech(), misdn_stack::port, and misdn_bchannel::port.
Referenced by misdn_join_conf(), and misdn_write().
void misdn_make_dummy | ( | struct misdn_bchannel * | dummybc, |
int | port, | ||
int | l3id, | ||
int | nt, | ||
int | channel | ||
) |
Definition at line 77 of file isdn_lib.c.
References misdn_bchannel::channel, misdn_bchannel::dummy, misdn_bchannel::l3_id, misdn_stack::nt, misdn_bchannel::nt, misdn_stack::port, and misdn_bchannel::port.
Referenced by handle_cli_misdn_send_facility(), handle_cr(), handle_event_nt(), handle_frm_te(), manager_event_handler(), misdn_lib_send_restart(), release_cr(), reload(), and wait_for_digits().
|
static |
Definition at line 3509 of file isdn_lib.c.
References send_lock::lock, pthread_mutex_lock, and misdn_bchannel::send_lock.
Referenced by misdn_lib_send_event().
|
static |
Definition at line 3516 of file isdn_lib.c.
References send_lock::lock, pthread_mutex_unlock, and misdn_bchannel::send_lock.
Referenced by misdn_lib_send_event().
void misdn_split_conf | ( | struct misdn_bchannel * | bc, |
int | conf_id | ||
) |
Definition at line 4719 of file isdn_lib.c.
References misdn_bchannel::addr, bc_state_change(), BCHAN_ACTIVATED, cb_log, manager_ph_control(), and misdn_bchannel::port.
Referenced by manager_bchannel_deactivate(), misdn_lib_send_event(), and misdn_lib_split_bridge().
void misdn_tx_jitter | ( | struct misdn_bchannel * | bc, |
int | len | ||
) |
Definition at line 2330 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_bchannel::bframe, misdn_bchannel::bframe_len, buf, cb_jb_empty, cb_log, misdn_bchannel::channel, errno, flip_buf_bits(), len(), misdn_lib::midev, and misdn_bchannel::port.
Referenced by do_tone(), and handle_bchan().
|
static |
Definition at line 3190 of file isdn_lib.c.
References AST_CAUSE_NORMAL_CLEARING, misdn_bchannel::cause, misdn_bchannel::channel, misdn_bchannel::channel_preselected, misdn_bchannel::in_use, mypid, misdn_bchannel::need_disconnect, misdn_bchannel::need_release, misdn_bchannel::need_release_complete, and misdn_bchannel::pid.
Referenced by misdn_lib_get_free_bc().
|
static |
removing procid
Definition at line 1861 of file isdn_lib.c.
References misdn_bchannel::addr, cb_log, find_bc_by_l3id(), handle_cr(), misdn_bchannel::l3_id, misdn_make_dummy(), misdn_stack::nt, misdn_stack::port, misdn_stack::procids, and misdn_stack::upper_id.
Referenced by handle_event_nt().
|
static |
Definition at line 410 of file isdn_lib.c.
References cb_log, get_stack_by_bc(), misdn_bchannel::l3_id, and misdn_bchannel::port.
Referenced by manager_event_handler().
|
static |
Definition at line 492 of file isdn_lib.c.
References ARRAY_LEN, cb_log, misdn_stack::channels, dump_chan_list(), and misdn_stack::port.
Referenced by find_free_chan_in_stack().
|
static |
Definition at line 1038 of file isdn_lib.c.
References misdn_bchannel::addr, misdn_stack::b_num, misdn_bchannel::b_stid, misdn_stack::b_stids, misdn_stack::bc, misdn_bchannel::bc_state, bc_state2str(), bc_state_change(), BCHAN_ACTIVATED, BCHAN_CLEANED, BCHAN_ERROR, buff, cb_event, cb_log, misdn_bchannel::channel, errno, EVENT_BCHAN_ERROR, get_stack_by_bc(), misdn_bchannel::hdlc, ISDN_PID_L3_B_USER, ISDN_PID_L4_B_USER, misdn_bchannel::layer, misdn_bchannel::layer_id, manager_bchannel_activate(), misdn_stack::midev, misdn_lib::midev, misdn_bchannel::nodsp, NULL, misdn_stack::port, misdn_bchannel::port, and misdn_lib::user_data.
Referenced by handle_event_te(), and misdn_lib_send_event().
|
static |
Definition at line 1454 of file isdn_lib.c.
References buf, misdn_stack::midev, misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, NULL, pthread_mutex_destroy, misdn_stack::st_lock, and misdn_stack::upper_id.
Referenced by misdn_lib_destroy(), and misdn_lib_init().
void stack_holder_add | ( | struct misdn_stack * | stack, |
struct misdn_bchannel * | holder | ||
) |
Definition at line 4503 of file isdn_lib.c.
References cb_log, misdn_stack::holding, misdn_bchannel::l3_id, misdn_bchannel::next, NULL, misdn_stack::port, and misdn_bchannel::stack_holder.
Referenced by misdn_lib_send_event().
struct misdn_bchannel * stack_holder_find | ( | struct misdn_stack * | stack, |
unsigned long | l3id | ||
) |
Definition at line 4553 of file isdn_lib.c.
References cb_log, misdn_stack::holding, misdn_bchannel::l3_id, misdn_bchannel::next, NULL, and misdn_stack::port.
Referenced by find_bc_by_l3id(), find_bc_by_masked_l3id(), handle_event_nt(), and misdn_lib_find_held_bc().
void stack_holder_remove | ( | struct misdn_stack * | stack, |
struct misdn_bchannel * | holder | ||
) |
Definition at line 4527 of file isdn_lib.c.
References cb_log, misdn_stack::holding, misdn_bchannel::l3_id, misdn_bchannel::next, misdn_stack::port, and misdn_bchannel::stack_holder.
Referenced by handle_cr(), and handle_event_nt().
|
static |
Definition at line 1274 of file isdn_lib.c.
References misdn_stack::b_num, misdn_stack::b_stids, buff, calloc, cb_log, misdn_stack::d_stid, misdn_stack::downqueue, free(), handle_event_nt(), misdn_stack::holding, misdn_stack::l1link, misdn_stack::l2link, misdn_stack::lower_id, misdn_stack::mgr, misdn_stack::midev, misdn_lib::midev, misdn_lib_get_l1_up(), misdn_lib_get_l2_up(), misdn_lib_get_short_status(), misdn_stack::nst, misdn_stack::nstlock, misdn_stack::nt, NULL, misdn_stack::port, misdn_stack::pri, pthread_mutex_init, misdn_stack::ptp, ptp, misdn_stack::st_lock, and misdn_stack::upper_id.
Referenced by misdn_lib_init().
void te_lib_destroy | ( | int | midev | ) |
Definition at line 3142 of file isdn_lib.c.
References buf, cb_log, and NULL.
Referenced by misdn_lib_destroy(), and misdn_lib_init().
|
static |
App Interface
Definition at line 3116 of file isdn_lib.c.
References buff, errno, misdn_lib::midev, and NULL.
Referenced by misdn_lib_init().
|
static |
Definition at line 3168 of file isdn_lib.c.
References misdn_bchannel::b_stid, cb_log, misdn_bchannel::in_use, misdn_bchannel::last_used, misdn_lib_port_is_pri(), NULL, and misdn_bchannel::port.
Referenced by misdn_lib_get_free_bc().
enum event_response_e(* cb_event) (enum event_e event, struct misdn_bchannel *bc, void *user_data) |
Definition at line 30 of file isdn_lib.c.
Referenced by clear_l3(), do_tone(), handle_bchan(), handle_cr(), handle_event_nt(), handle_frm_te(), handle_l1(), handle_l2(), manager_clean_bc(), misdn_lib_init(), set_channel(), and setup_bc().
int(* cb_jb_empty) (struct misdn_bchannel *bc, char *buffer, int len) |
Definition at line 35 of file isdn_lib.c.
Referenced by misdn_lib_init(), and misdn_tx_jitter().
void(* cb_log) (int level, int port, char *tmpl,...) |
Definition at line 32 of file isdn_lib.c.
Referenced by bc_next_state_change(), bc_state_change(), build_connect(), build_disconnect(), build_release(), build_release_complete(), build_restart(), build_setup(), cb_events(), clean_up_bc(), config_jitterbuffer(), create_process(), dec_ie_facility(), do_tone(), dump_chan_list(), empty_chan_in_stack(), fetch_msg(), find_free_chan_in_stack(), handle_bchan(), handle_cr(), handle_err(), handle_event_nt(), handle_event_te(), handle_frm_nt(), handle_frm_te(), handle_l1(), handle_l2(), handle_mgmt(), handle_timers(), hangup_chan(), init_bc(), isdn_msg_get_index_by_event(), manager_bchannel_activate(), manager_bchannel_deactivate(), manager_ec_disable(), manager_ec_enable(), manager_event_handler(), manager_isdn_handler(), manager_ph_control(), misdn_join_conf(), misdn_lib_bridge(), misdn_lib_destroy(), misdn_lib_echo(), misdn_lib_get_free_bc(), misdn_lib_get_l1_down(), misdn_lib_get_l1_up(), misdn_lib_get_port_info(), misdn_lib_init(), misdn_lib_isdn_event_catcher(), misdn_lib_isdn_l1watcher(), misdn_lib_log_ies(), misdn_lib_port_restart(), misdn_lib_port_up(), misdn_lib_release(), misdn_lib_send_event(), misdn_lib_send_restart(), misdn_lib_split_bridge(), misdn_lib_tx2misdn_frm(), misdn_split_conf(), misdn_tasks_destroy(), misdn_tx_jitter(), misdn_write(), parse_facility(), parse_release_complete(), parse_restart(), parse_setup(), release_cr(), send_msg(), set_chan_in_stack(), set_channel(), setup_bc(), stack_holder_add(), stack_holder_find(), stack_holder_remove(), stack_init(), te_lib_destroy(), and test_inuse().
|
static |
Definition at line 259 of file isdn_lib.c.
Referenced by ast_xml_escape(), pidf_allocate_body(), and pidf_validate_presence().
|
static |
Definition at line 319 of file isdn_lib.c.
|
static |
Definition at line 261 of file isdn_lib.c.
|
static |
Definition at line 199 of file isdn_lib.c.
|
static |
Definition at line 4022 of file isdn_lib.c.
struct isdn_msg msgs_g[] |
Msg Array
Definition at line 1633 of file isdn_msg_parser.c.
Referenced by handle_event_nt(), handle_frm_te(), manager_isdn_get_info(), and misdn_lib_send_event().
|
static |
Definition at line 433 of file isdn_lib.c.
Referenced by prepare_bc().
|
static |
Definition at line 874 of file isdn_lib.c.
|
static |
Definition at line 192 of file isdn_lib.c.
|
static |
Definition at line 263 of file isdn_lib.c.
|
static |
Definition at line 264 of file isdn_lib.c.