Jump to: navigation, search

TEvent Structure

This section describes the syntax of the TEvent structure. For information on types of attributes and possible values, see a full description of this structure in your API reference.

Important
Although listed here, certain components of the TEvent structure are reserved for internal use only.
typedef struct TEvent_tag {
	enum TMessageType 			Event;
	TServer 				Server;
	int 					ReferenceID;
	char 					*HomeLocation;
	char 					*CustomerID;
	TConnectionID 				ConnID;
	TConnectionID 				PreviousConnID;
	TCallID 				CallID;
	int 					NodeID;
	TCallID 				NetworkCallID;
	int 					NetworkNodeID;
	TCallHistoryInfo 			CallHistory;
	TCallType 				CallType;
	TCallState 				CallState;
	TAgentID 				AgentID;
	TAgentWorkMode 				WorkMode;
	long 					ErrorCode;
	char 					*ErrorMessage;
	TFile 					FileHandle;
	char 					*CollectedDigits;
	char 					LastCollectedDigit;
	TDirectoryNumber 			ThisDN;
	TDirectoryNumber 			ThisQueue;
	unsigned long 				ThisTrunk;
	TDNRole 				ThisDNRole;
	TDirectoryNumber 			OtherDN;
	TDirectoryNumber 			OtherQueue;
	unsigned long 				OtherTrunk;
	TDNRole 				OtherDNRole;
	TDirectoryNumber 			ThirdPartyDN;
	TDirectoryNumber 			ThirdPartyQueue;
	unsigned long 				ThirdPartyTrunk;
	TDNRole 				ThirdPartyDNRole;
	TDirectoryNumber 			DNIS;
	TDirectoryNumber 			ANI;
	TAddressInfoType 			InfoType;
	TAddressInfoStatus 			InfoStatus;
	TTreatmentType 				TreatmentType;
	TRouteType 				RouteType;
	char 					*ServerVersion;
	TServerRole 				ServerRole;
	TMask 					Capabilities;
	TKVList 				*UserData;
	TKVList 				*Reasons;
	TKVList 				*Extensions;
	TTimeStamp 				Time;
	void 					*RawData;
	TDirectoryNumber 			AccessNumber;
	TXRouteType 				XRouteType;
	TReferenceID 				XReferenceID;
	TKVList 				*TreatmentParameters;
	char 					*Place;
	int 					Timeout;
	TMediaType 				MediaType;
	TLocationInfoType 			LocationInfo;
	TMonitorNextCallType 			MonitorNextCallType;
	TPrivateMsgType 			PrivateEvent;
	/* Application data (set by TSetApplicationData) */
	void *ApplicationData;
} TEvent;


This page was last modified on March 21, 2018, at 17:48.

Feedback

Comment on this article:

blog comments powered by Disqus