Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 882 of file chan_dahdi.h.
#define MAX_SLAVES 4 |
Definition at line 95 of file chan_dahdi.h.
#define SIG_BRI (0x2000000 | DAHDI_SIG_CLEAR) |
Definition at line 801 of file chan_dahdi.h.
#define SIG_BRI_PTMP (0X4000000 | DAHDI_SIG_CLEAR) |
Definition at line 802 of file chan_dahdi.h.
#define SIG_E911 (0x1000000 | DAHDI_SIG_EM) |
Definition at line 782 of file chan_dahdi.h.
#define SIG_EM DAHDI_SIG_EM |
Definition at line 777 of file chan_dahdi.h.
#define SIG_EM_E1 DAHDI_SIG_EM_E1 |
Definition at line 797 of file chan_dahdi.h.
#define SIG_EMWINK (0x0100000 | DAHDI_SIG_EM) |
Definition at line 778 of file chan_dahdi.h.
#define SIG_FEATB (0x0800000 | DAHDI_SIG_EM) |
Definition at line 781 of file chan_dahdi.h.
#define SIG_FEATD (0x0200000 | DAHDI_SIG_EM) |
Definition at line 779 of file chan_dahdi.h.
#define SIG_FEATDMF (0x0400000 | DAHDI_SIG_EM) |
Definition at line 780 of file chan_dahdi.h.
#define SIG_FEATDMF_TA (0x2000000 | DAHDI_SIG_EM) |
Definition at line 783 of file chan_dahdi.h.
#define SIG_FGC_CAMA (0x4000000 | DAHDI_SIG_EM) |
Definition at line 784 of file chan_dahdi.h.
#define SIG_FGC_CAMAMF (0x8000000 | DAHDI_SIG_EM) |
Definition at line 785 of file chan_dahdi.h.
#define SIG_FXOGS DAHDI_SIG_FXOGS |
Definition at line 790 of file chan_dahdi.h.
#define SIG_FXOKS DAHDI_SIG_FXOKS |
Definition at line 791 of file chan_dahdi.h.
#define SIG_FXOLS DAHDI_SIG_FXOLS |
Definition at line 789 of file chan_dahdi.h.
#define SIG_FXSGS DAHDI_SIG_FXSGS |
Definition at line 787 of file chan_dahdi.h.
#define SIG_FXSKS DAHDI_SIG_FXSKS |
Definition at line 788 of file chan_dahdi.h.
#define SIG_FXSLS DAHDI_SIG_FXSLS |
Definition at line 786 of file chan_dahdi.h.
#define SIG_MFCR2 DAHDI_SIG_CAS |
Definition at line 808 of file chan_dahdi.h.
#define SIG_PRI DAHDI_SIG_CLEAR |
Definition at line 800 of file chan_dahdi.h.
#define SIG_PRI_LIB_HANDLE_CASES |
Definition at line 811 of file chan_dahdi.h.
#define SIG_SF DAHDI_SIG_SF |
Definition at line 792 of file chan_dahdi.h.
#define SIG_SF_FEATB (0x0800000 | DAHDI_SIG_SF) |
Definition at line 796 of file chan_dahdi.h.
#define SIG_SF_FEATD (0x0200000 | DAHDI_SIG_SF) |
Definition at line 794 of file chan_dahdi.h.
#define SIG_SF_FEATDMF (0x0400000 | DAHDI_SIG_SF) |
Definition at line 795 of file chan_dahdi.h.
#define SIG_SFWINK (0x0100000 | DAHDI_SIG_SF) |
Definition at line 793 of file chan_dahdi.h.
#define SIG_SS7 (0x1000000 | DAHDI_SIG_CLEAR) |
Definition at line 805 of file chan_dahdi.h.
#define SUB_CALLWAIT 1 |
Call-Waiting call on hold
Definition at line 58 of file chan_dahdi.h.
#define SUB_REAL 0 |
Active call
Definition at line 57 of file chan_dahdi.h.
#define SUB_THREEWAY 2 |
Three-way call
Definition at line 59 of file chan_dahdi.h.
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 3692 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 841 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_func_read(), dahdi_func_write(), dahdi_hangup(), dahdi_new(), dahdi_read(), dahdi_request(), destroy_dahdi_pvt(), do_monitor(), fxo_pvt(), mkintf(), mwi_thread(), and my_get_sigpvt_bridged_channel().
void dahdi_conf_update | ( | struct dahdi_pvt * | p | ) |
Definition at line 4843 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 6763 of file chan_dahdi.c.
References ast_dsp_set_features(), dahdi_subchannel::dfd, dahdi_pvt::dsp, 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 6777 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 4970 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 4898 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_init_event(), my_set_echocanceller(), and native_stop().
Definition at line 7400 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 7344 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 825 of file chan_dahdi.h.
References SIG_PRI_LIB_HANDLE_CASES.
Referenced by 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().
|
extern |
Definition at line 916 of file chan_dahdi.c.
Referenced by alloc_sub(), dahdi_new(), and native_start().