为什么我总是得到FailureResponseException? [英] Why me always get a FailureResponseException ?

查看:158
本文介绍了为什么我总是得到FailureResponseException?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我运行名为'InstantMessagingCall'的示例应用程序时,

When i run the sample application named 'InstantMessagingCall' ,

  private void CallEstablishCompleted(IAsyncResult result)
        {
            InstantMessagingCall instantMessagingCall = result.AsyncState as InstantMessagingCall;
            Exception ex = null;
            try
            {
                instantMessagingCall.EndEstablish(result);
                Console.WriteLine("The call is now in the established state.");
            }
            catch (OperationFailureException opFailEx)
            {
                // OperationFailureException: Indicates failure to connect the 
                // call to the remote party.
                // TODO (Left to the reader): Write real error handling code.
                ex = opFailEx;
            }
            catch (RealTimeException rte)
            {
                // Other errors may cause other RealTimeExceptions to be thrown.
                // TODO (Left to the reader): Write real error handling code.
                ex = rte;
            }
            finally
            {
                if (ex != null)
                {
                    // If the action threw an exception, terminate the sample, 
                    // and print the exception to the console.
                    // TODO (Left to the reader): Write real error handling code.
                    Console.WriteLine(ex.ToString());
                    Console.WriteLine("Shutting down platform due to error");
                    _helper.ShutdownPlatform();
                }
            }
        }


当应用程序以白线下划线运行时,我会收到此异常 ,原因是"客户端没有完全登录导致传入的会话被拒绝"<$ p>

when the app run at the line whit underline ,i will get this exception ,the reason is "Client is not completely signed-in causing incoming sessions to be rejected"

why

推荐答案

确保你在开始接听任何来电之前已经登录
Make sure that you are already signed in before start receiving any incoming calls


这篇关于为什么我总是得到FailureResponseException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