📄 cstadefs.h
字号:
_Int count;
Connection_t FAR *connection;
} ConnectionList_t;
typedef enum LocalConnectionState_t {
CS_NONE = -1,
CS_NULL = 0,
CS_INITIATE = 1,
CS_ALERTING = 2,
CS_CONNECT = 3,
CS_HOLD = 4,
CS_QUEUED = 5,
CS_FAIL = 6
} LocalConnectionState_t;
#define MAX_CORRELATOR_DATA_LENGTH 32
typedef char Correlator_t[MAX_CORRELATOR_DATA_LENGTH];
typedef struct CorrelatorData_t{
unsigned short length;
Correlator_t correlatorData;
}CorrelatorData_t;
typedef long CSTAMonitorCrossRefID_t;
typedef unsigned short CSTACallFilter_t;
#define CF_CALL_CLEARED 0x8000
#define CF_CONFERENCED 0x4000
#define CF_CONNECTION_CLEARED 0x2000
#define CF_DELIVERED 0x1000
#define CF_DIVERTED 0x0800
#define CF_ESTABLISHED 0x0400
#define CF_FAILED 0x0200
#define CF_HELD 0x0100
#define CF_NETWORK_REACHED 0x0080
#define CF_ORIGINATED 0x0040
#define CF_QUEUED 0x0020
#define CF_RETRIEVED 0x0010
#define CF_SERVICE_INITIATED 0x0008
#define CF_TRANSFERRED 0x0004
typedef unsigned char CSTAFeatureFilter_t;
#define FF_CALL_INFORMATION 0x80
#define FF_DO_NOT_DISTURB 0x40
#define FF_FORWARDING 0x20
#define FF_MESSAGE_WAITING 0x10
// added for ECMA2
#define FF_AUTO_ANSWER 0x08
#define FF_MICROPHONE_MUTE 0x04
#define FF_SPEAKER_MUTE 0x02
#define FF_SPEAKER_VOLUME 0x01
// end of added ECMA2
typedef unsigned char CSTAAgentFilter_t;
#define AF_LOGGED_ON 0x80
#define AF_LOGGED_OFF 0x40
#define AF_NOT_READY 0x20
#define AF_READY 0x10
// modified ECMA2
#define AF_WORK_NOT_READY 0x08
#define AF_WORK_READY 0x04
#define AF_WORKING_AFTER_CALL 0x08
#define AF_BUSY 0x04
// end of modified ECMA2
typedef unsigned char CSTAMaintenanceFilter_t;
#define MF_BACK_IN_SERVICE 0x80
#define MF_OUT_OF_SERVICE 0x40
// added for ECMA2
typedef unsigned char CSTAVoiceUnitFilter_t;
#define VF_STOP 0x80
#define VF_PLAY 0x40
#define VF_SUSPEND_PLAY 0x20
#define VF_RECORD 0x10
#define VF_SUSPEND_RECORD 0x08
#define VF_REVIEW 0x04
#define VF_VOICE_ATTRIBUTE_CHANGE 0x02
// end of added for ECMA2
typedef struct CSTAMonitorFilter_t {
CSTACallFilter_t call;
CSTAFeatureFilter_t feature;
CSTAAgentFilter_t agent;
CSTAMaintenanceFilter_t maintenance;
long privateFilter;
} CSTAMonitorFilter_t;
// modified for ECMA2
typedef enum DeviceType_t {
DT_STATION = 0,
DT_LINE = 1,
DT_BUTTON = 2,
DT_ACD = 3,
DT_TRUNK = 4,
DT_OPERATOR = 5,
DT_OTHER = 6,
DT_STATION_GROUP = 16,
DT_LINE_GROUP = 17,
DT_BUTTON_GROUP = 18,
DT_ACD_GROUP = 19,
DT_TRUNK_GROUP = 20,
DT_OPERATOR_GROUP = 21,
DT_PARKING_DEVICE = 22,
DT_OTHER_GROUP = 255
} DeviceType_t;
typedef unsigned char DeviceClass_t;
#define DC_VOICE 0x80
#define DC_DATA 0x40
#define DC_IMAGE 0x20
#define DC_OTHER 0x10
// added for ECMA2
#define DC_AUDIO 0x08
typedef char setupValue_t[40];
typedef char setupValue_t2[129];
typedef struct DeviceInfo_t {
DeviceID_t deviceID;
DeviceType_t deviceType;
DeviceClass_t deviceClass;
}DeviceInfo_t;
typedef struct DeviceProfile_t {
DeviceClass_t deviceClass;
setupValue_t ISDNSetup;
}DeviceProfile_t;
typedef struct DeviceProfile_t2 {
DeviceClass_t deviceClass;
setupValue_t2 ISDNSetup;
}DeviceProfile_t2;
typedef struct CSTACallState_t {
_Int count;
LocalConnectionState_t FAR *state;
} CSTACallState_t;
typedef struct CSTASnapshotDeviceResponseInfo_t {
ConnectionID_t callIdentifier;
CSTACallState_t localCallState;
} CSTASnapshotDeviceResponseInfo_t;
typedef struct CSTASnapshotDeviceData_t {
_Int count;
CSTASnapshotDeviceResponseInfo_t FAR *info;
} CSTASnapshotDeviceData_t;
typedef struct CSTASnapshotCallResponseInfo_t {
SubjectDeviceID_t deviceOnCall;
ConnectionID_t callIdentifier;
LocalConnectionState_t localConnectionState;
} CSTASnapshotCallResponseInfo_t;
typedef struct CSTASnapshotCallData_t {
_Int count;
CSTASnapshotCallResponseInfo_t FAR *info;
} CSTASnapshotCallData_t;
typedef char AccountInfo_t[32];
typedef char AgentID_t[32];
typedef DeviceID_t AgentGroup_t;
typedef char AgentPassword_t[32];
typedef char AuthCode_t[32];
typedef enum ForwardingType_t {
FWD_IMMEDIATE = 0,
FWD_BUSY = 1,
FWD_NO_ANS = 2,
FWD_BUSY_INT = 3,
FWD_BUSY_EXT = 4,
FWD_NO_ANS_INT = 5,
FWD_NO_ANS_EXT = 6
} ForwardingType_t;
typedef struct ForwardingInfo_t {
ForwardingType_t forwardingType;
Boolean forwardingOn;
DeviceID_t forwardDN;
} ForwardingInfo_t;
typedef struct ListForwardParameters_t {
short count;
ForwardingInfo_t param[7];
} ListForwardParameters_t;
typedef enum SelectValue_t {
SV_NORMAL = 0,
SV_LEAST_COST = 1,
SV_EMERGENCY = 2,
SV_ACD = 3,
SV_USER_DEFINED = 4
} SelectValue_t;
typedef struct SetUpValues_t {
_Int length;
unsigned char FAR *value;
} SetUpValues_t;
typedef short RetryValue_t;
#define noListAvailable -1
#define noCountAvailable -2
typedef long RoutingCrossRefID_t;
typedef long RouteRegisterReqID_t;
typedef struct CSTAAlternateCall_t {
ConnectionID_t activeCall;
ConnectionID_t otherCall;
} CSTAAlternateCall_t;
typedef struct CSTAAlternateCallConfEvent_t {
Nulltype null;
} CSTAAlternateCallConfEvent_t;
typedef struct CSTAAnswerCall_t {
ConnectionID_t alertingCall;
} CSTAAnswerCall_t;
typedef struct CSTAAnswerCallConfEvent_t {
Nulltype null;
} CSTAAnswerCallConfEvent_t;
// Added for ECMA2
typedef struct CSTAAssociateData_t {
ConnectionID_t existingCall;
AccountInfo_t accountInfo;
AuthCode_t authCode;
CorrelatorData_t correlatorData;
PrivateData_t extensions;
}CSTAAssociateData_t;
typedef struct CSTAAssociateDataConfEvent_t {
Nulltype null;
}CSTAAssociateDataConfEvent_t;
// End Added
typedef enum Feature_t {
FT_CAMP_ON = 0,
FT_CALL_BACK = 1,
FT_INTRUDE = 2
} Feature_t;
typedef struct CSTACallCompletion_t {
Feature_t feature;
ConnectionID_t call;
} CSTACallCompletion_t;
typedef struct CSTACallCompletionConfEvent_t {
Nulltype null;
} CSTACallCompletionConfEvent_t;
typedef struct CSTAClearCall_t {
ConnectionID_t call;
} CSTAClearCall_t;
typedef struct CSTAClearCallConfEvent_t {
Nulltype null;
} CSTAClearCallConfEvent_t;
typedef struct CSTAClearConnection_t {
ConnectionID_t call;
} CSTAClearConnection_t;
// Added by G.L. 23 July 98
typedef struct CSTAClearConnection_t2 {
ConnectionID_t call;
PrivateData_t extensions;
} CSTAClearConnection_t2;
// End added
typedef struct CSTAClearConnectionConfEvent_t {
Nulltype null;
} CSTAClearConnectionConfEvent_t;
typedef struct CSTAConferenceCall_t {
ConnectionID_t heldCall;
ConnectionID_t activeCall;
} CSTAConferenceCall_t;
typedef struct CSTAConferenceCallConfEvent_t {
ConnectionID_t newCall;
ConnectionList_t connList;
} CSTAConferenceCallConfEvent_t;
typedef struct CSTAConsultationCall_t {
ConnectionID_t activeCall;
DeviceID_t calledDevice;
} CSTAConsultationCall_t;
// Added for Ecma2
typedef struct CSTAConsultationCall_t2 {
ConnectionID_t activeCall;
CalledDeviceID_t consultedDevice;
DeviceProfile_t deviceProfile;
AccountInfo_t accountCode;
AuthCode_t authCode;
CorrelatorData_t correlatorData;
PrivateData_t extensions;
} CSTAConsultationCall_t2;
// End Added
typedef struct CSTAConsultationCallConfEvent_t {
ConnectionID_t newCall;
} CSTAConsultationCallConfEvent_t;
typedef struct CSTADeflectCall_t {
ConnectionID_t deflectCall;
DeviceID_t calledDevice;
} CSTADeflectCall_t;
typedef struct CSTADeflectCall_t2 {
ConnectionID_t deflectCall;
DeviceID_t calledDevice;
PrivateData_t extensions;
} CSTADeflectCall_t2;
typedef struct CSTADeflectCallConfEvent_t {
Nulltype null;
} CSTADeflectCallConfEvent_t;
typedef struct CSTAParkCall_t {
ConnectionID_t callToPark;
SubjectDeviceID_t parkTo;
DeviceProfile_t parkTodeviceProfile;
CorrelatorData_t correlatorData;
PrivateData_t extensions;
} CSTAParkCall_t;
typedef struct CSTAParkCallConfEvent_t {
Nulltype null;
} CSTAParkCallConfEvent_t;
typedef struct CSTAPickupCall_t {
ConnectionID_t deflectCall;
DeviceID_t calledDevice;
} CSTAPickupCall_t;
typedef struct CSTAPickupCallConfEvent_t {
Nulltype null;
} CSTAPickupCallConfEvent_t;
typedef struct CSTAGroupPickupCall_t {
ConnectionID_t deflectCall;
DeviceID_t pickupDevice;
} CSTAGroupPickupCall_t;
typedef struct CSTAGroupPickupCallConfEvent_t {
Nulltype null;
} CSTAGroupPickupCallConfEvent_t;
typedef struct CSTAHoldCall_t {
ConnectionID_t activeCall;
Boolean reservation;
} CSTAHoldCall_t;
typedef struct CSTAHoldCallConfEvent_t {
Nulltype null;
} CSTAHoldCallConfEvent_t;
typedef struct CSTAMakeCall_t {
DeviceID_t callingDevice;
DeviceID_t calledDevice;
} CSTAMakeCall_t;
typedef struct CSTAMakeCall_t2 {
DeviceID_t callingDevice;
DeviceID_t calledDevice;
// Added for Ecma2
CorrelatorData_t correlatorData;
PrivateData_t extensions;
// end Added
} CSTAMakeCall_t2;
typedef struct CSTAMakeCallConfEvent_t {
ConnectionID_t newCall;
} CSTAMakeCallConfEvent_t;
typedef enum AllocationState_t {
AS_CALL_DELIVERED = 0,
AS_CALL_ESTABLISHED = 1
} AllocationState_t;
typedef struct CSTAMakePredictiveCall_t {
DeviceID_t callingDevice;
DeviceID_t calledDevice;
AllocationState_t allocationState;
} CSTAMakePredictiveCall_t;
typedef struct CSTAMakePredictiveCallConfEvent_t {
ConnectionID_t newCall;
} CSTAMakePredictiveCallConfEvent_t;
typedef struct CSTAQueryMwi_t {
DeviceID_t device;
} CSTAQueryMwi_t;
typedef struct CSTAQueryMwiConfEvent_t {
Boolean messages;
} CSTAQueryMwiConfEvent_t;
typedef struct CSTAQueryDnd_t {
DeviceID_t device;
} CSTAQueryDnd_t;
typedef struct CSTAQueryDndConfEvent_t {
Boolean doNotDisturb;
} CSTAQueryDndConfEvent_t;
typedef struct CSTAQueryFwd_t {
DeviceID_t device;
} CSTAQueryFwd_t;
typedef struct CSTAQueryFwdConfEvent_t {
ListForwardParameters_t forward;
} CSTAQueryFwdConfEvent_t;
typedef struct CSTAQueryAgentState_t {
DeviceID_t device;
} CSTAQueryAgentState_t;
typedef enum AgentState_t {
AG_NOT_READY = 0,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -