Asterisk - The Open Source Telephony Project
18.5.0
|
Interface to mISDN. More...
#include <mISDNuser/suppserv.h>
Go to the source code of this file.
Data Structures | |
struct | misdn_bchannel |
B channel control structure. More... | |
struct | misdn_lib_iface |
struct | misdn_party_dialing |
Dialed/Called information struct. More... | |
struct | misdn_party_id |
Connected-Line/Calling/Redirecting ID info struct. More... | |
struct | misdn_party_redirecting |
Redirecting information struct. More... | |
Macros | |
#define | MAX_BCHANS 31 |
#define | MISDN_MAX_KEYPAD_LEN (31 + 1) |
#define | MISDN_MAX_NAME_LEN (50 + 1) |
#define | MISDN_MAX_NUMBER_LEN (31 + 1) |
#define | MISDN_MAX_SUBADDRESS_LEN (23 + 1) |
#define | PRI_TRANS_CAP_3_1K_AUDIO 0x10 |
#define | PRI_TRANS_CAP_7K_AUDIO 0x11 |
#define | PRI_TRANS_CAP_DIGITAL 0x08 |
#define | PRI_TRANS_CAP_RESTRICTED_DIGITAL 0x09 |
#define | PRI_TRANS_CAP_SPEECH 0x0 |
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,...) |
Interface to mISDN.
Definition in file isdn_lib.h.
#define MAX_BCHANS 31 |
Definition at line 76 of file isdn_lib.h.
Referenced by clear_l3(), dump_chan_list(), find_bc_by_l3id(), find_bc_by_masked_l3id(), find_free_chan_in_stack(), misdn_lib_get_free_bc(), and misdn_lib_init().
#define MISDN_MAX_KEYPAD_LEN (31 + 1) |
Maximum keypad facility content length plus null terminator
Definition at line 255 of file isdn_lib.h.
#define MISDN_MAX_NAME_LEN (50 + 1) |
Maximum name length plus null terminator (From ECMA-164)
Definition at line 249 of file isdn_lib.h.
#define MISDN_MAX_NUMBER_LEN (31 + 1) |
Maximum phone number (address) length plus null terminator
Definition at line 246 of file isdn_lib.h.
Referenced by misdn_add_number_prefix().
#define MISDN_MAX_SUBADDRESS_LEN (23 + 1) |
Maximum subaddress length plus null terminator
Definition at line 252 of file isdn_lib.h.
#define PRI_TRANS_CAP_3_1K_AUDIO 0x10 |
Definition at line 820 of file isdn_lib.h.
#define PRI_TRANS_CAP_7K_AUDIO 0x11 |
Definition at line 821 of file isdn_lib.h.
#define PRI_TRANS_CAP_DIGITAL 0x08 |
Definition at line 818 of file isdn_lib.h.
#define PRI_TRANS_CAP_RESTRICTED_DIGITAL 0x09 |
Definition at line 819 of file isdn_lib.h.
#define PRI_TRANS_CAP_SPEECH 0x0 |
Definition at line 817 of file isdn_lib.h.
anonymous enum |
Definition at line 171 of file isdn_lib.h.
anonymous enum |
Definition at line 181 of file isdn_lib.h.
anonymous enum |
Enumerator | |
---|---|
INFO_CODEC_ULAW | |
INFO_CODEC_ALAW |
Definition at line 232 of file isdn_lib.h.
enum bchannel_state |
Enumerator | |
---|---|
BCHAN_CLEANED | |
BCHAN_EMPTY | |
BCHAN_ACTIVATED | |
BCHAN_BRIDGED | |
BCHAN_RELEASE | |
BCHAN_ERROR |
Definition at line 78 of file isdn_lib.h.
enum event_e |
Definition at line 119 of file isdn_lib.h.
enum event_response_e |
Enumerator | |
---|---|
RESPONSE_IGNORE_SETUP_WITHOUT_CLOSE | |
RESPONSE_IGNORE_SETUP | |
RESPONSE_RELEASE_SETUP | |
RESPONSE_ERR | |
RESPONSE_OK |
Definition at line 110 of file isdn_lib.h.
enum ie_name_e |
Enumerator | |
---|---|
IE_DUMMY | |
IE_LAST |
Definition at line 166 of file isdn_lib.h.
enum layer_e |
Enumerator | |
---|---|
L3 | |
L2 | |
L1 | |
UNKNOWN |
Definition at line 238 of file isdn_lib.h.
enum misdn_err_e |
Enumerator | |
---|---|
ENOCHAN |
Definition at line 88 of file isdn_lib.h.
enum mISDN_NOTIFY_CODE |
Notification description code enumeration.
Definition at line 216 of file isdn_lib.h.
enum mISDN_NUMBER_PLAN |
Enumerator | |
---|---|
NUMPLAN_UNKNOWN | |
NUMPLAN_ISDN | |
NUMPLAN_DATA | |
NUMPLAN_TELEX | |
NUMPLAN_NATIONAL | |
NUMPLAN_PRIVATE |
Definition at line 92 of file isdn_lib.h.
enum mISDN_NUMBER_TYPE |
Enumerator | |
---|---|
NUMTYPE_UNKNOWN | |
NUMTYPE_INTERNATIONAL | |
NUMTYPE_NATIONAL | |
NUMTYPE_NETWORK_SPECIFIC | |
NUMTYPE_SUBSCRIBER | |
NUMTYPE_ABBREVIATED |
Definition at line 101 of file isdn_lib.h.
Q.931 encoded redirecting reason.
Definition at line 197 of file isdn_lib.h.
enum tone_e |
For initialization usage end of init usage
Enumerator | |
---|---|
TONE_NONE | |
TONE_DIAL | |
TONE_ALERTING | |
TONE_FAR_ALERTING | |
TONE_BUSY | |
TONE_HANGUP | |
TONE_CUSTOM | |
TONE_FILE |
Definition at line 63 of file isdn_lib.h.
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().
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().
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_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_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().
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().
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().
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_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().
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().
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().
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 | notcheck | ||
) |
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().
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().