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

📄 alcpriv2.h

📁 csta协议的开发
💻 H
📖 第 1 页 / 共 2 页
字号:
/***********************************************************/
/* Copyright (C) 1997 Alcatel.  All rights reserved.*/
/***********************************************************/

#ifndef ALC_PRIV_V2_H
#define ALC_PRIV_V2_H

#define ACD_DATA	0xCACD
#define ACD_IVR		0xCACE
#define PC_DATA		0xCACF
#define VIOLA_DATA	0xCA5A
#define PRIV_LIB_BUSY 0xCA1C

/*CALLINGLINE+*/
/*Private data selectors for DECTPC client*/
#define INFO_SFKPC_SEL_PRIORITY		0
#define INFO_SFKPC_SEL_GFU			1
#define INFO_SFKPC_SEL_CATEG_CNX	2
#define INFO_SFKPC_SEL_MULTIPLE		255
/*CALLINGLINE-*/

//#define SIZE_OF_ALCATEL_PRIVATE_DATA		600
#define SIZE_OF_ALCATEL_PRIVATE_DATA		3000
#define MAX_NUMBER_OF_PRIVATE_EXTENSIONS	20	/*RA CDHba15105*/
#define MAX_LENGTH_GENERALIZED_TIME			20
#define MAX_LENGTH_PRIVATE_IDENTIFIER		30
#define MAX_LENGTH_PRIVATE_DATA				90 /*XTSce59869*/
#define MAX_LENGTH_PRIVATE_EVENT			90 /*XTSce59869*/
#define MAX_LENGTH_SERVICE_REGISTER			30
#define MAX_LENGTH_AGENT_NAME				30
#define MAX_LENGTH_CORRELATOR_DATA			40
#define MAX_LENGTH_OCTET_STRING				60
#define MAX_LENGTH_HOST_IDENTIFICATION		32
#define MAX_LENGTH_OTHER_OPERATION			96
#define MAX_NUMBER_OF_ELEMENT				20
#define MAX_NUMBER_OF_SECRETDEVICEID		5
#define MAX_NUMBER_OF_GLOBALCALLID			3	/*YB 270801*/
/*RoutingService+*/
#define MAX_LENGTH_FLUSH_CHAR				3
#define MAX_LENGTH_DIGITS_TO_DISPLAY		20
#define MAX_NUMBER_OF_DIGITS				1
#define MAX_NUMBER_OF_PROMPTS				10
#define MAX_LENGTH_DIGITS_KEY				3
#define MAX_LENGTH_DIGITS_DETECTED			30
/*RoutingService-*/
#define	MAX_LENGTH_CALLINGLINE				31	/*CALLINGLINE*/

typedef char   GeneralizedTime_t[MAX_LENGTH_GENERALIZED_TIME];

//Alcatel private operation ECMA V2
// encapsulated in Escape Service
#define   ALCATEL_DATE_AND_TIME_SETTING    1
#define   ALCATEL_DATE_AND_TIME_SETTING_CONF  2001
#define   ALCATEL_IVR_INFORMATION 2
#define   ALCATEL_IVR_INFORMATION_CONF 2002
#define	  ALCATEL_INTERRUPT_TRANSACTION 3
#define   ALCATEL_INTERRUPT_TRANSACTION_CONF 2003


#define   ALCATEL_OTHER_OPERATION 499
#define   ALCATEL_OTHER_OPERATION_CONF 2499

typedef unsigned char PrivBool;

