public static int ConvertConDeviceType(ConDeviceType devicetype) { switch (devicetype) { case ConDeviceType.未定义: return(axUniSoftPhone.ConDeviceType_MODE_NONE); case ConDeviceType.分机号: return(axUniSoftPhone.ConDeviceType_MODE_DN); case ConDeviceType.座席工号: return(axUniSoftPhone.ConDeviceType_MODE_AGENTID); case ConDeviceType.技能组: return(axUniSoftPhone.ConDeviceType_MODE_SKILL); case ConDeviceType.外线号码: return(axUniSoftPhone.ConDeviceType_MODE_PSTN); case ConDeviceType.IVR: return(axUniSoftPhone.ConDeviceType_MODE_IVR); case ConDeviceType.线路号: return(axUniSoftPhone.ConDeviceType_MODE_LINE); default: return(axUniSoftPhone.ConDeviceType_MODE_NONE); } }
/// <summary> /// 强拆 /// </summary> /// <returns></returns> public bool ListenToQCai(ConDeviceType devicetype, string DestNo) { axUniSoftPhone.DestDeviceType = ConvertConDeviceType(devicetype); axUniSoftPhone.DestNo = DestNo; bool flag = axUniSoftPhone.actDisconnectCall(); Loger.Log4Net.Info("[HollyContactHelper]用户操作==强拆(" + devicetype + "," + DestNo + ")->" + flag); return(flag); }
/// <summary> /// 强制签出 /// </summary> /// <returns></returns> public bool ListenToQZQC(ConDeviceType devicetype, string DestNo) { axUniSoftPhone.DestDeviceType = ConvertConDeviceType(devicetype); axUniSoftPhone.DestNo = DestNo; bool flag = axUniSoftPhone.actForceLogout(); Loger.Log4Net.Info("[HollyContactHelper]用户操作==强制签出(" + devicetype + "," + DestNo + ")->" + flag); return(flag); }
/// 开始会议 /// <summary> /// 开始会议 /// </summary> /// <returns></returns> public bool ConferenceStart(ConDeviceType devicetype, string DestNo) { axUniSoftPhone.DestDeviceType = ConvertConDeviceType(devicetype); axUniSoftPhone.DestNo = DestNo; bool flag = axUniSoftPhone.actConference(); Loger.Log4Net.Info("[HollyContactHelper]用户操作==开始会议(" + devicetype + "," + DestNo + ")->" + flag); return(flag); }