www.pudn.com > lucent_softphone.rar > ctcdef.h
/******************************************************************************/
/** **/
/** 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
#include
#include
#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
);
#else
extern unsigned int C_CALLING ctcPickupCall (
ctcChanId channel,
unsigned int callRefId,
unsigned char *calledNumber
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcDeflectCall (
ctcChanId channel,
unsigned int callRefId,
ctcDeviceString calledNumber,
ctcApplString applicationData
);
#else
extern unsigned int C_CALLING ctcDeflectCall (
ctcChanId channel,
unsigned int callRefId,
unsigned char *calledNumber,
unsigned char *applicationData
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcRemoveMonitor (
ctcChanId channel,
ctcDeviceString deviceDN
);
#else
extern unsigned int C_CALLING ctcRemoveMonitor (
ctcChanId channel,
unsigned char *deviceDN
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcSendDTMF (
ctcChanId channel,
unsigned int callRefId,
ctcDeviceString DTMFdigits
);
#else
extern unsigned int C_CALLING ctcSendDTMF (
ctcChanId channel,
unsigned int callRefId,
unsigned char *DTMFdigits
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcSingleStepTransfer (
ctcChanId channel,
ctcDeviceString calledNumber,
unsigned int callRefId,
ctcApplString applicationData,
unsigned int *newCallRefId
);
#else
extern unsigned int C_CALLING ctcSingleStepTransfer (
ctcChanId channel,
unsigned char *calledNumber,
unsigned int callRefId,
unsigned char *applicationData,
unsigned int *newCallRefId
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcMlpCollectDigits (
ctcChanId channel,
unsigned int numDigits,
unsigned int clearMode,
unsigned int idTimeout,
ctcMlpTermKeys terminators
);
#else
extern unsigned int C_CALLING ctcMlpCollectDigits (
ctcChanId channel,
unsigned int numDigits,
unsigned int clearMode,
unsigned int idTimeout,
unsigned char *terminators
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcMlpLogonMailBox (
ctcChanId channel,
ctcMlpUserId userId,
ctcMlpPassword password
);
#else
extern unsigned int C_CALLING ctcMlpLogonMailBox (
ctcChanId channel,
unsigned char *userId,
unsigned char *password
);
#endif
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcMlpOpenVoiceFile (
ctcChanId channel,
ctcMlpFileName fileName,
unsigned int *fileId
);
#else
extern unsigned int C_CALLING ctcMlpOpenVoiceFile (
ctcChanId channel,
unsigned char *fileName,
unsigned int *fileId
);
#endif
extern unsigned int C_CALLING ctcMlpLogoffMailBox (
ctcChanId channel
);
extern unsigned int C_CALLING ctcMlpCloseVoiceFile (
ctcChanId channel,
unsigned int fileId
);
extern unsigned int C_CALLING ctcMlpPlayMessage (
ctcChanId channel,
unsigned int fileId,
unsigned int clearMode,
unsigned int interruptMode,
unsigned int numMessages,
unsigned short *msgSegments
);
extern unsigned int C_CALLING ctcMlpMergeCalls (
ctcChanId channel,
unsigned int origCallRefId,
unsigned int termCallRefId
);
extern unsigned int C_CALLING ctcMlpWarningTone (
ctcChanId channel,
unsigned int toneType,
unsigned int toneParty,
unsigned int toneLength
);
extern unsigned int C_CALLING ctcAnswerCall (
ctcChanId channel,
unsigned int callRefId
);
extern unsigned int C_CALLING ctcCancelCall (
ctcChanId channel,
unsigned int callRefId
);
extern unsigned int C_CALLING ctcConferenceJoin (
ctcChanId channel,
unsigned int heldCallRefId,
unsigned int activeCallRefId,
unsigned int *newCallRefId
);
extern unsigned int C_CALLING ctcGetDoNotDisturb (
ctcChanId channel,
unsigned int *DNDMode
);
extern unsigned int C_CALLING ctcGetDoNotDisturb (
ctcChanId channel,
unsigned int *DNDMode
);
extern unsigned int C_CALLING ctcGetMessageWaiting (
ctcChanId channel,
unsigned int *messageMode
);
extern unsigned int C_CALLING ctcGetMonitor (
ctcChanId channel,
unsigned int *monitorMode
);
extern unsigned int C_CALLING ctcHangupCall (
ctcChanId channel,
unsigned int callRefId
);
extern unsigned int C_CALLING ctcReconnectHeld (
ctcChanId channel,
unsigned int callRefId,
unsigned int secRefId
);
extern unsigned int C_CALLING ctcRespondToInactiveCall (
ctcChanId channel,
unsigned int callRefId,
unsigned int action
);
extern unsigned int C_CALLING ctcRetrieveHeld (
ctcChanId channel,
unsigned int callRefId
);
extern unsigned int C_CALLING ctcSetDoNotDisturb (
ctcChanId channel,
unsigned int DNDMode
);
extern unsigned int C_CALLING ctcSetMessageWaiting (
ctcChanId channel,
unsigned int messageMode
);
extern unsigned int C_CALLING ctcSetMonitor (
ctcChanId channel,
unsigned int monitorMode
);
extern unsigned int C_CALLING ctcSwapWithHeld (
ctcChanId channel,
unsigned int heldCallRefId,
unsigned int activeCallRefId
);
extern unsigned int C_CALLING ctcTransferCall (
ctcChanId channel,
unsigned int heldCallRefId,
unsigned int activeCallRefId,
unsigned int *newCallRefId
);
extern unsigned int C_CALLING ctcHoldCall (
ctcChanId channel,
unsigned int callRefId
);
#if (!defined(_CTC_NONDEF_PROTO))
extern unsigned int C_CALLING ctcAddMonitor (
ctcChanId channel,
ctcAssignData *assignData
);
#else
extern unsigned int C_CALLING ctcAddMonitor (
ctcChanId channel,
struct ctcAssignData *assignData
);
#endif
extern unsigned int C_CALLING ctcSnapshot (
ctcChanId channel,
ctcCallData callData[ctcCallDataLen],
unsigned int *numberOfCalls
);
extern unsigned int C_CALLING ctcSetRoutingEnable (
ctcChanId channel,
unsigned int routingEnable
);
extern unsigned int C_CALLING ctcGetRoutingEnable (
ctcChanId channel,
unsigned int *routingEnable
);
extern unsigned int C_CALLING ctcCstaEscape (
ctcChanId channel,
ctcPrivateDataArray *privateData
);
extern unsigned int C_CALLING ctcCstaSetPrivateData(
ctcChanId channel,
ctcPrivateDataArray *privateData
);
extern unsigned int C_CALLING ctcCstaGetPrivateData(
ctcChanId channel,
ctcPrivateDataArray *privateData
);
extern unsigned int C_CALLING ctcCstaGetPrivateEventData(
ctcChanId channel,
ctcPrivateDataArray *privateData
);
extern unsigned int C_CALLING ctcCstaGetPrivateRouteData(
ctcChanId channel,
ctcPrivateDataArray *privateData
);
extern unsigned int C_CALLING ctcAsaiGetAcdStatus (
ctcChanId channel,
unsigned int *numberOfCalls,
unsigned int *numberOfLoggedInAgents,
unsigned int *numberOfAvailableAgents
);
#endif
#ifdef __cplusplus
}
#endif