typedef enum AlcatelCstaPrivDataId_t{
	associateData_Id	= 0,
	dateAndTimeSetting_Id = 1,
	hostInformation_Id = 2,
	interruptTransaction_Id = 3,
	setDeviceInService_Id = 4,
	supervisorAssistRequest_Id = 6,
	supervisorAssistCancel_Id = 7,
	serviceRegisterRequest_Id = 8,
	serviceRegisterCancel_Id = 9,
	aggentLoggingInformation_Id = 10,
	startListeningMessage_Id = 11,
	stopListeningMessage_Id = 12,
	bipToneGeneration_Id = 13,
	permanentListening_Id = 15,
	treatmentRequest_Id = 16,
	setMessageWaitingIndicator_Id = 17,	/*YB 160102*/
/*RoutingService+*/
	startDataCollection_Id = 18,
	stopDataCollection_Id = 19,
	dataCollected_Id = 20,
	generateTelTones_Id = 21,
	cancelTelTones_Id = 22,
/*RoutingService-*/
	otherOperation_Id = 499,
	correlatorDataV2_Id = 500,
	privateErrors_Id = 501,
	acdWaitingTime_Id = 502,
	cstaServiceOption_Id = 503,
	networkTimeSlot_Id = 504,
	notReadyContext_Id = 505,
	queryAgentInformation_Id = 506,
	pilotTransfertInformation_Id = 507,
	acdDistributionInformation_Id = 508,
	ivrInteractiveQueuing_Id = 509,
	ivrNextLevel_Id = 510,
	notReadyActivation_Id = 511,
	partyName_Id = 512,
	requestingDevice_Id = 513,
	acdNetworkRerouted_Id = 514,
	hostIdentification_Id = 515,
	supervisedTransfer_Id = 516,
	acrAttributeList_Id = 518,
	cCTreatmentType_Id = 519,
    secretIdentiteList_Id = 520,
    globalCallID_Id = 521,
    oldglobalCallID_Id = 522,
    nationalIndication_Id = 523,
/*RoutingService+*/
	rerouteAuthorisation_Id = 524,
	digitsReportingCriteriaAdd_Id = 525,
	announcementOrMusic_Id = 526,
/*RoutingService-*/
	globalCallIDList_id = 527,		/*YB 270801*/
	callingLine_id = 532,			/*CALLINGLINE*/
	otherPrivateData_Id = 999
} AlcatelCstaPrivDataId_t;

typedef enum AlcatelCstaPrivEventId_t {
	headOfQueueEvent_Id = 1000,
	supervisorAssistRequestEvent_Id = 1001,
	trunkGroupSupervisionEvent_Id = 1002,
	telephonyTonesGeneratedEvent_Id = 1004,	/*RoutingService*/
	busyEvent_Id = 1005,				/*YB 270801*/
	remoteRecordFailedEvent_Id = 1006,	/*YB 270801*/
	otherPrivateEvent_Id = 1499
}AlcatelCstaPrivEventId_t;

// sequence of private data
typedef struct AlcatelCstaPrivData_t {
	unsigned long				numberOfPrivateData;
	unsigned long				AlcCstaPrivPtOffsetArray[MAX_NUMBER_OF_PRIVATE_EXTENSIONS];
	char*                        privateHeap[1];
} AlcatelCstaPrivData_t;

typedef  struct CstaSecurityData_t {
	long				messageSequenceNumber;
	GeneralizedTime_t	timeStamp;
} CstaSecurityData_t;

typedef struct CstaCommonArguments_t {
	CstaSecurityData_t		security;
	AlcatelCstaPrivData_t	privateData;
}CstaCommonArguments_t;


typedef enum CCTreatmentTypeID_t {
	cceapplication = 0,
    ccoapplication = 1,
    ccwapplication = 2,
    other = 255
}CCTreatmentTypeID_t;

typedef	enum IvrStatus_t {
	connected = 0,
	disconnected = 1
} IvrStatus_t;

typedef enum PilotStatus_t {
	opened = 0,
	blocked = 1,
	blocked_on_rule = 2,
	blocked_on_blocked_rule = 3,
	general_forwarding = 4,
	general_forwarding_on_rule = 5,
	blocked_on_general_forwarding_rule = 6,

	otherPilotStatus = 255
}PilotStatus_t;

typedef enum AgentAction_t {
	aaloggedOff =	0,
	aaloggedOn  = 1
}AgentAction_t;

typedef enum  PrivateOperations_t {
	invalidCstaApplicationCorrelator = 20,
	invalidAccountCode = 21,
	invalidAuthorizationCode = 22
}PrivateOperations_t;

typedef enum PrivateErrorsType_t {
	OperationalErrorsType = 1,
	UnspecifiedErrorsType = 7,
	otherErrorsType = 8
} PrivateErrorsType_t;

typedef  struct PrivateErrors_t{
		PrivateErrorsType_t privateErrorsType;
		union{
			PrivateOperations_t operationalErrors;
			Nulltype            unspecifiedErrors;
			char				otherErrors[40];
		}u;
}PrivateErrors_t;

typedef struct AcdWaitingTime_t	{
	unsigned long	waitingTime;
	PrivBool			saturation;
}AcdWaitingTime_t;
 
typedef unsigned short 	CstaServiceOption_t;
typedef unsigned short 	RerouteAuthorisation_t;	/*RoutingService*/

/*YB 021202+*/
#define SO_CALL_PROGRESS_TONE_INHIBITION	0x01
#define SO_HOLD_TONE_INHIBITION				0x02
#define SO_PRIORITARY_TRANSFER				0x04
#define SO_AUTO_ORIGINATE					0x08
#define SO_SUPERVISOR_CALL					0x10
#define SO_SUPERVISOR_STEP_IN				0x20
#define SO_SUPERVISOR_TRANSFER				0x40
#define SO_SUPERVISOR_HEAD_SET_MODE			0x80
#define SO_BACKUP_ROUTING					0x0100
/*YB 021202-*/

typedef unsigned long  NetworkTimeSlot_t;

typedef enum NotReadyContext_t {
	  NRC_FORCED_PAUSE = 0,
	  NRC_OTHER = 255
} NotReadyContext_t;

typedef struct QueryAgentInformation_t {
	PrivBool				agentPreAssigned;
	AgentGroup_t			agentGroup;
	NotReadyContext_t		notReadyContext;
	PrivBool				agentPreAssignedInfoProvided;
	PrivBool				notReadyContextInfoProvided;
}QueryAgentInformation_t;

typedef struct PilotTransferInformation_t {
	PrivBool			possibleTransfer;
	PilotStatus_t	pilotStatus;
}PilotTransferInformation_t;

typedef struct AcdDistributionInformation_t{
	unsigned long	waitingTime;
	unsigned long   globalWaitingTime;
	AgentGroup_t	agentGroup;
}AcdDistributionInformation_t ;

typedef struct IvrInteractiveQueing_t{
	SubjectDeviceID_t pilotNumber;
	long     		  guideCurrentLevel;
}IvrInteractiveQueing_t;

typedef unsigned long  IvrNextLevel_t;
typedef unsigned long  NotReadyActivation_t;

typedef struct OtherPrivateData_t{
	char    privateIdentifier[MAX_LENGTH_PRIVATE_IDENTIFIER];
	char    privateData[MAX_LENGTH_PRIVATE_DATA];
	unsigned long lengthPrivateIdentifier;
	unsigned long lengthPrivateData;
}OtherPrivateData_t;

typedef struct AssociateData_t {
	ConnectionID_t	connectionID;
	AccountInfo_t	accountCode;
	AuthCode_t		authCode;
	char			correlator[40];
}AssociateData_t;

typedef struct InterruptTransaction_t {
	ConnectionID_t	connectionID;
	PrivBool		interruptible;
}InterruptTransaction_t;

typedef struct SetDeviceInService_t {
	DeviceID_t	deviceID;
	PrivBool	setInService;
}SetDeviceInService_t;

typedef struct CorrelatorDataV2_t {
	unsigned long	length;
	unsigned char	correlatorData[MAX_LENGTH_CORRELATOR_DATA];
}CorrelatorDataV2_t;

typedef struct SupervisorAssistRequest_t{
	DeviceID_t device;
}SupervisorAssistRequest_t;

typedef struct SupervisorAssistCancel_t{
	DeviceID_t requestingDevice;
	DeviceID_t otherDevice;
}SupervisorAssistCancel_t;

typedef enum serviceRegisterRequestChoiceId{
	serviceRegisterRequestArgumentId = 0,
	serviceRegisterRequestResultId = 1
}serviceRegisterRequestChoiceId;

typedef struct ServiceRegisterId_t{
	char serviceRegisterId[MAX_LENGTH_SERVICE_REGISTER];
	unsigned long length;
}ServiceRegisterId_t;

typedef struct ServiceRegisterRequestArgument_t{
	unsigned long serviceVersionId;
}ServiceRegisterRequestArgument_t;

typedef struct ServiceRegisterRequestResult_t{
	ServiceRegisterId_t serviceRegisterId;
}ServiceRegisterRequestResult_t;

typedef struct ServiceRegisterRequest_t{
	unsigned long	ChoiceId;
	union{
		ServiceRegisterRequestArgument_t		serviceRegisterRequestArgument;
		ServiceRegisterRequestResult_t			serviceRegisterRequestResult;
	}u;
}ServiceRegisterRequest_t;

typedef struct ServiceRegisterCancel_t{
	ServiceRegisterId_t serviceRegisterId;
}ServiceRegisterCancel_t;

typedef struct AgentName_t{
	char agentName[MAX_LENGTH_AGENT_NAME];
}AgentName_t;

typedef struct AgentLoggingInformation_t{
	ServiceRegisterId_t serviceRegister;
	AgentAction_t		agentAction;
	DeviceID_t			agentNumber;
	DeviceID_t			proAcdNumber;
	AgentName_t			agentName;
}AgentLoggingInformation_t;

typedef struct PartyName_t{
	AgentName_t	callingPartyName;
	AgentName_t	alertingPartyName;
}PartyName_t;

typedef struct RequestingDevice_t{
	DeviceID_t requestingDevice;
}RequestingDevice_t;

typedef PrivBool AcdNetworkRerouted_t;

typedef struct HostIdentification_t{
	char hostIdentification[MAX_LENGTH_HOST_IDENTIFICATION];
}HostIdentification_t;

typedef enum HostType_t{
	HOST_TYPE_VIOLA = 0,
	HOST_TYPE_GENERIC_IVR = 1,
	HOST_TYPE_OTHER_IVR = 255
}HostType_t;

typedef enum HostStatus_t{
	HOST_STATUS_CONNECTED = 0,
	HOST_STATUS_DECONNECTED = 1,
	HOST_STATUS_DISABLED = 2,
	HOST_STATUS_ENABLED = 3,
	HOST_STATUS_INITIALIZING = 4,
	HOST_STATUS_MESSAGES_LOST = 5,
	HOST_STATUS_NORMAL = 6,
	HOST_STATUS_OVERLOAD_IMMINENT = 7,
	HOST_STATUS_OVERLOAD_REACHED = 8,
	HOST_STATUS_OVERLOAD_RELIEVED = 9
}HostStatus_t;

typedef struct CSTAIvrStatus_t {
	HostStatus_t	ivrStatus;
	PrivateData_t	extensions;
}CSTAIvrStatus_t;

typedef struct OctetString_t{
	unsigned long	length;
	unsigned char	octetString[MAX_LENGTH_OCTET_STRING];
}OctetString_t;

typedef OctetString_t GlobalCallID_t;

typedef struct HostInformation_t{
	HostIdentification_t	hostIdentification;
	HostType_t				hostType;
	HostStatus_t			hostStatus;
}HostInformation_t;

typedef struct StartListeningMessage_t{
	DeviceID_t		listenedDevice;
	unsigned long	pcmCrystalNumber;
	unsigned long	pcmCouplerNumber;
	unsigned long	pcmTimeSlot;
	PrivateData_t	extensions;
}StartListeningMessage_t;

typedef struct StopListeningMessage_t{
	DeviceID_t		listenedDevice;
	PrivateData_t	extensions;
}StopListeningMessage_t;

typedef struct BipToneGeneration_t{
	DeviceID_t		bippedDevice;
	unsigned long	tonality;
	unsigned long	presenceTimer;
	unsigned long	silenceTimer;
	PrivateData_t	extensions;
}BipToneGeneration_t;

typedef PrivBool SupervisedTransfer_t;

typedef struct Element_t{
		unsigned short			skillNumber;
        PrivBool				acrStatus;
        unsigned short			expertEvaluationLevel;
}Element_t;

⌨️ 快捷键说明

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