⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 capi20.h

📁 linux-2.6.15.6
💻 H
📖 第 1 页 / 共 2 页
字号:
} _RES_B3_RESP;        /* CONNECT-B3-T90-ACTIVE-INDICATION                         */typedef struct {  byte structs[1];      /* NCPI */} _CON_B3_T90_A_INDP;        /* CONNECT-B3-T90-ACTIVE-RESPONSE                           */typedef struct {  word Reject;  byte structs[1];      /* NCPI */} _CON_B3_T90_A_RESP;/*------------------------------------------------------------------*//* message structure                                                *//*------------------------------------------------------------------*/typedef struct _API_MSG CAPI_MSG;typedef struct _MSG_HEADER CAPI_MSG_HEADER;struct _API_MSG {  struct _MSG_HEADER {    word        length;    word        appl_id;    word        command;    word        number;    byte        controller;    byte        plci;    word        ncci;  } header;  union {    _ALT_REQP           alert_req;    _ALT_CONP           alert_con;    _CON_REQP           connect_req;    _CON_CONP           connect_con;    _CON_INDP           connect_ind;    _CON_RESP           connect_res;    _CON_A_INDP         connect_a_ind;    _CON_A_RESP         connect_a_res;    _DIS_REQP           disconnect_req;    _DIS_CONP           disconnect_con;    _DIS_INDP           disconnect_ind;    _DIS_RESP           disconnect_res;    _LIS_REQP           listen_req;    _LIS_CONP           listen_con;    _INF_REQP           info_req;    _INF_CONP           info_con;    _INF_INDP           info_ind;    _INF_RESP           info_res;    _SEL_B_REQP         select_b_req;    _SEL_B_CONP         select_b_con;    _FAC_REQP           facility_req;    _FAC_CONP           facility_con;    _FAC_INDP           facility_ind;    _FAC_RESP           facility_res;    _CON_B3_REQP        connect_b3_req;    _CON_B3_CONP        connect_b3_con;    _CON_B3_INDP        connect_b3_ind;    _CON_B3_RESP        connect_b3_res;    _CON_B3_A_INDP      connect_b3_a_ind;    _CON_B3_A_RESP      connect_b3_a_res;    _DIS_B3_REQP        disconnect_b3_req;    _DIS_B3_CONP        disconnect_b3_con;    _DIS_B3_INDP        disconnect_b3_ind;    _DIS_B3_RESP        disconnect_b3_res;    _DAT_B3_REQP        data_b3_req;    _DAT_B3_REQ64P      data_b3_req64;    _DAT_B3_CONP        data_b3_con;    _DAT_B3_INDP        data_b3_ind;    _DAT_B3_IND64P      data_b3_ind64;    _DAT_B3_RESP        data_b3_res;    _RES_B3_REQP        reset_b3_req;    _RES_B3_CONP        reset_b3_con;    _RES_B3_INDP        reset_b3_ind;    _RES_B3_RESP        reset_b3_res;    _CON_B3_T90_A_INDP  connect_b3_t90_a_ind;    _CON_B3_T90_A_RESP  connect_b3_t90_a_res;    byte                b[200];  } info;};/*------------------------------------------------------------------*//* non-fatal errors                                                 *//*------------------------------------------------------------------*/#define _NCPI_IGNORED           0x0001#define _FLAGS_IGNORED          0x0002#define _ALERT_IGNORED          0x0003/*------------------------------------------------------------------*//* API function error codes                                         *//*------------------------------------------------------------------*/#define GOOD                            0x0000#define _TOO_MANY_APPLICATIONS          0x1001#define _BLOCK_TOO_SMALL                0x1002#define _BUFFER_TOO_BIG                 0x1003#define _MSG_BUFFER_TOO_SMALL           0x1004#define _TOO_MANY_CONNECTIONS           0x1005#define _REG_CAPI_BUSY                  0x1007#define _REG_RESOURCE_ERROR             0x1008#define _REG_CAPI_NOT_INSTALLED         0x1009#define _WRONG_APPL_ID                  0x1101#define _BAD_MSG                        0x1102#define _QUEUE_FULL                     0x1103#define _GET_NO_MSG                     0x1104#define _MSG_LOST                       0x1105#define _WRONG_NOTIFY                   0x1106#define _CAPI_BUSY                      0x1107#define _RESOURCE_ERROR                 0x1108#define _CAPI_NOT_INSTALLED             0x1109#define _NO_EXTERNAL_EQUIPMENT          0x110a#define _ONLY_EXTERNAL_EQUIPMENT        0x110b/*------------------------------------------------------------------*//* addressing/coding error codes                                    *//*------------------------------------------------------------------*/#define _WRONG_STATE                    0x2001#define _WRONG_IDENTIFIER               0x2002#define _OUT_OF_PLCI                    0x2003#define _OUT_OF_NCCI                    0x2004#define _OUT_OF_LISTEN                  0x2005#define _OUT_OF_FAX                     0x2006#define _WRONG_MESSAGE_FORMAT           0x2007#define _OUT_OF_INTERCONNECT_RESOURCES  0x2008/*------------------------------------------------------------------*//* configuration error codes                                        *//*------------------------------------------------------------------*/#define _B1_NOT_SUPPORTED                    0x3001#define _B2_NOT_SUPPORTED                    0x3002#define _B3_NOT_SUPPORTED                    0x3003#define _B1_PARM_NOT_SUPPORTED               0x3004#define _B2_PARM_NOT_SUPPORTED               0x3005#define _B3_PARM_NOT_SUPPORTED               0x3006#define _B_STACK_NOT_SUPPORTED               0x3007#define _NCPI_NOT_SUPPORTED                  0x3008#define _CIP_NOT_SUPPORTED                   0x3009#define _FLAGS_NOT_SUPPORTED                 0x300a#define _FACILITY_NOT_SUPPORTED              0x300b#define _DATA_LEN_NOT_SUPPORTED              0x300c#define _RESET_NOT_SUPPORTED                 0x300d#define _SUPPLEMENTARY_SERVICE_NOT_SUPPORTED 0x300e#define _REQUEST_NOT_ALLOWED_IN_THIS_STATE   0x3010#define _FACILITY_SPECIFIC_FUNCTION_NOT_SUPP 0x3011/*------------------------------------------------------------------*//* reason codes                                                     *//*------------------------------------------------------------------*/#define _L1_ERROR                       0x3301#define _L2_ERROR                       0x3302#define _L3_ERROR                       0x3303#define _OTHER_APPL_CONNECTED           0x3304#define _CAPI_GUARD_ERROR               0x3305#define _L3_CAUSE                       0x3400/*------------------------------------------------------------------*//* b3 reason codes                                                  *//*------------------------------------------------------------------*/#define _B_CHANNEL_LOST                 0x3301#define _B2_ERROR                       0x3302#define _B3_ERROR                       0x3303/*------------------------------------------------------------------*//* fax error codes                                                  *//*------------------------------------------------------------------*/#define _FAX_NO_CONNECTION              0x3311#define _FAX_TRAINING_ERROR             0x3312#define _FAX_REMOTE_REJECT              0x3313#define _FAX_REMOTE_ABORT               0x3314#define _FAX_PROTOCOL_ERROR             0x3315#define _FAX_TX_UNDERRUN                0x3316#define _FAX_RX_OVERFLOW                0x3317#define _FAX_LOCAL_ABORT                0x3318#define _FAX_PARAMETER_ERROR            0x3319/*------------------------------------------------------------------*//* line interconnect error codes                                    *//*------------------------------------------------------------------*/#define _LI_USER_INITIATED               0x0000#define _LI_LINE_NO_LONGER_AVAILABLE     0x3805#define _LI_INTERCONNECT_NOT_ESTABLISHED 0x3806#define _LI_LINES_NOT_COMPATIBLE         0x3807#define _LI2_USER_INITIATED              0x0000#define _LI2_PLCI_HAS_NO_BCHANNEL        0x3800#define _LI2_LINES_NOT_COMPATIBLE        0x3801#define _LI2_NOT_IN_SAME_INTERCONNECTION 0x3802/*------------------------------------------------------------------*//* global options                                                   *//*------------------------------------------------------------------*/#define GL_INTERNAL_CONTROLLER_SUPPORTED     0x00000001L#define GL_EXTERNAL_EQUIPMENT_SUPPORTED      0x00000002L#define GL_HANDSET_SUPPORTED                 0x00000004L#define GL_DTMF_SUPPORTED                    0x00000008L#define GL_SUPPLEMENTARY_SERVICES_SUPPORTED  0x00000010L#define GL_CHANNEL_ALLOCATION_SUPPORTED      0x00000020L#define GL_BCHANNEL_OPERATION_SUPPORTED      0x00000040L#define GL_LINE_INTERCONNECT_SUPPORTED       0x00000080L#define GL_ECHO_CANCELLER_SUPPORTED          0x00000100L/*------------------------------------------------------------------*//* protocol selection                                               *//*------------------------------------------------------------------*/#define B1_HDLC                 0#define B1_TRANSPARENT          1#define B1_V110_ASYNC           2#define B1_V110_SYNC            3#define B1_T30                  4#define B1_HDLC_INVERTED        5#define B1_TRANSPARENT_R        6#define B1_MODEM_ALL_NEGOTIATE  7#define B1_MODEM_ASYNC          8#define B1_MODEM_SYNC_HDLC      9#define B2_X75                  0#define B2_TRANSPARENT          1#define B2_SDLC                 2#define B2_LAPD                 3#define B2_T30                  4#define B2_PPP                  5#define B2_TRANSPARENT_NO_CRC   6#define B2_MODEM_EC_COMPRESSION 7#define B2_X75_V42BIS           8#define B2_V120_ASYNC           9#define B2_V120_ASYNC_V42BIS    10#define B2_V120_BIT_TRANSPARENT 11#define B2_LAPD_FREE_SAPI_SEL   12#define B3_TRANSPARENT          0#define B3_T90NL                1#define B3_ISO8208              2#define B3_X25_DCE              3#define B3_T30                  4#define B3_T30_WITH_EXTENSIONS  5#define B3_RESERVED             6#define B3_MODEM                7/*------------------------------------------------------------------*//*  facility definitions                                            *//*------------------------------------------------------------------*/#define SELECTOR_HANDSET            0#define SELECTOR_DTMF               1#define SELECTOR_V42BIS             2#define SELECTOR_SU_SERV            3#define SELECTOR_POWER_MANAGEMENT   4#define SELECTOR_LINE_INTERCONNECT  5#define SELECTOR_ECHO_CANCELLER     6/*------------------------------------------------------------------*//*  supplementary services definitions                              *//*------------------------------------------------------------------*/#define S_GET_SUPPORTED_SERVICES  0x0000#define S_LISTEN                  0x0001#define S_HOLD                    0x0002#define S_RETRIEVE                0x0003#define S_SUSPEND                 0x0004#define S_RESUME                  0x0005#define S_ECT                     0x0006#define S_3PTY_BEGIN              0x0007#define S_3PTY_END                0x0008#define S_CALL_DEFLECTION         0x000d#define S_CALL_FORWARDING_START   0x0009#define S_CALL_FORWARDING_STOP    0x000a#define S_INTERROGATE_DIVERSION   0x000b /* or interrogate parameters */#define S_INTERROGATE_NUMBERS     0x000c#define S_CCBS_REQUEST            0x000f#define S_CCBS_DEACTIVATE         0x0010#define S_CCBS_INTERROGATE        0x0011#define S_CCBS_CALL               0x0012#define S_MWI_ACTIVATE            0x0013#define S_MWI_DEACTIVATE          0x0014#define S_CONF_BEGIN           0x0017#define S_CONF_ADD                0x0018#define S_CONF_SPLIT           0x0019#define S_CONF_DROP               0x001a#define S_CONF_ISOLATE           0x001b#define S_CONF_REATTACH           0x001c#define S_CCBS_ERASECALLLINKAGEID 0x800d#define S_CCBS_STOP_ALERTING      0x8012#define S_CCBS_INFO_RETAIN        0x8013#define S_MWI_INDICATE            0x8014#define S_CONF_PARTYDISC          0x8016#define S_CONF_NOTIFICATION       0x8017/* Service Masks */#define MASK_HOLD_RETRIEVE        0x00000001#define MASK_TERMINAL_PORTABILITY 0x00000002#define MASK_ECT                  0x00000004#define MASK_3PTY                 0x00000008#define MASK_CALL_FORWARDING      0x00000010#define MASK_CALL_DEFLECTION      0x00000020#define MASK_MWI                  0x00000100#define MASK_CCNR                 0x00000200#define MASK_CONF                 0x00000400/*------------------------------------------------------------------*//*  dtmf definitions                                                *//*------------------------------------------------------------------*/#define DTMF_LISTEN_START     1#define DTMF_LISTEN_STOP      2#define DTMF_DIGITS_SEND      3#define DTMF_SUCCESS          0#define DTMF_INCORRECT_DIGIT  1#define DTMF_UNKNOWN_REQUEST  2/*------------------------------------------------------------------*//*  line interconnect definitions                                   *//*------------------------------------------------------------------*/#define LI_GET_SUPPORTED_SERVICES       0#define LI_REQ_CONNECT                  1#define LI_REQ_DISCONNECT               2#define LI_IND_CONNECT_ACTIVE           1#define LI_IND_DISCONNECT               2#define LI_FLAG_CONFERENCE_A_B          ((dword) 0x00000001L)#define LI_FLAG_CONFERENCE_B_A          ((dword) 0x00000002L)#define LI_FLAG_MONITOR_A               ((dword) 0x00000004L)#define LI_FLAG_MONITOR_B               ((dword) 0x00000008L)#define LI_FLAG_ANNOUNCEMENT_A          ((dword) 0x00000010L)#define LI_FLAG_ANNOUNCEMENT_B          ((dword) 0x00000020L)#define LI_FLAG_MIX_A                   ((dword) 0x00000040L)#define LI_FLAG_MIX_B                   ((dword) 0x00000080L)#define LI_CONFERENCING_SUPPORTED       ((dword) 0x00000001L)#define LI_MONITORING_SUPPORTED         ((dword) 0x00000002L)#define LI_ANNOUNCEMENTS_SUPPORTED      ((dword) 0x00000004L)#define LI_MIXING_SUPPORTED             ((dword) 0x00000008L)#define LI_CROSS_CONTROLLER_SUPPORTED   ((dword) 0x00000010L)#define LI2_GET_SUPPORTED_SERVICES      0#define LI2_REQ_CONNECT                 1#define LI2_REQ_DISCONNECT              2#define LI2_IND_CONNECT_ACTIVE          1#define LI2_IND_DISCONNECT              2#define LI2_FLAG_INTERCONNECT_A_B       ((dword) 0x00000001L)#define LI2_FLAG_INTERCONNECT_B_A       ((dword) 0x00000002L)#define LI2_FLAG_MONITOR_B              ((dword) 0x00000004L)#define LI2_FLAG_MIX_B                  ((dword) 0x00000008L)#define LI2_FLAG_MONITOR_X              ((dword) 0x00000010L)#define LI2_FLAG_MIX_X                  ((dword) 0x00000020L)#define LI2_FLAG_LOOP_B                 ((dword) 0x00000040L)#define LI2_FLAG_LOOP_PC                ((dword) 0x00000080L)#define LI2_FLAG_LOOP_X                 ((dword) 0x00000100L)#define LI2_CROSS_CONTROLLER_SUPPORTED  ((dword) 0x00000001L)#define LI2_ASYMMETRIC_SUPPORTED        ((dword) 0x00000002L)#define LI2_MONITORING_SUPPORTED        ((dword) 0x00000004L)#define LI2_MIXING_SUPPORTED            ((dword) 0x00000008L)#define LI2_REMOTE_MONITORING_SUPPORTED ((dword) 0x00000010L)#define LI2_REMOTE_MIXING_SUPPORTED     ((dword) 0x00000020L)#define LI2_B_LOOPING_SUPPORTED         ((dword) 0x00000040L)#define LI2_PC_LOOPING_SUPPORTED        ((dword) 0x00000080L)#define LI2_X_LOOPING_SUPPORTED         ((dword) 0x00000100L)/*------------------------------------------------------------------*//* echo canceller definitions                                       *//*------------------------------------------------------------------*/#define EC_GET_SUPPORTED_SERVICES            0#define EC_ENABLE_OPERATION                  1#define EC_DISABLE_OPERATION                 2#define EC_ENABLE_NON_LINEAR_PROCESSING      0x0001#define EC_DO_NOT_REQUIRE_REVERSALS          0x0002#define EC_DETECT_DISABLE_TONE               0x0004#define EC_ENABLE_ADAPTIVE_PREDELAY          0x0008#define EC_NON_LINEAR_PROCESSING_SUPPORTED   0x0001#define EC_BYPASS_ON_ANY_2100HZ_SUPPORTED    0x0002#define EC_BYPASS_ON_REV_2100HZ_SUPPORTED    0x0004#define EC_ADAPTIVE_PREDELAY_SUPPORTED       0x0008#define EC_BYPASS_INDICATION                 1#define EC_BYPASS_DUE_TO_CONTINUOUS_2100HZ   1#define EC_BYPASS_DUE_TO_REVERSED_2100HZ     2#define EC_BYPASS_RELEASED                   3/*------------------------------------------------------------------*//* function prototypes                                              *//*------------------------------------------------------------------*//*------------------------------------------------------------------*/#endif /* _INC_CAPI20 */  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -