示例#1
0
 public MakeCallEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.makeCall;
     Att  = a2.makeCall;
 }
示例#2
0
        protected void Cstaconfirmation(CstaConfirmationEvent data, ATTEvent_t attPd, eventTypeCSTA eventType)
        {
            if (eventType == eventTypeCSTA.CSTA_UNIVERSAL_FAILURE_CONF)
            {
                CbTaskNew.SetError(data.invokeID, data.universalFailure.error);
                return;
            }
            object ret;

            switch (eventType)
            {
            case eventTypeCSTA.CSTA_QUERY_DEVICE_INFO_CONF:
                ret = new QueryDeviceInfoReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_MAKE_CALL_CONF:
                ret = new MakeCallEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_CONSULTATION_CALL_CONF:
                ret = new ConsultationCallEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_MAKE_PREDICTIVE_CALL_CONF:
                ret = new MakePredictiveCallEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_TRANSFER_CALL_CONF:
                ret = new TransferCallEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_QUERY_AGENT_STATE_CONF:
                ret = new QueryAgentStateEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_QUERY_LAST_NUMBER_CONF:
                ret = new QueryLastNumberEventReturn(data);
                break;

            case eventTypeCSTA.CSTA_MONITOR_CONF:
                ret = new SetupMonitorEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_CHANGE_MONITOR_FILTER_CONF:
                ret = new ChangeMonitorFilterEventReturn(data);
                break;

            case eventTypeCSTA.CSTA_SNAPSHOT_DEVICE_CONF:
                ret = new SnapshotDeviceEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_SNAPSHOT_CALL_CONF:
                ret = new SnapshotCallEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_QUERY_CALL_MONITOR_CONF:
                ret = new QueryCallMonitorEventReturn(data);
                break;

            case eventTypeCSTA.CSTA_GET_DEVICE_LIST_CONF:
                ret = new GetDeviceListEventReturn(data);
                break;

            case eventTypeCSTA.CSTA_GETAPI_CAPS_CONF:
                ret = new ApiCapsEventReturn(data, attPd);
                break;

            case eventTypeCSTA.CSTA_ESCAPE_SVC_CONF:
                switch (attPd.eventType)
                {
                case TypeATTEvent.ATTQueryUcidConfEvent_t_PDU:
                    ret = new QueryUcidEventReturn(attPd);
                    break;

                case TypeATTEvent.ATTQueryAcdSplitConfEvent_t_PDU:
                    ret = new QueryAcdSplitEventReturn(attPd);
                    break;

                case TypeATTEvent.ATTQueryAgentLoginConfEvent_t_PDU:
                    ret = new QueryAgentLoginEventReturn(attPd);
                    var task = CbTaskNew.GeTask(data.invokeID);
                    if (task != null)
                    {
                        CbTaskForToPartNew.Add(((QueryAgentLoginEventReturn)ret).Att.privEventCrossRefID, task);
                    }
                    break;

                default:
                    ret = new NullTsapiReturn();
                    break;
                }
                break;

            default:
                ret = new NullTsapiReturn();
                break;
            }

            CbTaskNew.Set(data.invokeID, ret);
        }
示例#3
0
 public QueryDeviceInfoReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.queryDeviceInfo;
     Att  = a2.queryDeviceInfo;
 }
示例#4
0
 public ConferenceCallEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.conferenceCall;
     Att  = a2.conferenceCall;
 }
示例#5
0
 public SetupMonitorEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.monitorStart;
     Att  = a2.monitorStart;
 }
示例#6
0
 public SnapshotDeviceEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.snapshotDevice;
     Att  = a2.snapshotDevice;
 }
示例#7
0
 public GetDeviceListEventReturn(CstaConfirmationEvent a1)
 {
     Csta = a1.getDeviceList;
 }
示例#8
0
 public ApiCapsEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.getAPICaps;
     Att  = a2.getAPICaps;
 }
示例#9
0
 public SnapshotCallEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.snapshotCall;
     Att  = a2.snapshotCallConf;
 }
示例#10
0
 public QueryCallMonitorEventReturn(CstaConfirmationEvent a1)
 {
     Csta = a1.queryCallMonitor;
 }
示例#11
0
 public ChangeMonitorFilterEventReturn(CstaConfirmationEvent a1)
 {
     Csta = a1.changeMonitorFilter;
 }
示例#12
0
 public QueryLastNumberEventReturn(CstaConfirmationEvent a1)
 {
     Csta = a1.queryLastNumber;
 }
示例#13
0
 public QueryAgentStateEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.queryAgentState;
     Att  = a2.queryAgentState;
 }
示例#14
0
 public QueryMsgWaitingEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.queryMwi;
     Att  = a2.queryMwi;
 }
示例#15
0
        /*   [DataMember]
         * public CSTATransferCallConfEvent_t Csta;
         * [DataMember]
         * public ATTTransferCallConfEvent_t Att;*/

        public TransferCallEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
        {
            // Csta = a1.transferCall;
            //Att = a2.transferCall;
        }