📄 divacapi.h
字号:
#define LEC_ENABLE_NONLINEAR_PROCESSING 0x0010#define LEC_FREEZE_COEFFICIENTS 0x0020#define LEC_RESET_COEFFICIENTS 0x8000#define LEC_MAX_SUPPORTED_TAIL_LENGTH 32#define LEC_UDATA_INDICATION_DISABLE_DETECT 9#define LEC_DISABLE_TYPE_CONTIGNUOUS_2100HZ 0x00#define LEC_DISABLE_TYPE_REVERSED_2100HZ 0x01#define LEC_DISABLE_RELEASED 0x02/*------------------------------------------------------------------*//* RTP interface to IDI *//*------------------------------------------------------------------*/#define B1_RTP 31#define B2_RTP 31#define B3_RTP 31#define PRIVATE_RTP 1#define RTP_PRIM_PAYLOAD_PCMU_8000 0#define RTP_PRIM_PAYLOAD_1016_8000 1#define RTP_PRIM_PAYLOAD_G726_32_8000 2#define RTP_PRIM_PAYLOAD_GSM_8000 3#define RTP_PRIM_PAYLOAD_G723_8000 4#define RTP_PRIM_PAYLOAD_DVI4_8000 5#define RTP_PRIM_PAYLOAD_DVI4_16000 6#define RTP_PRIM_PAYLOAD_LPC_8000 7#define RTP_PRIM_PAYLOAD_PCMA_8000 8#define RTP_PRIM_PAYLOAD_G722_16000 9#define RTP_PRIM_PAYLOAD_QCELP_8000 12#define RTP_PRIM_PAYLOAD_G728_8000 14#define RTP_PRIM_PAYLOAD_G729_8000 18#define RTP_PRIM_PAYLOAD_GSM_HR_8000 30#define RTP_PRIM_PAYLOAD_GSM_EFR_8000 31#define RTP_ADD_PAYLOAD_BASE 32#define RTP_ADD_PAYLOAD_RED 32#define RTP_ADD_PAYLOAD_CN_8000 33#define RTP_ADD_PAYLOAD_DTMF 34#define RTP_SUCCESS 0#define RTP_ERR_SSRC_OR_PAYLOAD_CHANGE 1#define UDATA_REQUEST_RTP_RECONFIGURE 64#define UDATA_INDICATION_RTP_CHANGE 65#define BUDATA_REQUEST_QUERY_RTCP_REPORT 1#define BUDATA_INDICATION_RTCP_REPORT 1#define RTP_CONNECT_OPTION_DISC_ON_SSRC_CHANGE 0x00000001L#define RTP_CONNECT_OPTION_DISC_ON_PT_CHANGE 0x00000002L#define RTP_CONNECT_OPTION_DISC_ON_UNKNOWN_PT 0x00000004L#define RTP_CONNECT_OPTION_NO_SILENCE_TRANSMIT 0x00010000L#define RTP_PAYLOAD_OPTION_VOICE_ACTIVITY_DETECT 0x0001#define RTP_PAYLOAD_OPTION_DISABLE_POST_FILTER 0x0002#define RTP_PAYLOAD_OPTION_G723_LOW_CODING_RATE 0x0100#define RTP_PACKET_FILTER_IGNORE_UNKNOWN_SSRC 0x00000001L#define RTP_CHANGE_FLAG_SSRC_CHANGE 0x00000001L#define RTP_CHANGE_FLAG_PAYLOAD_TYPE_CHANGE 0x00000002L#define RTP_CHANGE_FLAG_UNKNOWN_PAYLOAD_TYPE 0x00000004L/*------------------------------------------------------------------*//* T.38 interface to IDI *//*------------------------------------------------------------------*/#define B1_T38 30#define B2_T38 30#define B3_T38 30#define PRIVATE_T38 2/*------------------------------------------------------------------*//* PIAFS interface to IDI *//*------------------------------------------------------------------*/#define B1_PIAFS 29#define B2_PIAFS 29#define PRIVATE_PIAFS 29 /* B2 configuration for PIAFS:+---------------------+------+-----------------------------------------+| PIAFS Protocol | byte | Bit 1 - Protocol Speed || Speed configuration | | 0 - 32K || | | 1 - 64K (default) || | | Bit 2 - Variable Protocol Speed || | | 0 - Speed is fix || | | 1 - Speed is variable (default) |+---------------------+------+-----------------------------------------+| Direction | word | Enable compression/decompression for || | | 0: All direction || | | 1: disable outgoing data || | | 2: disable incomming data || | | 3: disable both direction (default) |+---------------------+------+-----------------------------------------+| Number of code | word | Parameter P1 of V.42bis in accordance || words | | with V.42bis |+---------------------+------+-----------------------------------------+| Maximum String | word | Parameter P2 of V.42bis in accordance || Length | | with V.42bis |+---------------------+------+-----------------------------------------+| control (UDATA) | byte | enable PIAFS control communication || abilities | | |+---------------------+------+-----------------------------------------+*/#define PIAFS_UDATA_ABILITIES 0x80/*------------------------------------------------------------------*//* FAX SUB/SEP/PWD extension *//*------------------------------------------------------------------*/#define PRIVATE_FAX_SUB_SEP_PWD 3/*------------------------------------------------------------------*//* V.18 extension *//*------------------------------------------------------------------*/#define PRIVATE_V18 4/*------------------------------------------------------------------*//* DTMF TONE extension *//*------------------------------------------------------------------*/#define DTMF_GET_SUPPORTED_DETECT_CODES 0xf8#define DTMF_GET_SUPPORTED_SEND_CODES 0xf9#define DTMF_LISTEN_TONE_START 0xfa#define DTMF_LISTEN_TONE_STOP 0xfb#define DTMF_SEND_TONE 0xfc#define DTMF_LISTEN_MF_START 0xfd#define DTMF_LISTEN_MF_STOP 0xfe#define DTMF_SEND_MF 0xff#define DTMF_MF_DIGIT_TONE_CODE_1 0x10#define DTMF_MF_DIGIT_TONE_CODE_2 0x11#define DTMF_MF_DIGIT_TONE_CODE_3 0x12#define DTMF_MF_DIGIT_TONE_CODE_4 0x13#define DTMF_MF_DIGIT_TONE_CODE_5 0x14#define DTMF_MF_DIGIT_TONE_CODE_6 0x15#define DTMF_MF_DIGIT_TONE_CODE_7 0x16#define DTMF_MF_DIGIT_TONE_CODE_8 0x17#define DTMF_MF_DIGIT_TONE_CODE_9 0x18#define DTMF_MF_DIGIT_TONE_CODE_0 0x19#define DTMF_MF_DIGIT_TONE_CODE_K1 0x1a#define DTMF_MF_DIGIT_TONE_CODE_K2 0x1b#define DTMF_MF_DIGIT_TONE_CODE_KP 0x1c#define DTMF_MF_DIGIT_TONE_CODE_S1 0x1d#define DTMF_MF_DIGIT_TONE_CODE_ST 0x1e#define DTMF_DIGIT_CODE_COUNT 16#define DTMF_MF_DIGIT_CODE_BASE DSP_DTMF_DIGIT_CODE_COUNT#define DTMF_MF_DIGIT_CODE_COUNT 15#define DTMF_TOTAL_DIGIT_CODE_COUNT (DSP_MF_DIGIT_CODE_BASE + DSP_MF_DIGIT_CODE_COUNT)#define DTMF_TONE_DIGIT_BASE 0x80#define DTMF_SIGNAL_NO_TONE (DTMF_TONE_DIGIT_BASE + 0)#define DTMF_SIGNAL_UNIDENTIFIED_TONE (DTMF_TONE_DIGIT_BASE + 1)#define DTMF_SIGNAL_DIAL_TONE (DTMF_TONE_DIGIT_BASE + 2)#define DTMF_SIGNAL_PABX_INTERNAL_DIAL_TONE (DTMF_TONE_DIGIT_BASE + 3)#define DTMF_SIGNAL_SPECIAL_DIAL_TONE (DTMF_TONE_DIGIT_BASE + 4) /* stutter dial tone */#define DTMF_SIGNAL_SECOND_DIAL_TONE (DTMF_TONE_DIGIT_BASE + 5)#define DTMF_SIGNAL_RINGING_TONE (DTMF_TONE_DIGIT_BASE + 6)#define DTMF_SIGNAL_SPECIAL_RINGING_TONE (DTMF_TONE_DIGIT_BASE + 7)#define DTMF_SIGNAL_BUSY_TONE (DTMF_TONE_DIGIT_BASE + 8)#define DTMF_SIGNAL_CONGESTION_TONE (DTMF_TONE_DIGIT_BASE + 9) /* reorder tone */#define DTMF_SIGNAL_SPECIAL_INFORMATION_TONE (DTMF_TONE_DIGIT_BASE + 10)#define DTMF_SIGNAL_COMFORT_TONE (DTMF_TONE_DIGIT_BASE + 11)#define DTMF_SIGNAL_HOLD_TONE (DTMF_TONE_DIGIT_BASE + 12)#define DTMF_SIGNAL_RECORD_TONE (DTMF_TONE_DIGIT_BASE + 13)#define DTMF_SIGNAL_CALLER_WAITING_TONE (DTMF_TONE_DIGIT_BASE + 14)#define DTMF_SIGNAL_CALL_WAITING_TONE (DTMF_TONE_DIGIT_BASE + 15)#define DTMF_SIGNAL_PAY_TONE (DTMF_TONE_DIGIT_BASE + 16)#define DTMF_SIGNAL_POSITIVE_INDICATION_TONE (DTMF_TONE_DIGIT_BASE + 17)#define DTMF_SIGNAL_NEGATIVE_INDICATION_TONE (DTMF_TONE_DIGIT_BASE + 18)#define DTMF_SIGNAL_WARNING_TONE (DTMF_TONE_DIGIT_BASE + 19)#define DTMF_SIGNAL_INTRUSION_TONE (DTMF_TONE_DIGIT_BASE + 20)#define DTMF_SIGNAL_CALLING_CARD_SERVICE_TONE (DTMF_TONE_DIGIT_BASE + 21)#define DTMF_SIGNAL_PAYPHONE_RECOGNITION_TONE (DTMF_TONE_DIGIT_BASE + 22)#define DTMF_SIGNAL_CPE_ALERTING_SIGNAL (DTMF_TONE_DIGIT_BASE + 23)#define DTMF_SIGNAL_OFF_HOOK_WARNING_TONE (DTMF_TONE_DIGIT_BASE + 24)#define DTMF_SIGNAL_INTERCEPT_TONE (DTMF_TONE_DIGIT_BASE + 63)#define DTMF_SIGNAL_MODEM_CALLING_TONE (DTMF_TONE_DIGIT_BASE + 64)#define DTMF_SIGNAL_FAX_CALLING_TONE (DTMF_TONE_DIGIT_BASE + 65)#define DTMF_SIGNAL_ANSWER_TONE (DTMF_TONE_DIGIT_BASE + 66)#define DTMF_SIGNAL_REVERSED_ANSWER_TONE (DTMF_TONE_DIGIT_BASE + 67)#define DTMF_SIGNAL_ANSAM_TONE (DTMF_TONE_DIGIT_BASE + 68)#define DTMF_SIGNAL_REVERSED_ANSAM_TONE (DTMF_TONE_DIGIT_BASE + 69)#define DTMF_SIGNAL_BELL103_ANSWER_TONE (DTMF_TONE_DIGIT_BASE + 70)#define DTMF_SIGNAL_FAX_FLAGS (DTMF_TONE_DIGIT_BASE + 71)#define DTMF_SIGNAL_G2_FAX_GROUP_ID (DTMF_TONE_DIGIT_BASE + 72)#define DTMF_SIGNAL_HUMAN_SPEECH (DTMF_TONE_DIGIT_BASE + 73)#define DTMF_SIGNAL_ANSWERING_MACHINE_390 (DTMF_TONE_DIGIT_BASE + 74)#define DTMF_MF_LISTEN_ACTIVE_FLAG 0x02#define DTMF_SEND_MF_FLAG 0x02#define DTMF_TONE_LISTEN_ACTIVE_FLAG 0x04#define DTMF_SEND_TONE_FLAG 0x04#define PRIVATE_DTMF_TONE 5/*------------------------------------------------------------------*//* FAX paper format extension *//*------------------------------------------------------------------*/#define PRIVATE_FAX_PAPER_FORMATS 6/*------------------------------------------------------------------*//* V.OWN extension *//*------------------------------------------------------------------*/#define PRIVATE_VOWN 7/*------------------------------------------------------------------*//* FAX non-standard facilities extension *//*------------------------------------------------------------------*/#define PRIVATE_FAX_NONSTANDARD 8/*------------------------------------------------------------------*//* Advanced voice *//*------------------------------------------------------------------*/#define ADV_VOICE_WRITE_ACTIVATION 0#define ADV_VOICE_WRITE_DEACTIVATION 1#define ADV_VOICE_WRITE_UPDATE 2#define ADV_VOICE_OLD_COEF_COUNT 6#define ADV_VOICE_NEW_COEF_BASE (ADV_VOICE_OLD_COEF_COUNT * sizeof(word))/*------------------------------------------------------------------*//* B1 resource switching *//*------------------------------------------------------------------*/#define B1_FACILITY_LOCAL 0x01#define B1_FACILITY_MIXER 0x02#define B1_FACILITY_DTMFX 0x04#define B1_FACILITY_DTMFR 0x08#define B1_FACILITY_VOICE 0x10#define B1_FACILITY_EC 0x20#define ADJUST_B_MODE_SAVE 0x0001#define ADJUST_B_MODE_REMOVE_L23 0x0002#define ADJUST_B_MODE_SWITCH_L1 0x0004#define ADJUST_B_MODE_NO_RESOURCE 0x0008#define ADJUST_B_MODE_ASSIGN_L23 0x0010#define ADJUST_B_MODE_USER_CONNECT 0x0020#define ADJUST_B_MODE_CONNECT 0x0040#define ADJUST_B_MODE_RESTORE 0x0080#define ADJUST_B_START 0#define ADJUST_B_SAVE_MIXER_1 1#define ADJUST_B_SAVE_DTMF_1 2#define ADJUST_B_REMOVE_L23_1 3#define ADJUST_B_REMOVE_L23_2 4#define ADJUST_B_SAVE_EC_1 5#define ADJUST_B_SAVE_DTMF_PARAMETER_1 6#define ADJUST_B_SAVE_VOICE_1 7#define ADJUST_B_SWITCH_L1_1 8#define ADJUST_B_SWITCH_L1_2 9#define ADJUST_B_RESTORE_VOICE_1 10#define ADJUST_B_RESTORE_VOICE_2 11#define ADJUST_B_RESTORE_DTMF_PARAMETER_1 12#define ADJUST_B_RESTORE_DTMF_PARAMETER_2 13#define ADJUST_B_RESTORE_EC_1 14#define ADJUST_B_RESTORE_EC_2 15#define ADJUST_B_ASSIGN_L23_1 16#define ADJUST_B_ASSIGN_L23_2 17#define ADJUST_B_CONNECT_1 18#define ADJUST_B_CONNECT_2 19#define ADJUST_B_CONNECT_3 20#define ADJUST_B_CONNECT_4 21#define ADJUST_B_RESTORE_DTMF_1 22#define ADJUST_B_RESTORE_DTMF_2 23#define ADJUST_B_RESTORE_MIXER_1 24#define ADJUST_B_RESTORE_MIXER_2 25#define ADJUST_B_RESTORE_MIXER_3 26#define ADJUST_B_RESTORE_MIXER_4 27#define ADJUST_B_RESTORE_MIXER_5 28#define ADJUST_B_RESTORE_MIXER_6 29#define ADJUST_B_RESTORE_MIXER_7 30#define ADJUST_B_END 31/*------------------------------------------------------------------*//* XON Protocol def's *//*------------------------------------------------------------------*/#define N_CH_XOFF 0x01#define N_XON_SENT 0x02#define N_XON_REQ 0x04#define N_XON_CONNECT_IND 0x08#define N_RX_FLOW_CONTROL_MASK 0x3f#define N_OK_FC_PENDING 0x80#define N_TX_FLOW_CONTROL_MASK 0xc0/*------------------------------------------------------------------*//* NCPI state *//*------------------------------------------------------------------*/#define NCPI_VALID_CONNECT_B3_IND 0x01#define NCPI_VALID_CONNECT_B3_ACT 0x02#define NCPI_VALID_DISC_B3_IND 0x04#define NCPI_CONNECT_B3_ACT_SENT 0x08#define NCPI_NEGOTIATE_B3_SENT 0x10#define NCPI_MDM_CTS_ON_RECEIVED 0x40#define NCPI_MDM_DCD_ON_RECEIVED 0x80/*------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -