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

📄 alcpriv2.h

📁 csta协议的开发
💻 H
📖 第 1 页 / 共 2 页
字号:
typedef struct ACRAttributeList_t{
	DeviceID_t		acrAgentNumber;
	unsigned short	count;
	Element_t		elementArray[MAX_NUMBER_OF_ELEMENT];
}ACRAttributeList_t;

typedef struct SecretIdentiteList_t{
	unsigned short	count;
	SecretDeviceID_t	deviceIDArray[MAX_NUMBER_OF_SECRETDEVICEID];
}SecretIdentiteList_t;

/*YB 270801+*/
typedef struct GlobalCallIDList_t{
	unsigned short	count;
	GlobalCallID_t globalCallIDArray[MAX_NUMBER_OF_GLOBALCALLID];
}GlobalCallIDList_t;
/*YB 270801-*/

typedef struct PermanentListening_t {
	DeviceID_t requestingDevice;
	DeviceID_t listenAgentDevice;
}PermanentListening_t;

/*YB 160102+*/
typedef struct MessageWaitingIndicator_t {
	DeviceID_t device;
	PrivBool   messageWaitingOn;
}MessageWaitingIndicator_t;
/*YB 160102-*/

typedef enum ApplicationType_t{ 
	CCE_APPLICATION = 0,
	CCO_APPLICATION = 1,
	CCW_APPLICATION = 2,
	CC_OTHER = 255
}ApplicationType_t;

typedef struct TreatmentRequestArgument_t {
	DeviceID_t agentNumber;
	PrivBool	actionType;
	ApplicationType_t applicationType;
}TreatmentRequestArgument_t;

typedef struct TreatmentRequestResult_t{
	GlobalCallID_t	globalCallID;
}TreatmentRequestResult_t;

typedef enum treatmentRequestChoiceId{
	treatmentRequestArgumentId = 0,
	treatmentRequestResultId = 1
}treatmentRequestChoiceId;

typedef struct TreatmentRequest_t{
	unsigned long	ChoiceId;
	union{
	TreatmentRequestArgument_t	treatmentRequestArgument;
	TreatmentRequestResult_t	treatmentRequestResult;
	}u;
}TreatmentRequest_t;

typedef struct OtherOperation_t {
	unsigned long	length;
	unsigned char	otherOperation[96];
}OtherOperation_t;

typedef ExtendedDeviceID_t NationalIndication_t;

/*RoutingService+*/
typedef enum ConnectionID3_type_t {
	CID3_CALLID,
	CID3_DEVICEID,
	CID3_BOTH
} ConnectionID3_type_t;

typedef enum CallObjectType_t {
	DEVICETYPE = 0,
	CONNECTIONTYPE = 1
} CallObjectType_t;

#define	MEDIACLASSE_UNKNOWN			0x00
#define	MEDIACLASSE_VOICE			0x01
#define	MEDIACLASSE_VOICE_DATA		0x02
#define MEDIACLASSE_VOICE_IMAGE		0x04
#define	MEDIACLASSE_VOICE_OTHER		0x08
#define	MEDIACLASSE_VOICE_AUDIO		0x10
#define	MEDIACLASSE_VOICE_NOTKNOWN	0x20

typedef unsigned short 	MediaClass_t;

typedef struct DeviceId3_t {
	ExtendedDeviceID_t extendedDevice;
	MediaClass_t mediaClass;
}DeviceId3_t;

typedef struct LocalDeviceId3_t {
	ConnectionID_Device_t devIDType;
	DeviceId3_t staticID;
	DeviceID_t	dynamicID;
}LocalDeviceId3_t;

typedef struct ConnectionID3_t {
	ConnectionID3_type_t type;
	long				callID;
	LocalDeviceId3_t   deviceID;
} ConnectionID3_t;


typedef struct CallObject_t {
	CallObjectType_t objectType;
	DeviceId3_t device;
	ConnectionID3_t connection;
} CallObject_t;

typedef char FlushChar_t[MAX_LENGTH_FLUSH_CHAR];

typedef struct DigitsReportingCriteria_t {
    long numChars;
    FlushChar_t flushChar;
    long timeout;
} DigitsReportingCriteria_t;

typedef enum DataCollType_t {
	DC_DIGITS = 0,
	DC_TELTONES = 1
} DataCollType_t;

typedef long     DataCollCrid_t;

typedef char DigitsDetected_t[MAX_LENGTH_DIGITS_DETECTED + 1];

typedef struct DDDurationList_t{
	unsigned short	count;
	long longTable[MAX_LENGTH_DIGITS_DETECTED];
}DDDurationList_t;

typedef struct DigitsData_t {
    DigitsDetected_t digitsDetected;
} DigitsData_t;

typedef enum DcollCause_t {
	DCC_FLUSHCHARRECEIVED = 0,
	DCC_CHARCOUNTREACHED = 1,
	DCC_TIMEOUT = 2,
	DCC_SFTERMINATED = 3,
	DCC_NOCAUSE = 255
} DcollCause_t;

typedef struct DataCollected_t {
	DataCollCrid_t dataCollCrid;
	DigitsData_t digitsData;
	DcollCause_t dcollCause;
} DataCollected_t;

typedef enum ToneToSend_t{
//	TONE_BEEP = 0,
//	TONE_BILLING = 1,
	TONE_BUSY = 2,
//	TONE_CARRIER = 3,
//	TONE_CONFIRMATION = 4,
//	TONE_DIAL = 5,
//	TONE_FAXCNG = 6,
//	TONE_HOLD = 7,
//	TONE_HOWLER = 8,
//	TONE_INTRUSION = 9,
//	TONE_MODEMCNG = 10,
//	TONE_PARK = 11,
//	TONE_RECORDWARNING = 12,
//	TONE_REORDER = 13,
	TONE_RINGBACK = 14,
	TONE_SILENCE = 15,
//	TONE_SITVC = 16,
//	TONE_SITIC = 17,
//	TONE_SITRO = 18,
//	TONE_SITNC = 19,
	TONE_SWITCHSPEC0 = 20,
	TONE_SWITCHSPEC1 = 21
}ToneToSend_t ;

typedef enum SpellingOptionType_t {
	SO_NUMBERBYNUMBER = 0,
	SO_DATE = 1,
	SO_HOUR = 2,
	SO_PHONENUMBER = 3,
	SO_CURRENCY = 4,
} SpellingOptionType_t;

typedef struct Prompt_t {
	Boolean interruptable;
	long id;
}Prompt_t;

typedef char Digits_t[MAX_LENGTH_DIGITS_TO_DISPLAY];

typedef struct DigitsToPlay_t {
	SpellingOptionType_t spellingOption;
	Digits_t digits;
}DigitsToPlay_t;

typedef char DigitsKey_t[MAX_LENGTH_DIGITS_KEY];

typedef struct DigitsReportingCriteriaAdd_t {
    DigitsKey_t abortDigits;
    DigitsKey_t ignoreDigits;
    DigitsKey_t backspaceDigits;
    DigitsKey_t termDigits;
    DigitsKey_t resetDigits;
    long startTimeout;
	long digitTimeout;
} DigitsReportingCriteriaAdd_t;

typedef struct StartDataCollectionArgument_t {
    CallObject_t callObject;
    DataCollType_t dataCollType;
    DigitsReportingCriteria_t digitsReportingCriteria;
	DigitsReportingCriteriaAdd_t digitsReportingCriteriaAdd;
} StartDataCollectionArgument_t;

typedef struct StartDataCollectionResult_t {
	DataCollCrid_t dataCollCrid;
} StartDataCollectionResult_t;

typedef enum serviceStartDataCollectionChoiceId{
	serviceStartDataCollectionArgumentId = 0,
	serviceStartDataCollectionResultId = 1
}serviceStartDataCollectionChoiceId;

typedef struct StartDataCollection_t {
	unsigned long	ChoiceId;
	union{
		StartDataCollectionArgument_t startDataCollectionArgument;
		StartDataCollectionResult_t startDataCollectionResult;
	}u;
} StartDataCollection_t;


typedef struct StopDataCollection_t {
	DataCollCrid_t dataCollCrid;
} StopDataCollection_t;

typedef enum AnnouncementOrMusicType_t {
	ANNOUNCEMENT = 0,
	MUSICID = 1
} AnnouncementOrMusicType_t;

typedef struct DigitsOrPromptList_t{
	unsigned short	digitsCount;
	DigitsToPlay_t digitsToPlayArray[MAX_NUMBER_OF_DIGITS];
	unsigned short	promptCount;
	Prompt_t promptArray[MAX_NUMBER_OF_PROMPTS];
}DigitsOrPromptList_t;

typedef struct AnnouncementToGenerate_t {
    long language;
    long expectedWaitingTime;
    long positionInQueue;
	DigitsOrPromptList_t digitsOrPromptList;
} AnnouncementToGenerate_t;

typedef struct AnnouncementOrMusic_t {
	AnnouncementOrMusicType_t type;
	AnnouncementToGenerate_t announcement;
	long musicId;
} AnnouncementOrMusic_t;

typedef struct GenerateTelTones_t {
	ConnectionID3_t connection;
	ToneToSend_t toneToSend;
	long toneDuration;
	AnnouncementOrMusic_t announcementOrMusic;
} GenerateTelTones_t;

typedef struct CancelTelTones_t {
	ConnectionID3_t connection;
} CancelTelTones_t;
/*RoutingService-*/
/*CALLINGLINE+*/
typedef char Callingline_t[MAX_LENGTH_CALLINGLINE];

typedef struct CallingLineIdentification_t {
	Callingline_t digits;
	long numberType;
    long numberingPlan;
    long presentationIndicator;
    long screeningIndicator;
} CallingLineIdentification_t;
/*CALLINGLINE-*/

typedef struct 	AlcatelCstaPrivObject_t {
	unsigned long		objectId;   
	union {
		AssociateData_t					associateData;				//0
		GeneralizedTime_t				dateAndTimeSetting;			//1
		HostInformation_t				hostInformation;			//2
		InterruptTransaction_t			interruptTransaction;		//3
		SetDeviceInService_t			setDeviceInService;			//4
		SupervisorAssistRequest_t		supervisorAssistRequest;	//6
		SupervisorAssistCancel_t		supervisorAssistCancel;		//7
		ServiceRegisterRequest_t		serviceRegisterRequest;		//8
		ServiceRegisterCancel_t			serviceRegisterCancel;		//9
		AgentLoggingInformation_t		agentLoggingInformation;	//10
		StartListeningMessage_t			startListeningMessage;		//11
		StopListeningMessage_t			stopListeningMessage;		//12
		BipToneGeneration_t				bipToneGeneration;			//13
		PermanentListening_t			permanentListening;			//15
		TreatmentRequest_t				treatmentRequest;			//16
		MessageWaitingIndicator_t		messageWaitingIndicator;	//17	/*YB 160102*/
		StartDataCollection_t			startDataCollection;		//18	/*RoutingService*/
		StopDataCollection_t			stopDataCollection;			//19	/*RoutingService*/
		DataCollected_t					dataCollected;				//20	/*RoutingService*/
		GenerateTelTones_t				generateTelTones;			//21	/*RoutingService*/
		CancelTelTones_t				cancelTelTones;				//22	/*RoutingService*/
		OtherOperation_t				otherOperation;				//499
		CorrelatorDataV2_t				correlatorDataV2;			//500 correlator data field for events
		PrivateErrors_t					privateErrors;				//501
		AcdWaitingTime_t				acdWaitingTime;				//502
		CstaServiceOption_t				cstaServiceOption;			//503
		NetworkTimeSlot_t				networkTimeSlot;			//504
		NotReadyContext_t				notReadyContext;			//505
		QueryAgentInformation_t			queryAgentInformation;		//506
		PilotTransferInformation_t		pilotTransferInformation;	//507
		AcdDistributionInformation_t	acdDistributionInformation;	//508
		IvrInteractiveQueing_t			ivrInteractiveQueuing;		//509
		IvrNextLevel_t					ivrNextLevel;				//510
		NotReadyActivation_t			notReadyActivation;			//511
		PartyName_t						partyName;					//512
		RequestingDevice_t				requestingDevice;			//513
		AcdNetworkRerouted_t			acdNetworkRerouted;			//514
		HostIdentification_t			hostIdentification;			//515
		SupervisedTransfer_t			supervisedTransfer;			//516
		ACRAttributeList_t				aCRAttributeList;			//518
		CCTreatmentTypeID_t				cCTreatmentType;			//519
		SecretIdentiteList_t			secretIdentiteList;			//520
		GlobalCallID_t					globalCallID;				//521
		GlobalCallID_t					oldGlobalCallID;			//522
		NationalIndication_t			nationalIndication;			//523
		RerouteAuthorisation_t			rerouteAuthorisation;		//524	/*RoutingService*/
		DigitsReportingCriteriaAdd_t	digitsReportingCriteriaAdd;	//525	/*RoutingService*/
		AnnouncementOrMusic_t			announcementOrMusic;		//526	/*RoutingService*/
		GlobalCallIDList_t				globalCallIDList;			//527	/*YB 270801*/
		CallingLineIdentification_t		CallingLineIdentification;	//532	/*CALLINGLINE*/

		OtherPrivateData_t				otherPrivateData;			//999

	}u;
} AlcatelCstaPrivObject_t;


