Ejemplo n.º 1
0
        /// 厂家错误信息
        /// <summary>
        /// 厂家错误信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AxUniSoftPhone_OnError(object sender, AxUniSoftPhoneControl.IUniSoftPhoneEvents_OnErrorEvent e)
        {
            switch (e.errDesc)
            {
            case "Err_IContact_NoAgentID":
                SetErrorZText("登录人工号为空");
                break;

            case "Err_IContact_AgentIDInService":
                SetErrorZText("登录人工号已被占用");
                break;

            case "Err_IContact_AgentDNNotExist":
                SetErrorZText("分机号码不存在");
                break;

            case "Err_IContact_AgentDNInService":
                SetErrorZText("分机号码已被占用");
                break;

            case "Err_IContact_SkillDescError":
                SetErrorZText("登录人技能组信息错误");
                break;

            case "Err_IContact_SkillNotExist":
                SetErrorZText("登录人技能组不存在");
                break;

            case "Err_IContact_AgentBusy":
                SetErrorZText("登录人状态不空闲");
                break;

            case "Err_IContact_DeviceBusy":
                SetErrorZText("目标设备正忙");
                break;

            case "Err_IContact_AgentTimerExpired":
                SetErrorZText("访问合力系统连接超时");
                break;

            case "Err_IContact_InvalidAgentID":
                SetErrorZText("登录人工号无效");
                break;

            default:
                SetErrorZText(e.errDesc);
                break;
            }
            SetButtonEnable(true);
        }
Ejemplo n.º 2
0
        /// 软电话报告错误信息_回调事件
        /// <summary>
        /// 软电话报告错误信息_回调事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e">CTIErrorCode、ErrorCode、ErrorDesc</param>
        private void axUniSoftPhone1_OnError(object sender, AxUniSoftPhoneControl.IUniSoftPhoneEvents_OnErrorEvent e)
        {
            string message = string.Format("{3}\r\nCTIErrorCode:{0}\r\nErrorCode:{1}\r\nErrorDesc:{2}", e.cTIErrorCode, e.errCode, e.errDesc, "错误 OnError:");

            LogMessage(message);
        }