//DataType.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace CTI.Define
{
public enum enumSysModule {NONE=0x00,AGE,IVR,REC,CTI,FAX,WEB,GIS,WMS,APP};
public enum enumRelayType//: byte
{
Normal, //正常数据包(非转接,由APP处理)
PinRelay, //点对点
PinRelay_BySockHandle, //点对点By WinSock句柄
BroadCast //广播
};
/// <summary>
/// CTI message enum
/// </summary>
public enum enumCTIMsg
{
None = 0x00, //unknown MessageID
CallState, //device call state
AgentState
};
/// <summary>
/// message enum from application server
/// </summary>
public enum enumAppMsg
{
None = 0x00,//unknown MessageID
SystemTime//system current time
};
/// <summary>
/// message enum from agent
/// </summary>
public enum enumAgeMsg
{
None = 0x00, //unknown MessageID
AgentState, //change agent state
CTIFunc=0x10 //CTI function request
};
/// <summary>
/// message enum from REC Server
/// </summary>
public enum enumRecMsg
{
None = 0x00, //unknown MessageID
RecInfo=0x10 //Rec information
};
/// <summary>
/// message enum from Fax Server
/// </summary>
public enum enumFaxMsg
{
None = 0x00, //unknown MessageID
FaxInfo = 0x10 //Fax information
};
}
//CallType.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace CTI.Define
{
public enum CallIO
{
unknown,
In,
Out
}
/// <summary>
/// device category enum
/// </summary>
public enum DeviceCategory
{
ACD,
Group,
NetworkInterface,// (i.e., trunk)
Park,
Routeing,
Station,
VoiceUnit,
Other
}
/// <summary>
/// device type enum
/// </summary>
public enum DeviceType
{
RCG,
Agent,
StationAnalog,
StationDigital,
HuntGroup,
ACD,
ACDGroup,
Button,
ButtonGroup,
ConferenceBridge,
Line,
LineGroup,
Operator,
OperatorGroup,
ParkingDevice,
Station,
StationGroup,
Trunk,
TrunkGroup,
Other,
OtherGroup
}
/// <summary>
/// device state enum
/// </summary>
public enum DeviceState
{
unknown = 0,
Active = 2, //connected
Deliver = 4, //->alerting
Fail = 8, //Fail
Hold = 16, //Hold
Initiated = 32, //initiated
Queue = 64, //queued
Null = 128, //null
Receive = 256, //->alerting
Unavailable = 512
}
public enum LocalConnectionState
{
/// <remarks/>
@null,
/// <remarks/>
initiated,
/// <remarks/>
alerting,
/// <remarks/>
connected,
/// <remarks/>
hold,
/// <remarks/>
queued,
/// <remarks/>
fail,
}
/// <summary>
/// call control event enum
/// </summary>
public enum DeviceEvent
{
//call-control events
bridged,
callCleared,
conferenced,
connectionCleared,
delivered,
digitsDialed,
diverted,
established,
failed,
held,
networkCapabilitiesChanged,
networkReached,
offered,
originated,
queued,
retrieved,
serviceInitiated,
transferred,
//call-associated events
callInformation,
charging,
digitsGenerated,
telephonyTonesGenerated,
serviceCompletionFailure,
//media-attachment events
mediaAttached,
mediaDetached,
//physical-device-feature events
buttonInformation,
buttonPress,
displayUpdated,
hookswitch,
lampMode,
messageWaiting,
microphoneGain,
microphoneMute,
ringerStatus,
speakerMute,
speakerVolume,
//logical-device-feature events
agentBusy,
agentLoggedOn,
agentLoggedOff,
agentNotReady,
agentReady,
agentWorkingAfterCall,
autoAnswer,
autoWorkMode,
callBack,
callBackMessage,
callerIDStatus,
doNotDisturb,
forwarding,
routeingMode,
//Device-Maintenance Events
backInService,
deviceCapabilityChanged,
outOfService,
partiallyInService,
//Voice Events
bookmarkReached,
completed,
dtmfDetected,
emptied,
interruptionDetected,
notRecognized,
play,
recognized,
record,
review,
started,
silenceTimeoutExpired,
speechDetected,
stop,
suspendPlay,
suspendRecord,
voiceAttributesChanged,
voiceErrorOccurred
}
/// <summary>
/// event-caused reason enum
/// </summary>
public enum EventCause
{
/// <remarks/>
aCDBusy,
/// <remarks/>
aCDForward,
/// <remarks/>
aCDSaturated,
/// <remarks/>
activation,
/// <remarks/>
activeParticipation,
/// <remarks/>
alertTimeExpired,
/// <remarks/>
alternate,
/// <remarks/>
autoWork,
/// <remarks/>
babble,
/// <remarks/>
badAttribute,
/// <remarks/>
badGrammar,
/// <remarks/>
badURI,
/// <remarks/>
badVoice,
/// <remarks/>
blocked,
/// <remarks/>
busy,
/// <remarks/>
busyOverflow,
/// <remarks/>
calendarOverflow,
/// <remarks/>
callBack,
/// <remarks/>
callCancelled,
/// <remarks/>
callForward,
/// <remarks/>
callForwardImmediate,
/// <remarks/>
callForwardBusy,
/// <remarks/>
callForwardNoAnswer,
/// <remarks/>
callNotAnswered,
/// <remarks/>
callPickup,
/// <remarks/>
campOn,
/// <remarks/>
campOnTrunks,
/// <remarks/>
capacityOverflow,
/// <remarks/>
characterCountReached,
/// <remarks/>
conference,
/// <remarks/>
consultation,
/// <remarks/>
destDetected,
/// <remarks/>
destNotObtainable,
/// <remarks/>
destOutOfOrder,
/// <remarks/>
distributed,
/// <remarks/>
distributionDelay,
/// <remarks/>
doNotDisturb,
/// <remarks/>
dTMFDigitDetected,
/// <remarks/>
duplicateDTMF,
/// <remarks/>
durationExceeded,
/// <remarks/>
earlyStop,
/// <remarks/>
emptyQueue,
/// <remarks/>
endOfMessageDetected,
/// <remarks/>
enteringDistribution,
/// <remarks/>
forcedPause,
/// <remarks/>
forcedTransition,
/// <remarks/>
incompatibleDestination,
/// <remarks/>
interdigitTimeout,
/// <remarks/>
intrude,
/// <remarks/>
invalidAccountCode,
/// <remarks/>
invalidConnection,
/// <remarks/>
invalidConnectionState,
/// <remarks/>
invalidNumberFormat,
/// <remarks/>
joinCall,
/// <remarks/>
keyOperation,
/// <remarks/>
keyOperationInUse,
/// <remarks/>
lockout,
/// <remarks/>
maintenance,
/// <remarks/>
makeCall,
/// <remarks/>
makePredictiveCall,
/// <remarks/>
maxTimeout,
/// <remarks/>
messageDurationExceeded,
/// <remarks/>
messageSizeExceeded,
/// <remarks/>
multipleAlerting,
/// <remarks/>
multipleQueuing,
/// <remarks/>
networkCongestion,
/// <remarks/>
networkDialling,
/// <remarks/>
networkNotObtainable,
/// <remarks/>
networkOutOfOrder,
/// <remarks/>
networkSignal,
/// <remarks/>
newCall,
/// <remarks/>
nextMessage,
/// <remarks/>
noAvailableAgents,
/// <remarks/>
normal,
/// <remarks/>
normalClearing,
/// <remarks/>
noAudioSaved,
/// <remarks/>
noQueue,
/// <remarks/>
noRule,
/// <remarks/>
noSpeechDetected,
/// <remarks/>
notAvaliableBearerService,
/// <remarks/>
notSupportedBearerService,
/// <remarks/>
numberChanged,
/// <remarks/>
numberUnallocated,
/// <remarks/>
outOfGrammar,
/// <remarks/>
overflow,
/// <remarks/>
@override,
/// <remarks/>
park,
/// <remarks/>
pathReplacement,
/// <remarks/>
queueCleared,
/// <remarks/>
queueTimeOverflow,
/// <remarks/>
recall,
/// <remarks/>
recallBusy,
/// <remarks/>
recallForwarded,
/// <remarks/>
recallNoAnswer,
/// <remarks/>
recallResourcesNotAvailable,
/// <remarks/>
redirected,
/// <remarks/>
remainsInQueue,
/// <remarks/>
reorderTone,
/// <remarks/>
reserved,
/// <remarks/>
resourcesNotAvailable,
/// <remarks/>
selectedTrunkBusy,
/// <remarks/>
silentParticipation,
/// <remarks/>
singleStepConference,
/// <remarks/>
singleStepTransfer,
/// <remarks/>
speechDetected,
/// <remarks/>
suspend,
/// <remarks/>
switchingFunctionTerminated,
/// <remarks/>
terminationCharacterReceived,
/// <remarks/>
timeout,
/// <remarks/>
transfer,
/// <remarks/>
trunksBusy,
/// <remarks/>
unauthorisedBearerService,
/// <remarks/>
unknownOverflow,
}
/// <summary>
/// request type enum
/// </summary>
public enum CstaRequest
{
None,
StartApplicationSession,
ResetApplicationSessionTimer,
StopApplicationSession,
MonitorStart,
MonitorStop
}
/// <summary>
/// consult call options
/// </summary>
public enum ConsultOptions
{
/// <remarks/>
unrestricted,
/// <remarks/>
consultOnly,
/// <remarks/>
transferOnly,
/// <remarks/>
conferenceOnly,
}
/// <summary>
/// csta message enum
/// </summary>
public enum CstaMessage
{
None,
//application session messages
StartApplicationSessionPosResponse,
StartApplicationSessionNegResponse,
ResetApplicationSessionTimerPosResponse,
ResetApplicationSessionTimerNegResponse,
StopApplicationSessionPosResponse,
StopApplicationSessionNegResponse,
SystemStatus,
ApplicationSessionTerminated,
//monitor service message
MonitorStartResponse,
//call-control events
bridged,
callCleared,
conferenced,
connectionCleared,
delivered,
digitsDialed,
diverted,
established,
failed,
held,
networkCapabilitiesChanged,
networkReached,
offered,
originated,
queued,
retrieved,
serviceInitiated,
transferred,
//call-associated events
callInformation,
charging,
digitsGenerated,
telephonyTonesGenerated,
serviceCompletionFailure,
//media-attachment events
mediaAttached,
mediaDetached,
//physical-device-feature events
buttonInformation,
buttonPress,
displayUpdated,
hookswitch,
lampMode,
messageWaiting,
microphoneGain,
microphoneMute,
ringerStatus,
speakerMute,
speakerVolume,
//logical-device-feature events
agentBusy,
agentLoggedOn,
agentLoggedOff,
agentNotReady,
agentReady,
agentWorkingAfterCall,
autoAnswer,
autoWorkMode,
callBack,
callBackMessage,
callerIDStatus,
doNotDisturb,
forwarding,
routeingMode,
//Device-Maintenance Events
backInService,
deviceCapabilityChanged,
outOfService,
partiallyInService,
//Voice Events
bookmarkReached,
completed,
dtmfDetected,
emptied,
interruptionDetected,
notRecognized,
play,
recognized,
record,
review,
started,
silenceTimeoutExpired,
speechDetected,
stop,
suspendPlay,
suspendRecord,
voiceAttributesChanged,
voiceErrorOccurred,
cstaError
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace CTI.Define
{
public enum enumSysModule {NONE=0x00,AGE,IVR,REC,CTI,FAX,WEB,GIS,WMS,APP};
public enum enumRelayType//: byte
{
Normal, //正常数据包(非转接,由APP处理)
PinRelay, //点对点
PinRelay_BySockHandle, //点对点By WinSock句柄
BroadCast //广播
};
/// <summary>
/// CTI message enum
/// </summary>
public enum enumCTIMsg
{
None = 0x00, //unknown MessageID
CallState, //device call state
AgentState
};
/// <summary>
/// message enum from application server
/// </summary>
public enum enumAppMsg
{
None = 0x00,//unknown MessageID
SystemTime//system current time
};
/// <summary>
/// message enum from agent
/// </summary>
public enum enumAgeMsg
{
None = 0x00, //unknown MessageID
AgentState, //change agent state
CTIFunc=0x10 //CTI function request
};
/// <summary>
/// message enum from REC Server
/// </summary>
public enum enumRecMsg
{
None = 0x00, //unknown MessageID
RecInfo=0x10 //Rec information
};
/// <summary>
/// message enum from Fax Server
/// </summary>
public enum enumFaxMsg
{
None = 0x00, //unknown MessageID
FaxInfo = 0x10 //Fax information
};
}
//CallType.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace CTI.Define
{
public enum CallIO
{
unknown,
In,
Out
}
/// <summary>
/// device category enum
/// </summary>
public enum DeviceCategory
{
ACD,
Group,
NetworkInterface,// (i.e., trunk)
Park,
Routeing,
Station,
VoiceUnit,
Other
}
/// <summary>
/// device type enum
/// </summary>
public enum DeviceType
{
RCG,
Agent,
StationAnalog,
StationDigital,
HuntGroup,
ACD,
ACDGroup,
Button,
ButtonGroup,
ConferenceBridge,
Line,
LineGroup,
Operator,
OperatorGroup,
ParkingDevice,
Station,
StationGroup,
Trunk,
TrunkGroup,
Other,
OtherGroup
}
/// <summary>
/// device state enum
/// </summary>
public enum DeviceState
{
unknown = 0,
Active = 2, //connected
Deliver = 4, //->alerting
Fail = 8, //Fail
Hold = 16, //Hold
Initiated = 32, //initiated
Queue = 64, //queued
Null = 128, //null
Receive = 256, //->alerting
Unavailable = 512
}
public enum LocalConnectionState
{
/// <remarks/>
@null,
/// <remarks/>
initiated,
/// <remarks/>
alerting,
/// <remarks/>
connected,
/// <remarks/>
hold,
/// <remarks/>
queued,
/// <remarks/>
fail,
}
/// <summary>
/// call control event enum
/// </summary>
public enum DeviceEvent
{
//call-control events
bridged,
callCleared,
conferenced,
connectionCleared,
delivered,
digitsDialed,
diverted,
established,
failed,
held,
networkCapabilitiesChanged,
networkReached,
offered,
originated,
queued,
retrieved,
serviceInitiated,
transferred,
//call-associated events
callInformation,
charging,
digitsGenerated,
telephonyTonesGenerated,
serviceCompletionFailure,
//media-attachment events
mediaAttached,
mediaDetached,
//physical-device-feature events
buttonInformation,
buttonPress,
displayUpdated,
hookswitch,
lampMode,
messageWaiting,
microphoneGain,
microphoneMute,
ringerStatus,
speakerMute,
speakerVolume,
//logical-device-feature events
agentBusy,
agentLoggedOn,
agentLoggedOff,
agentNotReady,
agentReady,
agentWorkingAfterCall,
autoAnswer,
autoWorkMode,
callBack,
callBackMessage,
callerIDStatus,
doNotDisturb,
forwarding,
routeingMode,
//Device-Maintenance Events
backInService,
deviceCapabilityChanged,
outOfService,
partiallyInService,
//Voice Events
bookmarkReached,
completed,
dtmfDetected,
emptied,
interruptionDetected,
notRecognized,
play,
recognized,
record,
review,
started,
silenceTimeoutExpired,
speechDetected,
stop,
suspendPlay,
suspendRecord,
voiceAttributesChanged,
voiceErrorOccurred
}
/// <summary>
/// event-caused reason enum
/// </summary>
public enum EventCause
{
/// <remarks/>
aCDBusy,
/// <remarks/>
aCDForward,
/// <remarks/>
aCDSaturated,
/// <remarks/>
activation,
/// <remarks/>
activeParticipation,
/// <remarks/>
alertTimeExpired,
/// <remarks/>
alternate,
/// <remarks/>
autoWork,
/// <remarks/>
babble,
/// <remarks/>
badAttribute,
/// <remarks/>
badGrammar,
/// <remarks/>
badURI,
/// <remarks/>
badVoice,
/// <remarks/>
blocked,
/// <remarks/>
busy,
/// <remarks/>
busyOverflow,
/// <remarks/>
calendarOverflow,
/// <remarks/>
callBack,
/// <remarks/>
callCancelled,
/// <remarks/>
callForward,
/// <remarks/>
callForwardImmediate,
/// <remarks/>
callForwardBusy,
/// <remarks/>
callForwardNoAnswer,
/// <remarks/>
callNotAnswered,
/// <remarks/>
callPickup,
/// <remarks/>
campOn,
/// <remarks/>
campOnTrunks,
/// <remarks/>
capacityOverflow,
/// <remarks/>
characterCountReached,
/// <remarks/>
conference,
/// <remarks/>
consultation,
/// <remarks/>
destDetected,
/// <remarks/>
destNotObtainable,
/// <remarks/>
destOutOfOrder,
/// <remarks/>
distributed,
/// <remarks/>
distributionDelay,
/// <remarks/>
doNotDisturb,
/// <remarks/>
dTMFDigitDetected,
/// <remarks/>
duplicateDTMF,
/// <remarks/>
durationExceeded,
/// <remarks/>
earlyStop,
/// <remarks/>
emptyQueue,
/// <remarks/>
endOfMessageDetected,
/// <remarks/>
enteringDistribution,
/// <remarks/>
forcedPause,
/// <remarks/>
forcedTransition,
/// <remarks/>
incompatibleDestination,
/// <remarks/>
interdigitTimeout,
/// <remarks/>
intrude,
/// <remarks/>
invalidAccountCode,
/// <remarks/>
invalidConnection,
/// <remarks/>
invalidConnectionState,
/// <remarks/>
invalidNumberFormat,
/// <remarks/>
joinCall,
/// <remarks/>
keyOperation,
/// <remarks/>
keyOperationInUse,
/// <remarks/>
lockout,
/// <remarks/>
maintenance,
/// <remarks/>
makeCall,
/// <remarks/>
makePredictiveCall,
/// <remarks/>
maxTimeout,
/// <remarks/>
messageDurationExceeded,
/// <remarks/>
messageSizeExceeded,
/// <remarks/>
multipleAlerting,
/// <remarks/>
multipleQueuing,
/// <remarks/>
networkCongestion,
/// <remarks/>
networkDialling,
/// <remarks/>
networkNotObtainable,
/// <remarks/>
networkOutOfOrder,
/// <remarks/>
networkSignal,
/// <remarks/>
newCall,
/// <remarks/>
nextMessage,
/// <remarks/>
noAvailableAgents,
/// <remarks/>
normal,
/// <remarks/>
normalClearing,
/// <remarks/>
noAudioSaved,
/// <remarks/>
noQueue,
/// <remarks/>
noRule,
/// <remarks/>
noSpeechDetected,
/// <remarks/>
notAvaliableBearerService,
/// <remarks/>
notSupportedBearerService,
/// <remarks/>
numberChanged,
/// <remarks/>
numberUnallocated,
/// <remarks/>
outOfGrammar,
/// <remarks/>
overflow,
/// <remarks/>
@override,
/// <remarks/>
park,
/// <remarks/>
pathReplacement,
/// <remarks/>
queueCleared,
/// <remarks/>
queueTimeOverflow,
/// <remarks/>
recall,
/// <remarks/>
recallBusy,
/// <remarks/>
recallForwarded,
/// <remarks/>
recallNoAnswer,
/// <remarks/>
recallResourcesNotAvailable,
/// <remarks/>
redirected,
/// <remarks/>
remainsInQueue,
/// <remarks/>
reorderTone,
/// <remarks/>
reserved,
/// <remarks/>
resourcesNotAvailable,
/// <remarks/>
selectedTrunkBusy,
/// <remarks/>
silentParticipation,
/// <remarks/>
singleStepConference,
/// <remarks/>
singleStepTransfer,
/// <remarks/>
speechDetected,
/// <remarks/>
suspend,
/// <remarks/>
switchingFunctionTerminated,
/// <remarks/>
terminationCharacterReceived,
/// <remarks/>
timeout,
/// <remarks/>
transfer,
/// <remarks/>
trunksBusy,
/// <remarks/>
unauthorisedBearerService,
/// <remarks/>
unknownOverflow,
}
/// <summary>
/// request type enum
/// </summary>
public enum CstaRequest
{
None,
StartApplicationSession,
ResetApplicationSessionTimer,
StopApplicationSession,
MonitorStart,
MonitorStop
}
/// <summary>
/// consult call options
/// </summary>
public enum ConsultOptions
{
/// <remarks/>
unrestricted,
/// <remarks/>
consultOnly,
/// <remarks/>
transferOnly,
/// <remarks/>
conferenceOnly,
}
/// <summary>
/// csta message enum
/// </summary>
public enum CstaMessage
{
None,
//application session messages
StartApplicationSessionPosResponse,
StartApplicationSessionNegResponse,
ResetApplicationSessionTimerPosResponse,
ResetApplicationSessionTimerNegResponse,
StopApplicationSessionPosResponse,
StopApplicationSessionNegResponse,
SystemStatus,
ApplicationSessionTerminated,
//monitor service message
MonitorStartResponse,
//call-control events
bridged,
callCleared,
conferenced,
connectionCleared,
delivered,
digitsDialed,
diverted,
established,
failed,
held,
networkCapabilitiesChanged,
networkReached,
offered,
originated,
queued,
retrieved,
serviceInitiated,
transferred,
//call-associated events
callInformation,
charging,
digitsGenerated,
telephonyTonesGenerated,
serviceCompletionFailure,
//media-attachment events
mediaAttached,
mediaDetached,
//physical-device-feature events
buttonInformation,
buttonPress,
displayUpdated,
hookswitch,
lampMode,
messageWaiting,
microphoneGain,
microphoneMute,
ringerStatus,
speakerMute,
speakerVolume,
//logical-device-feature events
agentBusy,
agentLoggedOn,
agentLoggedOff,
agentNotReady,
agentReady,
agentWorkingAfterCall,
autoAnswer,
autoWorkMode,
callBack,
callBackMessage,
callerIDStatus,
doNotDisturb,
forwarding,
routeingMode,
//Device-Maintenance Events
backInService,
deviceCapabilityChanged,
outOfService,
partiallyInService,
//Voice Events
bookmarkReached,
completed,
dtmfDetected,
emptied,
interruptionDetected,
notRecognized,
play,
recognized,
record,
review,
started,
silenceTimeoutExpired,
speechDetected,
stop,
suspendPlay,
suspendRecord,
voiceAttributesChanged,
voiceErrorOccurred,
cstaError
}
}