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

📄 ctcdef.h

📁 利用AVAYA AES的TASPI开发的一套软电话系统,仅供参考,ACTIVEX形式的.
💻 H
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************/
/**                                                                          **/
/**  Copyright (c) 1998                                                      **/
/**  by Dialogic Corporation, Parsippany, NJ.                                **/
/**                                                                          **/
/**  This software is furnished under a license and may be used and  copied  **/
/**  only  in  accordance  with  the  terms  of  such  license and with the  **/
/**  inclusion of the above copyright notice.  This software or  any  other  **/
/**  copies  thereof may not be provided or otherwise made available to any  **/
/**  other person.  No title to and ownership of  the  software  is  hereby  **/
/**  transferred.                                                            **/
/**                                                                          **/
/**  The information in this software is subject to change  without  notice  **/
/**  and should not be construed as a commitment by Dialogic Corporation.    **/
/**                                                                          **/
/**  Dialogic assumes no responsibility for the use or  reliability  of its  **/
/**  software on equipment which is not supplied by Dialogic.                **/
/**                                                                          **/
/******************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif

#ifndef _CTC_LOADED
#define _CTC_LOADED

#if !defined(WIN32)
#define IDL_CHAR_IS_CHAR
#endif
/*
 *  CTC V3 Client Header File
 */
#include <ctc_err.h>
#include <ctc_rpc.h>
#include <ctc_code.h>

#endif /* CTC_LOADED */

#ifndef _PROTO_LOADED
#define _PROTO_LOADED

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*                                                                          */
/*  Channel Identifier type definition                                      */
/*                                                                          */
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

typedef void *ctcChanId;

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/*                                                                          */
/*  Function Prototypes                                                     */
/*                                                                          */
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

 
#if defined(WIN32)
#define C_CALLING _stdcall  /* _stdcall for NT */
#else
#define C_CALLING           /* Not defined */
#endif                      /* WIN32 */
 

#if (!defined(_CTC_NONDEF_PROTO))

extern  unsigned int C_CALLING ctcAssign (
                    ctcChanId       *channel,
                    ctcAssignData   *assignData,
                    ctcNameString   serverName,
                    ctcLogIdString  logicalIdentifier,
                    ctcNetString    networkType
 );

#else

extern  unsigned int C_CALLING ctcAssign (
                    ctcChanId              *channel,
                    struct ctcAssignData   *assignData,
                    unsigned char          *serverName,
                    unsigned char          *logicalIdentifier,
                    unsigned char          *networkType
 );

#endif

extern  unsigned int C_CALLING ctcDeassign (
                    ctcChanId       channel
 );



extern  char * C_CALLING ctcErrMsg (
                      unsigned int    errorCode
 );

#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcGetEvent(
                ctcChanId        channel,
                ctcEventData    *eventData,
                unsigned int    snapshot
);

#else


extern unsigned int C_CALLING ctcGetEvent(
                ctcChanId              channel,
                struct ctcEventData    *eventData,
                unsigned int           snapshot
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcGetRouteQuery(
                ctcChanId        channel,
                ctcRouteData    *routeData,
                unsigned int    snapshot
);

#else

extern unsigned int C_CALLING ctcGetRouteQuery(
                ctcChanId              channel,
                struct ctcRouteData    *routeData,
                unsigned int           snapshot
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcGetChannelInformation(
                ctcChanId        channel,
                ctcChanData     *channelData
);

#else

extern unsigned int C_CALLING ctcGetChannelInformation(
                ctcChanId           channel,
                struct ctcChanData  *channelData
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int  C_CALLING ctcSetAgentStatus (
                ctcChanId         channel,
                unsigned int     agentMode,
                ctcDeviceString  agentData,
                ctcDeviceString  logicalAgent,
                ctcDeviceString  agentGroup
); 

#else

extern unsigned int  C_CALLING ctcSetAgentStatus (
                ctcChanId     channel,
                unsigned int  agentMode,
                unsigned char *agentData,
                unsigned char *logicalAgent,
                unsigned char *agentGroup
); 

#endif

#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int  C_CALLING ctcSetCallForward (
                ctcChanId         channel,
		unsigned int     forwardMode,
		ctcDeviceString  forwardDN
);

#else

extern unsigned int  C_CALLING ctcSetCallForward (
                ctcChanId     channel,
		unsigned int  forwardMode,
		unsigned char *forwardDN
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcGetCallForward (
                ctcChanId         channel,
		unsigned int     *forwardMode,
		ctcDeviceString  forwardDN
);

#else

extern unsigned int C_CALLING ctcGetCallForward (
                ctcChanId     channel,
		unsigned int  *forwardMode,
		unsigned char *forwardDN
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcGetAgentStatus (
                ctcChanId        channel,
		unsigned int     *agentMode,
		ctcDeviceString  agentData
);

#else

extern unsigned int C_CALLING ctcGetAgentStatus (
                ctcChanId     channel,
		unsigned int  *agentMode,
		unsigned char *agentData
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcRespondToRouteQuery (
                ctcChanId        channel,
		unsigned int     callRefId,
		ctcDeviceString  calledNumber,
		ctcApplString    applicationData
);

#else

extern unsigned int C_CALLING ctcRespondToRouteQuery (
                ctcChanId      channel,
		unsigned int   callRefId,
		unsigned char  *calledNumber,
		unsigned char  *applicationData
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcAssociateData (
                ctcChanId        channel,
		unsigned int     callRefId,
		ctcApplString    applicationData
);

#else

extern unsigned int C_CALLING ctcAssociateData (
                ctcChanId     channel,
		unsigned int  callRefId,
		unsigned char *applicationData
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcMakeCall (
                ctcChanId        channel,
		ctcDeviceString  calledNumber,
		ctcApplString    applicationData,
		unsigned int     *callRefId
);

#else

extern unsigned int C_CALLING ctcMakeCall (
                ctcChanId     channel,
		unsigned char *calledNumber,
		unsigned char *applicationData,
		unsigned int  *callRefId
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcMakePredictiveCall (
               ctcChanId     channel,
               ctcNameString calledNumber,
	       unsigned int  allocation,
	       ctcApplString applicationData,
	       unsigned int  *callRefId,
	       unsigned int  numberOfRings
);

#else

extern unsigned int C_CALLING ctcMakePredictiveCall (
                ctcChanId     channel,
		unsigned char *calledNumber,
	        unsigned int  allocation,
	        unsigned char *applicationData,
	        unsigned int  *callRefId,
                unsigned int  numberOfRings
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcConsultationCall (
                ctcChanId        channel,
	        ctcDeviceString  calledNumber,
	        unsigned int     consultType,
	        unsigned int     callRefId,
	        ctcApplString    applicationData,
	        unsigned int     *newCallRefId
);

#else

extern unsigned int C_CALLING ctcConsultationCall (
                ctcChanId     channel,
	        unsigned char *calledNumber,
	        unsigned int  consultType,
	        unsigned int  callRefId,
	        unsigned char *applicationData,
	        unsigned int  *newCallRefId
);

#endif


#if (!defined(_CTC_NONDEF_PROTO))

extern unsigned int C_CALLING ctcPickupCall (
                ctcChanId       channel,
                unsigned int    callRefId,
	        ctcDeviceString calledNumber

⌨️ 快捷键说明

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