Exemplo n.º 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;

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

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

                case "RegistrationError":
                    entstatus(sender.ChannelId, status);
                    break;
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RTCClient_entStatus()", "Audio\\Audio.Business\\RTCClient.cs");
            }
        }
Exemplo n.º 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;

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

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

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

                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "RTCClient_entStatus()", "Audio\\Audio.Business\\RTCClient.cs");
            }
        }