Asterisk - The Open Source Telephony Project
18.5.0
|
DAHDI internal API definitions. More...
#include <dahdi/user.h>
#include <dahdi/tonezone.h>
#include "asterisk/channel.h"
#include "asterisk/dsp.h"
#include "asterisk/app.h"
#include "asterisk/mwi.h"
Go to the source code of this file.
Data Structures | |
struct | dahdi_distRings |
struct | dahdi_pvt |
struct | dahdi_subchannel |
struct | distRingData |
struct | mwisend_info |
struct | ringContextData |
Macros | |
#define | dahdi_get_index(ast, p, nullok) _dahdi_get_index(ast, p, nullok, __PRETTY_FUNCTION__, __LINE__) |
#define | MAX_SLAVES 4 |
#define | SIG_BRI (0x2000000 | DAHDI_SIG_CLEAR) |
#define | SIG_BRI_PTMP (0X4000000 | DAHDI_SIG_CLEAR) |
#define | SIG_E911 (0x1000000 | DAHDI_SIG_EM) |
#define | SIG_EM DAHDI_SIG_EM |
#define | SIG_EM_E1 DAHDI_SIG_EM_E1 |
#define | SIG_EMWINK (0x0100000 | DAHDI_SIG_EM) |
#define | SIG_FEATB (0x0800000 | DAHDI_SIG_EM) |
#define | SIG_FEATD (0x0200000 | DAHDI_SIG_EM) |
#define | SIG_FEATDMF (0x0400000 | DAHDI_SIG_EM) |
#define | SIG_FEATDMF_TA (0x2000000 | DAHDI_SIG_EM) |
#define | SIG_FGC_CAMA (0x4000000 | DAHDI_SIG_EM) |
#define | SIG_FGC_CAMAMF (0x8000000 | DAHDI_SIG_EM) |
#define | SIG_FXOGS DAHDI_SIG_FXOGS |
#define | SIG_FXOKS DAHDI_SIG_FXOKS |
#define | SIG_FXOLS DAHDI_SIG_FXOLS |
#define | SIG_FXSGS DAHDI_SIG_FXSGS |
#define | SIG_FXSKS DAHDI_SIG_FXSKS |
#define | SIG_FXSLS DAHDI_SIG_FXSLS |
#define | SIG_MFCR2 DAHDI_SIG_CAS |
#define | SIG_PRI DAHDI_SIG_CLEAR |
#define | SIG_PRI_LIB_HANDLE_CASES |
#define | SIG_SF DAHDI_SIG_SF |
#define | SIG_SF_FEATB (0x0800000 | DAHDI_SIG_SF) |
#define | SIG_SF_FEATD (0x0200000 | DAHDI_SIG_SF) |
#define | SIG_SF_FEATDMF (0x0400000 | DAHDI_SIG_SF) |
#define | SIG_SFWINK (0x0100000 | DAHDI_SIG_SF) |
#define | SIG_SS7 (0x1000000 | DAHDI_SIG_CLEAR) |
#define | SUB_CALLWAIT 1 |
#define | SUB_REAL 0 |
#define | SUB_THREEWAY 2 |
Enumerations | |
enum | DAHDI_IFLIST { DAHDI_IFLIST_NONE, DAHDI_IFLIST_MAIN } |
enum | mwisend_states { MWI_SEND_NULL = 0, MWI_SEND_SA, MWI_SEND_SA_WAIT, MWI_SEND_PAUSE, MWI_SEND_SPILL, MWI_SEND_CLEANUP, MWI_SEND_DONE } |
Functions | |
int | _dahdi_get_index (struct ast_channel *ast, struct dahdi_pvt *p, int nullok, const char *fname, unsigned long line) |
static int | dahdi_analog_lib_handles (int signalling, int radio, int oprmode) |
void | dahdi_conf_update (struct dahdi_pvt *p) |
void | dahdi_dtmf_detect_disable (struct dahdi_pvt *p) |
void | dahdi_dtmf_detect_enable (struct dahdi_pvt *p) |
void | dahdi_ec_disable (struct dahdi_pvt *p) |
void | dahdi_ec_enable (struct dahdi_pvt *p) |
void | dahdi_master_slave_link (struct dahdi_pvt *slave, struct dahdi_pvt *master) |
void | dahdi_master_slave_unlink (struct dahdi_pvt *slave, struct dahdi_pvt *master, int needlock) |
static int | dahdi_sig_pri_lib_handles (int signaling) |
Variables | |
const char *const | subnames [] |
#define dahdi_get_index | ( | ast, | |
p, | |||
nullok | |||
) | _dahdi_get_index(ast, p, nullok, __PRETTY_FUNCTION__, __LINE__) |
Definition at line 827 of file chan_dahdi.h.
Referenced by __dahdi_exception(), analog_ss_thread(), dahdi_answer(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_read(), dahdi_sendtext(), dahdi_setoption(), dahdi_write(), native_chan_changed(), and native_start().
#define MAX_SLAVES 4 |
Definition at line 95 of file chan_dahdi.h.
Referenced by dahdi_conf_update(), dahdi_master_slave_link(), dahdi_master_slave_unlink(), dahdi_show_channel(), isslavenative(), and my_complete_conference_update().
#define SIG_BRI (0x2000000 | DAHDI_SIG_CLEAR) |
Definition at line 746 of file chan_dahdi.h.
Referenced by dahdi_sig2str(), and process_dahdi().
#define SIG_BRI_PTMP (0X4000000 | DAHDI_SIG_CLEAR) |
Definition at line 747 of file chan_dahdi.h.
Referenced by dahdi_sig2str(), mkintf(), and process_dahdi().
#define SIG_E911 (0x1000000 | DAHDI_SIG_EM) |
Definition at line 727 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_EM DAHDI_SIG_EM |
Definition at line 722 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_EM_E1 DAHDI_SIG_EM_E1 |
Definition at line 742 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_EMWINK (0x0100000 | DAHDI_SIG_EM) |
Definition at line 723 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FEATB (0x0800000 | DAHDI_SIG_EM) |
Definition at line 726 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FEATD (0x0200000 | DAHDI_SIG_EM) |
Definition at line 724 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FEATDMF (0x0400000 | DAHDI_SIG_EM) |
Definition at line 725 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FEATDMF_TA (0x2000000 | DAHDI_SIG_EM) |
Definition at line 728 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FGC_CAMA (0x4000000 | DAHDI_SIG_EM) |
Definition at line 729 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FGC_CAMAMF (0x8000000 | DAHDI_SIG_EM) |
Definition at line 730 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FXOGS DAHDI_SIG_FXOGS |
Definition at line 735 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FXOKS DAHDI_SIG_FXOKS |
Definition at line 736 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FXOLS DAHDI_SIG_FXOLS |
Definition at line 734 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_FXSGS DAHDI_SIG_FXSGS |
Definition at line 732 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_sig2str(), dahdisig_to_analogsig(), do_monitor(), handle_init_event(), my_is_off_hook(), and process_dahdi().
#define SIG_FXSKS DAHDI_SIG_FXSKS |
Definition at line 733 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_sig2str(), dahdisig_to_analogsig(), do_monitor(), handle_init_event(), mkintf(), my_is_off_hook(), and process_dahdi().
#define SIG_FXSLS DAHDI_SIG_FXSLS |
Definition at line 731 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_sig2str(), dahdisig_to_analogsig(), do_monitor(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_MFCR2 DAHDI_SIG_CAS |
Definition at line 753 of file chan_dahdi.h.
Referenced by dahdi_answer(), dahdi_call(), dahdi_cc_callback(), dahdi_func_read(), dahdi_handle_event(), dahdi_hangup(), dahdi_sig2str(), do_monitor(), mkintf(), and process_dahdi().
#define SIG_PRI DAHDI_SIG_CLEAR |
Definition at line 745 of file chan_dahdi.h.
Referenced by dahdi_indicate(), dahdi_sig2str(), mkintf(), and process_dahdi().
#define SIG_PRI_LIB_HANDLE_CASES |
Definition at line 756 of file chan_dahdi.h.
Referenced by available(), dahdi_answer(), dahdi_confmute(), dahdi_digit_begin(), dahdi_ec_enable(), dahdi_func_read(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_request(), dahdi_sig_pri_lib_handles(), destroy_all_channels(), destroy_dahdi_pvt(), handle_init_event(), mkintf(), and my_new_analog_ast_channel().
#define SIG_SF DAHDI_SIG_SF |
Definition at line 737 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_SF_FEATB (0x0800000 | DAHDI_SIG_SF) |
Definition at line 741 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_SF_FEATD (0x0200000 | DAHDI_SIG_SF) |
Definition at line 739 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), and mkintf().
#define SIG_SF_FEATDMF (0x0400000 | DAHDI_SIG_SF) |
Definition at line 740 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), and mkintf().
#define SIG_SFWINK (0x0100000 | DAHDI_SIG_SF) |
Definition at line 738 of file chan_dahdi.h.
Referenced by analog_ss_thread(), dahdi_analog_lib_handles(), dahdi_handle_event(), dahdi_sig2str(), dahdisig_to_analogsig(), handle_init_event(), mkintf(), and process_dahdi().
#define SIG_SS7 (0x1000000 | DAHDI_SIG_CLEAR) |
Definition at line 750 of file chan_dahdi.h.
Referenced by available(), dahdi_answer(), dahdi_call(), dahdi_confmute(), dahdi_ec_enable(), dahdi_fixup(), dahdi_func_read(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_request(), dahdi_sig2str(), destroy_dahdi_pvt(), handle_init_event(), mkintf(), and process_dahdi().
#define SUB_CALLWAIT 1 |
Call-Waiting call on hold
Definition at line 58 of file chan_dahdi.h.
Referenced by _dahdi_get_index(), analog_ss_thread(), analogsub_to_dahdisub(), dahdi_handle_event(), dahdi_hangup(), dahdi_read(), dahdi_request(), dahdi_show_channel(), and native_start().
#define SUB_REAL 0 |
Active call
Definition at line 57 of file chan_dahdi.h.
Referenced by __dahdi_exception(), _dahdi_get_index(), analog_ss_thread(), analogsub_to_dahdisub(), attempt_transfer(), available(), bump_gains(), check_for_conference(), dahdi_answer(), dahdi_call(), dahdi_cc_callback(), dahdi_conf_update(), dahdi_confmute(), dahdi_destroy_channel_range(), dahdi_dial_str(), dahdi_digit_begin(), dahdi_digit_end(), dahdi_dtmf_detect_disable(), dahdi_dtmf_detect_enable(), dahdi_ec_disable(), dahdi_ec_enable(), dahdi_func_write(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_master_slave_unlink(), dahdi_new(), dahdi_read(), dahdi_request(), dahdi_restart(), dahdi_ring_phone(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_setoption(), dahdi_show_channel(), dahdi_train_ec(), destroy_dahdi_pvt(), do_monitor(), duplicate_pseudo(), get_alarms(), handle_clear_alarms(), handle_init_event(), mkintf(), mwi_send_init(), mwi_send_process_buffer(), mwi_send_process_event(), mwi_thread(), my_all_subchannels_hungup(), my_complete_conference_update(), my_flash(), my_get_callerid(), my_get_event(), my_is_off_hook(), my_new_analog_ast_channel(), my_off_hook(), my_on_hook(), my_set_cadence(), my_set_needringing(), my_set_polarity(), my_start(), my_start_cid_detect(), my_stop_cid_detect(), my_wait_event(), my_wink(), native_chan_changed(), native_start(), native_stop(), reset_conf(), restore_conference(), restore_gains(), revert_fax_buffers(), save_conference(), and send_callerid().
#define SUB_THREEWAY 2 |
Three-way call
Definition at line 59 of file chan_dahdi.h.
Referenced by _dahdi_get_index(), analog_ss_thread(), analogsub_to_dahdisub(), attempt_transfer(), dahdi_handle_event(), dahdi_hangup(), dahdi_show_channel(), and native_start().
enum DAHDI_IFLIST |
Specify the lists dahdi_pvt can be put in.
Enumerator | |
---|---|
DAHDI_IFLIST_NONE | The dahdi_pvt is not in any list. |
DAHDI_IFLIST_MAIN | The dahdi_pvt is in the main interface list |
Definition at line 116 of file chan_dahdi.h.
enum mwisend_states |
Enumerator | |
---|---|
MWI_SEND_NULL | |
MWI_SEND_SA | |
MWI_SEND_SA_WAIT | |
MWI_SEND_PAUSE | |
MWI_SEND_SPILL | |
MWI_SEND_CLEANUP | |
MWI_SEND_DONE |
Definition at line 100 of file chan_dahdi.h.
int _dahdi_get_index | ( | struct ast_channel * | ast, |
struct dahdi_pvt * | p, | ||
int | nullok, | ||
const char * | fname, | ||
unsigned long | line | ||
) |
Definition at line 3431 of file chan_dahdi.c.
References ast_channel_name(), ast_log, dahdi_pvt::channel, LOG_WARNING, dahdi_subchannel::owner, SUB_CALLWAIT, SUB_REAL, SUB_THREEWAY, and dahdi_pvt::subs.
|
inlinestatic |
Definition at line 786 of file chan_dahdi.h.
References SIG_E911, SIG_EM, SIG_EM_E1, SIG_EMWINK, SIG_FEATB, SIG_FEATD, SIG_FEATDMF, SIG_FEATDMF_TA, SIG_FGC_CAMA, SIG_FGC_CAMAMF, SIG_FXOGS, SIG_FXOKS, SIG_FXOLS, SIG_FXSGS, SIG_FXSKS, SIG_FXSLS, SIG_SF, SIG_SF_FEATB, SIG_SF_FEATD, SIG_SF_FEATDMF, and SIG_SFWINK.
Referenced by action_transfer(), action_transferhangup(), available(), dahdi_answer(), dahdi_call(), dahdi_dnd(), dahdi_exception(), dahdi_fixup(), dahdi_hangup(), dahdi_new(), dahdi_read(), dahdi_request(), destroy_dahdi_pvt(), do_monitor(), mkintf(), mwi_thread(), and my_get_sigpvt_bridged_channel().
void dahdi_conf_update | ( | struct dahdi_pvt * | p | ) |
Definition at line 4583 of file chan_dahdi.c.
References ast_debug, dahdi_pvt::channel, conf_add(), conf_del(), dahdi_pvt::confno, dahdi_subchannel::dfd, GET_CHANNEL, dahdi_pvt::inconference, dahdi_subchannel::inthreeway, isslavenative(), dahdi_pvt::master, MAX_SLAVES, NULL, dahdi_pvt::slaves, SUB_REAL, and dahdi_pvt::subs.
Referenced by __dahdi_exception(), dahdi_fixup(), dahdi_handle_event(), dahdi_hangup(), dahdi_master_slave_unlink(), mkintf(), and native_start().
void dahdi_dtmf_detect_disable | ( | struct dahdi_pvt * | p | ) |
Definition at line 6473 of file chan_dahdi.c.
References ast_dsp_set_features(), dahdi_subchannel::dfd, dahdi_pvt::dsp, DSP_FEATURE_DIGIT_DETECT, dahdi_pvt::dsp_features, dahdi_pvt::hardwaredtmf, dahdi_pvt::ignoredtmf, SUB_REAL, and dahdi_pvt::subs.
Referenced by dahdi_setoption(), and native_start().
void dahdi_dtmf_detect_enable | ( | struct dahdi_pvt * | p | ) |
Definition at line 6487 of file chan_dahdi.c.
References ast_dsp_set_features(), CHAN_PSEUDO, dahdi_pvt::channel, dahdi_subchannel::dfd, dahdi_pvt::dsp, DSP_FEATURE_DIGIT_DETECT, dahdi_pvt::dsp_features, dahdi_pvt::hardwaredtmf, dahdi_pvt::ignoredtmf, SUB_REAL, and dahdi_pvt::subs.
Referenced by dahdi_setoption(), and native_stop().
void dahdi_ec_disable | ( | struct dahdi_pvt * | p | ) |
Definition at line 4710 of file chan_dahdi.c.
References ast_debug, ast_log, dahdi_pvt::channel, dahdi_subchannel::dfd, dahdi_pvt::echocanon, errno, LOG_WARNING, SUB_REAL, and dahdi_pvt::subs.
Referenced by __dahdi_exception(), dahdi_func_write(), dahdi_handle_event(), dahdi_hangup(), dahdi_setoption(), handle_init_event(), my_set_echocanceller(), and native_start().
void dahdi_ec_enable | ( | struct dahdi_pvt * | p | ) |
Definition at line 4638 of file chan_dahdi.c.
References ast_debug, ast_log, dahdi_pvt::channel, dahdi_subchannel::dfd, dahdi_pvt::digital, dahdi_pvt::echocancel, dahdi_pvt::echocanon, errno, dahdi_pvt::head, LOG_WARNING, dahdi_pvt::sig, SIG_PRI_LIB_HANDLE_CASES, dahdi_pvt::sig_pvt, SIG_SS7, SUB_REAL, and dahdi_pvt::subs.
Referenced by __dahdi_exception(), analog_ss_thread(), dahdi_func_write(), dahdi_handle_event(), dahdi_setoption(), handle_clear_alarms(), handle_init_event(), my_set_echocanceller(), and native_stop().
Definition at line 7037 of file chan_dahdi.c.
References ast_debug, ast_log, dahdi_pvt::channel, LOG_WARNING, dahdi_pvt::master, MAX_SLAVES, and dahdi_pvt::slaves.
Referenced by native_start().
void dahdi_master_slave_unlink | ( | struct dahdi_pvt * | slave, |
struct dahdi_pvt * | master, | ||
int | needlock | ||
) |
Definition at line 6981 of file chan_dahdi.c.
References ast_debug, ast_mutex_lock, ast_mutex_trylock, ast_mutex_unlock, dahdi_pvt::channel, conf_del(), dahdi_conf_update(), DEADLOCK_AVOIDANCE, dahdi_pvt::inconference, dahdi_pvt::lock, dahdi_pvt::master, MAX_SLAVES, NULL, dahdi_pvt::slaves, SUB_REAL, and dahdi_pvt::subs.
Referenced by dahdi_fixup(), and native_stop().
|
inlinestatic |
Definition at line 770 of file chan_dahdi.h.
References SIG_PRI_LIB_HANDLE_CASES.
Referenced by action_dahdishowchannels(), dahdi_call(), dahdi_cc_callback(), dahdi_digit_end(), dahdi_fixup(), dahdi_handle_event(), dahdi_hangup(), dahdi_new(), dahdi_queryoption(), dahdi_read(), dahdi_request(), dahdi_sendtext(), dahdi_setoption(), handle_alarms(), handle_clear_alarms(), mkintf(), and native_start().
const char* const subnames[] |
Definition at line 795 of file chan_dahdi.c.
Referenced by alloc_sub(), dahdi_new(), and native_start().