// Private Event
typedef ConnectionID_t 	HeadOfQueueEvent_t;

typedef struct SupervisorAssistRequestEvent_t{
	DeviceID_t			agentDevice;
	ConnectionID_t		agentConnection;
	DeviceID_t			supervisorDevice;
	PrivBool			requestStatus;
	CorrelatorDataV2_t	correlatorData;
}SupervisorAssistRequestEvent_t;

typedef struct TrunkGroupSupervisionEvent_t{
	OctetString_t		trunkGroupNumberList;
	OctetString_t		outOfServiceTrunkNumberList;
	OctetString_t		busyTrunkNumberList;
	OctetString_t		freeTrunkNumberList;
}TrunkGroupSupervisionEvent_t;

/*RoutingService+*/
typedef struct TelephonyTonesGeneratedEvent_t {
	CSTAMonitorCrossRefID_t monitorCrossRefID;
	ConnectionID3_t connection;
	long toneGenerated;
}TelephonyTonesGeneratedEvent_t;
/*RoutingService-*/

/*YB 270801+*/
typedef struct BusyEvent_t{
	SubjectDeviceID_t failingDevice;
	CallingDeviceID_t callingDevice;
	CalledDeviceID_t calledDevice;
	CSTAEventCause_t		cause;
}BusyEvent_t;

typedef struct RemoteRecordFailedEvent_t{
	SubjectDeviceID_t recordedDevice;
	ConnectionID_t  connection;
	GlobalCallID_t	globalCallID;
	CSTAEventCause_t		cause;
}RemoteRecordFailedEvent_t;
/*YB 270801-*/

typedef struct OtherPrivateEvent_t{
	char    privateIdentifier[MAX_LENGTH_PRIVATE_IDENTIFIER];
	char    privateEvent[MAX_LENGTH_PRIVATE_EVENT];
	unsigned long lengthPrivateIdentifier;
	unsigned long lengthPrivateEvent;
}OtherPrivateEvent_t;

typedef struct AlcatelCstaPrivEvent_t {
	AlcatelCstaPrivEventId_t	alcatelCstaPrivEventId;
	union{
		 HeadOfQueueEvent_t 			headOfQueueEvent;				//1000
		 SupervisorAssistRequestEvent_t	supervisorAssistRequestEvent;	//1001
		 TrunkGroupSupervisionEvent_t	trunkGroupSupervisionEvent;		//1002
		TelephonyTonesGeneratedEvent_t telephonyTonesGeneratedEvent;	//1004 /*RoutingService*/
/*YB 270801+*/
		 BusyEvent_t					busyEvent;						//1005
		 RemoteRecordFailedEvent_t		remoteRecordFailedEvent;		//1006
/*YB 270801-*/
		 OtherPrivateEvent_t			otherPrivateEvent;				//1499
	}u;
} AlcatelCstaPrivEvent_t;

typedef CstaCommonArguments_t CSTAEscapeSvcReqEvent_t2;

#endif

⌨️ 快捷键说明

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