示例#1
0
        void RTCClient_entstatus(RTCAudio sender, string status)
        {
            try
            {
                switch (status)
                {
                case "InPorgress":
                    entstatus(sender.ChannelId, status);
                    break;

                case "Connected":
                    entstatus(sender.ChannelId, status);
                    break;

                case "Disconnected":
                    entstatus(sender.ChannelId, status);
                    break;

                case "Incoming":
                    entstatus(sender.ChannelId, status);
                    break;

                case "Answering":
                    entstatus(sender.ChannelId, status);
                    break;

                case "Hold":
                    entstatus(sender.ChannelId, status);
                    break;
                }
            }
            catch (Exception ex)
            {
                ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCClient.cs--:--RTCClient_entstatus()--");
                ClsException.LogError(ex);
                ClsException.WriteToErrorLogFile(ex);
            }
        }
示例#2
0
        void RTCClient_entstatus(RTCAudio sender, string status)
        {
            try
            {
                switch (status)
                {
                    case "InPorgress":
                        entstatus(sender.ChannelId, status);
                        break;

                    case "Connected":
                        entstatus(sender.ChannelId, status);
                        break;

                    case "Disconnected":
                        entstatus(sender.ChannelId, status);
                        break;

                    case "Incoming":
                        entstatus(sender.ChannelId, status);
                        break;

                    case "Answering":
                        entstatus(sender.ChannelId, status);
                        break;

                    case "Hold":
                        entstatus(sender.ChannelId, status);
                        break;

                }
            }
            catch (Exception ex)
            {
                ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCClient.cs--:--RTCClient_entstatus()--");
                ClsException.LogError(ex);
                ClsException.WriteToErrorLogFile(ex);
            }
		  }