使用手动配置平台时建立应用程序端点时出现未知错误 [英] unknown error when establish application endpoint while using a manually provisioned platform

查看:99
本文介绍了使用手动配置平台时建立应用程序端点时出现未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我真的希望我能在这里得到一些帮助,因为我已经花了几天时间没有运气。我有一个非常简单的应用程序,当我在Lync Server机器上本地运行时,它实际上运行得很好。应用程序创建一个手动配置的
平台,并在endPlatform事件上创建一个应用程序端点,然后它在端点上建立一个开始(并且还注册IM传入调用)。当我在删除服务器上运行它时,它会失败;当在Lync服务器上本地运行它运行正常,
所以我很确定我的所有配置值都是正确的。我在删除机器上安装了一个证书,并将其传递给ServerPlatformSettings,这似乎有效。当我们在应用程序端点上调用EndEstablish时,我看到了错误。正如我所说,
我非常确定我已正确设置证书。远程计算机是VM,它是Lync Server计算机所在域的成员。我应该检查一下以帮助我解决这个问题?


另请注意,我尝试使用自动配置的应用程序运行此应用程序,但我在尝试执行此操作时遇到异常;  endEstablish平台。仍然试图追踪这一点,但是这个
出现的一个问题是,我确实需要一个本地复制的商店才能在我的远程机器上"运行"吗?我可能会对此错误发表另一篇文章,尽管它可能是导致手动和自动配置平台的同一中心问题。


以下是例外和代码(其中大部分内容)从UCMA样本中取出。


非常感谢您的帮助!


Mike Castillo


 


例外:



与ID urn配置应用程序相关联的协作平台:a


应用:ucdev-speechserver已启动


'p> RealTimeException:Microsoft.Rtc.Signaling.OperationFailureException:本GetInb


andDataAsyncResult操作已经失败,消息:"数据会话subscrip


服务器失败。"请将InnerException和FailureReason属性视为


以及其他信息的日志。   ---> FaultCode =


Microsoft.Rtc.Signaling.PublishSubscribeException:数据会话订阅


到服务器失败。 ---> ErrorCode = -2146233088


FailureReason = RemoteDisconnected


LocalEndpoint = 192.168.109.128:49315


RemoteEndpoint = 10.3 .1.201:5061


RemoteCertificate = [Subject]


   CN = ucdev2-ls-se1.gsiucdev2.com,OU = Gold系统,O ="Gold Systems,Inc",L = Boul


der,S = CO,C = US


 


[发行人]


   CN = gsiucdev2-UCDEV2-DC1-CA,DC = gsiucdev2,DC = com


 


[序列号]


   618735C5000000000003


  ;


[不在之前]


   12/22/2010 4:07:55 PM


 


[Not After]


   12/21/2012 4:07:55 PM


 


[指纹]


   DD8653009D01E254CFC297EA42324A700A6E2EB5


 


Microsoft.Rtc.Signaling.TlsFailureException:未知错误(0x80131500)---> Micr


osoft.Rtc.Internal.Sip.RemoteDisconnectedException:在outb时断开对等


正在进行功能协商---> System.Net.Sockets.SocketExce


ption:远程主机强行关闭现有连接


  在System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)


  在Microsoft.Rtc.Internal.Sip.TcpTransport.OnReceived(Object arg)


   ---内部异常堆栈跟踪结束---


 


---内部异常堆栈跟踪结束---


在System.Environment.get_StackTrace检测到()


  在Microsoft.Rtc.Signaling.Helper.get_StackTrace()


   at Microsoft.Rtc.Signaling.TlsFailureException..ctor(String message,Exceptio


n innerException,Int32 errorCode,TlsFailureReason tlsFailureReason,IPEndPoint


  localEndpoint,IPEndPoint remoteEndpoint,X509Certificate remoteCertificate)


   at Microsoft.Rtc.Signaling.TlsExceptionExtensions.CreateNewTlsFailureExceptio


n(TLSException tlsException,String message,Int32 errorCode,TlsFailureReason t


lsFailureReason)


  在Microsoft.Rtc.Signaling.Helper.MapToTlsFailureException(TLSException除外



   at Microsoft.Rtc.Signaling.ExceptionUtilities.TryMapS4Exception(Exception s4E


xception,SecurityAssociationContext securityContext,Boolean isSipEndpoint,Str


ing traceId,Object parentObject,对象childObject,RealTimeException& ex)


  在Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompl


eted(IAsyncResult result)


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex,Boolean synchro


nousCompletion)


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)


  在Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumer


able`1结果,RealTimeException异常)


  在Microsoft.Rtc.Signaling.RealTimeConnection。< .ctor> b__0(SipConnection sende


r,对象原因)


  在Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reas


on)


  在Microsoft.Rtc.Internal.Sip.IOWorkItem1Arg.Execute()


   at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallbac


k(对象队列)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre


adPoolWaitCallback tpWaitCallBack)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(对象状态)


&NBSP;


&NBSP;


&NBSP ;


---内部异常堆栈跟踪结束---


  在Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()


  在Microsoft.Rtc.Signaling.Helper.EndAsyncOperation [T](对象所有者,IAsyncRe


结果)


  在Microsoft.Rtc.Signaling.Helper.EndAsyncOperation [T](对象所有者,IAsyncRe


sult结果,字符串operationId)


  在Microsoft.Rtc.Collaboration.Presence.ProvisioningQuery.EndQuery(IAsyncResu


lt result)


  在Microsoft.Rtc.Collaboration.GetInbandDataAsyncResult.InbandQueryCompleted(


IAsyncResult结果)


在System.Environment.get_StackTrace()检测到


   at Microsoft.Rtc.Signaling.FailureResponseException..ctor(String message,Exc


eption innerException,SipResponseData responseData)


   at Microsoft.Rtc.Signaling.PublishSubscribeException..ctor(String message,Ex


ception innerException)


   at Microsoft.Rtc.Signaling.SipSubscription.ProcessError(Exception exception)


   at Microsoft.Rtc.Signaling.SipSubscribeTransactionAsyncResult.ProcessError(Re


alTimeException exception,SipResponseData responseDataIfAny)


   at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ProcessError(RealTimeE


xception exception)


  在Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompl


eted(IAsyncResult result)


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex,Boolean synchro


nousCompletion)


  在Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)


  在Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumer


able`1结果,RealTimeException异常)


  在Microsoft.Rtc.Signaling.RealTimeConnection。< .ctor> b__0(SipConnection sende


r,对象原因)


  在Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reas


on)


  在Microsoft.Rtc.Internal.Sip.IOWorkItem1Arg.Execute()


   at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallbac


k(对象队列)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre


adPoolWaitCallback tpWaitCallBack)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(对象状态)


&NBSP;


&NBSP;


&NBSP ;


 


---内部异常堆栈跟踪结束---


  &NBSP;在Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()


  在Microsoft.Rtc.Signaling.Helper.EndAsyncOperation [T](对象所有者,IAsyncRe


结果)


  在Microsoft.Rtc.Collaboration.LocalEndpoint.EndEstablish(IAsyncResult result



  在Microsoft.Rtc.Collaboration.Sample.AutoProvisioning.UCMASampleAutoProvisio


ning.EndEndpointEstablish(IAsyncResult ar)in C:\Program Files \ MicrosoftMicrosoft UCMA 3。


0 \ SDK \Core \Sample Applications \QuickStarts \AutoProvisioning\Autoprovisioning.cs:


第254行


在System.Environment.get_StackTrace()中检测到


   at Microsoft.Rtc.Signaling.OperationFailureException..ctor(String message,Ex


ception innerException)


  在Microsoft.Rtc.Collaboration.GetInbandDataAsyncResult.InbandQueryCompleted(


IAsyncResult结果)


  在Microsoft.Rtc.Signaling.SipAsyncResult`1.MakeCallback(对象状态)


  在Microsoft.Rtc.Signaling.SipAsyncResult`1.Complete(TEx ex,布尔同步


ousCompletion)


  在Microsoft.Rtc.Signaling.SipAsyncResult`1.Complete(TEx ex)


  在Microsoft.Rtc.Collaboration.Presence.ProvisioningQueryAsyncResult.Subscrib


eCompleted(IAsyncResult result)


  在Microsoft.Rtc.Signaling.CompletionCallbackWorkItem.Microsoft.Rtc.Signaling


.IWorkitem.Process()


  在Microsoft.Rtc.Signaling.WorkitemQueue.ProcessItems()


  在Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessing()


  在Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessingCallback(Obje


ct state)


  在Microsoft.Rtc.Signaling.QueueWorkItemState.ExecuteWrappedMethod(WaitCallba


ck方法,对象状态)


  在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,C


ontextCallback回调,对象状态)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre


adPoolWaitCallback tpWaitCallBack)


  在System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(对象状态)


&NBSP;


FailureReason =未知



代码:



var certToUse = UCMASampleHelper.GetLocalCertificate(" UCDEV2-LS-SE1-1");


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   //没有收到任何证据,所以请使用不通过证书的构造函数


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   ServerPlatformSettings settings = null;


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   if(certToUse == null)


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   {


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   settings = new ServerPlatformSettings(" SpeechServer"," ucdev2-ls-se1.gsiucdev2.com",10607,


                " sip:ucdev2-ls-se1.gsiucdev2.com@gsiucdev2.com; gruu; opaque = srvr:ucdev-speechserver:DtPG12QtslKKk5EoUH-UJQAA" );


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;  }


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   else


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   {


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   settings = new ServerPlatformSettings(" SpeechServer"," ucdev2-ls-se1.gsiucdev2.com",10607,


                " sip:ucdev2-ls-se1.gsiucdev2.com@gsiucdev2.com; gruu; opaque = srvr:ucdev-speechserver:DtPG12QtslKKk5EoUH-UJQAA" ,certToUse);


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;  }



 


...


 



collabPlatform.EndStartup(ar);


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; Console.WriteLine(QUOT;在与"所供应的应用程序相关联的协作平台;


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ; +"ID {0}已启动","_ appID";


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   ApplicationEndpointSettings appEndpointSettings = new ApplicationEndpointSettings(" sip:V7SS-WorkflowDemo@gsiucdev2.com"," ucdev2-ls-se1.gsiucdev2.com",5061);


  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   appEndpointSettings.Presence.InitialPresenceState = PresenceState.PersistentOnline;


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   appEndpointSettings.Presence.PresentityType =" automaton";


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   appEndpointSettings.Presence.Description =" AlwaysOnBot";


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   ApplicationEndpoint _applEndpoint = new ApplicationEndpoint(collabPlatform,appEndpointSettings);


   &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   //注册来电(audiovideo,im或两者,具体取决于应用


          _applEndpoint .RegisterForIncomingCall< InstantMessagingCall>(InstantMessagingCallReceived);


          _applEndpoint.BeginEstablish(EndEndpointEstablish,_applEndpoint);



 


...


 


此处抛出异常:



LocalEndpoint currentEndpoint = ar.AsyncState as LocalEndpoint;


        try


        {


&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; currentEndpoint.EndEstablish(AR);


&NBSP;&NBSP;&NBSP;&NBSP ;   }


解决方案

是第二台机器,这是在T中失败了为联系对象配置的生锈应用程序池?


Hello,

I really hope I get some help here because I have been spending a few days on this with no luck. I have a very simple application that actually runs perfectly when I run it locally on the Lync Server machine. The application creates a manually provisioned platform, and on the endPlatform event, creates an application endpoint, then it does a begin establish on the endpoint (and also registers for IM incoming calls). When I run this on a remove server, it fails; when run locally on the Lync server it runs fine, so I am pretty sure all my configuration values are correct. I have installed a cert on the remove machine and pass that to the ServerPlatformSettings and that seems to work. I see the error when we call EndEstablish on the application endpoint. As I said, I am pretty sure I have the cert set up correctly. the remote machine is a VM, and it is a member of the same domain as the Lync Server machine. What should I check into to help me nail this down?

Note also that I tried to run this application using a auto provisioned application, but I get an exception while trying to do that on the endEstablish of the platform. Still trying to track that down, but one question that arises on this  is do I indeed need a local replicated store to be 'running' on my remote machine? I'll likely do another post on this error although it could be the same central problem leading to both the manual and auto provisioned platforms.

Below is the exception and the code (much of which was taken out of UCMA samples).

Thanks very much for any help!

Mike Castillo

 

Exception:

Collaboration platform associated with the provisioned application with ID urn:a

pplication:ucdev-speechserver has been started

RealTimeException : Microsoft.Rtc.Signaling.OperationFailureException:The GetInb

andDataAsyncResult operation has failed with message: "The data session subscrip

tion to server failed.". See the InnerException and FailureReason properties as

well as the logs for additional information.  ---> FaultCode=

Microsoft.Rtc.Signaling.PublishSubscribeException:The data session subscription

to server failed. ---> ErrorCode=-2146233088

FailureReason=RemoteDisconnected

LocalEndpoint=192.168.109.128:49315

RemoteEndpoint=10.3.1.201:5061

RemoteCertificate=[Subject]

  CN=ucdev2-ls-se1.gsiucdev2.com, OU=Gold Systems, O="Gold Systems, Inc", L=Boul

der, S=CO, C=US

 

[Issuer]

  CN=gsiucdev2-UCDEV2-DC1-CA, DC=gsiucdev2, DC=com

 

[Serial Number]

  618735C5000000000003

 

[Not Before]

  12/22/2010 4:07:55 PM

 

[Not After]

  12/21/2012 4:07:55 PM

 

[Thumbprint]

  DD8653009D01E254CFC297EA42324A700A6E2EB5

 

Microsoft.Rtc.Signaling.TlsFailureException:Unknown error (0x80131500) ---> Micr

osoft.Rtc.Internal.Sip.RemoteDisconnectedException: Peer disconnected while outb

ound capabilities negotiation was in progress ---> System.Net.Sockets.SocketExce

ption: An existing connection was forcibly closed by the remote host

   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)

   at Microsoft.Rtc.Internal.Sip.TcpTransport.OnReceived(Object arg)

   --- End of inner exception stack trace ---

 

--- End of inner exception stack trace ---

Detected at System.Environment.get_StackTrace()

   at Microsoft.Rtc.Signaling.Helper.get_StackTrace()

   at Microsoft.Rtc.Signaling.TlsFailureException..ctor(String message, Exceptio

n innerException, Int32 errorCode, TlsFailureReason tlsFailureReason, IPEndPoint

 localEndpoint, IPEndPoint remoteEndpoint, X509Certificate remoteCertificate)

   at Microsoft.Rtc.Signaling.TlsExceptionExtensions.CreateNewTlsFailureExceptio

n(TLSException tlsException, String message, Int32 errorCode, TlsFailureReason t

lsFailureReason)

   at Microsoft.Rtc.Signaling.Helper.MapToTlsFailureException(TLSException excep

tion)

   at Microsoft.Rtc.Signaling.ExceptionUtilities.TryMapS4Exception(Exception s4E

xception, SecurityAssociationContext securityContext, Boolean isSipEndpoint, Str

ing traceId, Object parentObject, Object childObject, RealTimeException& ex)

   at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompl

eted(IAsyncResult result)

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex, Boolean synchro

nousCompletion)

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)

   at Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumer

able`1 results, RealTimeException exception)

   at Microsoft.Rtc.Signaling.RealTimeConnection.<.ctor>b__0(SipConnection sende

r, Object reason)

   at Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reas

on)

   at Microsoft.Rtc.Internal.Sip.IOWorkItem1Arg.Execute()

   at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallbac

k(Object queue)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre

adPoolWaitCallback tpWaitCallBack)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

 

 

 

--- End of inner exception stack trace ---

   at Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()

   at Microsoft.Rtc.Signaling.Helper.EndAsyncOperation[T](Object owner, IAsyncRe

sult result)

   at Microsoft.Rtc.Signaling.Helper.EndAsyncOperation[T](Object owner, IAsyncRe

sult result, String operationId)

   at Microsoft.Rtc.Collaboration.Presence.ProvisioningQuery.EndQuery(IAsyncResu

lt result)

   at Microsoft.Rtc.Collaboration.GetInbandDataAsyncResult.InbandQueryCompleted(

IAsyncResult result)

Detected at System.Environment.get_StackTrace()

   at Microsoft.Rtc.Signaling.FailureResponseException..ctor(String message, Exc

eption innerException, SipResponseData responseData)

   at Microsoft.Rtc.Signaling.PublishSubscribeException..ctor(String message, Ex

ception innerException)

   at Microsoft.Rtc.Signaling.SipSubscription.ProcessError(Exception exception)

   at Microsoft.Rtc.Signaling.SipSubscribeTransactionAsyncResult.ProcessError(Re

alTimeException exception, SipResponseData responseDataIfAny)

   at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ProcessError(RealTimeE

xception exception)

   at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompl

eted(IAsyncResult result)

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex, Boolean synchro

nousCompletion)

   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)

   at Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumer

able`1 results, RealTimeException exception)

   at Microsoft.Rtc.Signaling.RealTimeConnection.<.ctor>b__0(SipConnection sende

r, Object reason)

   at Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reas

on)

   at Microsoft.Rtc.Internal.Sip.IOWorkItem1Arg.Execute()

   at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallbac

k(Object queue)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre

adPoolWaitCallback tpWaitCallBack)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

 

 

 

 

--- End of inner exception stack trace ---

   at Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()

   at Microsoft.Rtc.Signaling.Helper.EndAsyncOperation[T](Object owner, IAsyncRe

sult result)

   at Microsoft.Rtc.Collaboration.LocalEndpoint.EndEstablish(IAsyncResult result

)

   at Microsoft.Rtc.Collaboration.Sample.AutoProvisioning.UCMASampleAutoProvisio

ning.EndEndpointEstablish(IAsyncResult ar) in C:\Program Files\Microsoft UCMA 3.

0\SDK\Core\Sample Applications\QuickStarts\AutoProvisioning\Autoprovisioning.cs:

line 254

Detected at System.Environment.get_StackTrace()

   at Microsoft.Rtc.Signaling.OperationFailureException..ctor(String message, Ex

ception innerException)

   at Microsoft.Rtc.Collaboration.GetInbandDataAsyncResult.InbandQueryCompleted(

IAsyncResult result)

   at Microsoft.Rtc.Signaling.SipAsyncResult`1.MakeCallback(Object state)

   at Microsoft.Rtc.Signaling.SipAsyncResult`1.Complete(TEx ex, Boolean synchron

ousCompletion)

   at Microsoft.Rtc.Signaling.SipAsyncResult`1.Complete(TEx ex)

   at Microsoft.Rtc.Collaboration.Presence.ProvisioningQueryAsyncResult.Subscrib

eCompleted(IAsyncResult result)

   at Microsoft.Rtc.Signaling.CompletionCallbackWorkItem.Microsoft.Rtc.Signaling

.IWorkitem.Process()

   at Microsoft.Rtc.Signaling.WorkitemQueue.ProcessItems()

   at Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessing()

   at Microsoft.Rtc.Signaling.SerializationQueue`1.ResumeProcessingCallback(Obje

ct state)

   at Microsoft.Rtc.Signaling.QueueWorkItemState.ExecuteWrappedMethod(WaitCallba

ck method, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C

ontextCallback callback, Object state)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_Thre

adPoolWaitCallback tpWaitCallBack)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

 

FailureReason = Unknown

Code:

var certToUse = UCMASampleHelper.GetLocalCertificate("UCDEV2-LS-SE1-1");

                    // not getting any serts back here so use constructor that does not pass certs

                    ServerPlatformSettings settings = null;

                    if (certToUse == null)

                    {

                        settings = new ServerPlatformSettings("SpeechServer", "ucdev2-ls-se1.gsiucdev2.com", 10607,

                            "sip:ucdev2-ls-se1.gsiucdev2.com@gsiucdev2.com;gruu;opaque=srvr:ucdev-speechserver:DtPG12QtslKKk5EoUH-UJQAA");

                    }

                    else

                    {

                        settings = new ServerPlatformSettings("SpeechServer", "ucdev2-ls-se1.gsiucdev2.com", 10607,

                            "sip:ucdev2-ls-se1.gsiucdev2.com@gsiucdev2.com;gruu;opaque=srvr:ucdev-speechserver:DtPG12QtslKKk5EoUH-UJQAA", certToUse);

                    }

 

...

 

collabPlatform.EndStartup(ar);

                Console.WriteLine("Collaboration platform associated with the provisioned application with "

                    + "ID {0} has been started", _appID);

                ApplicationEndpointSettings appEndpointSettings = new ApplicationEndpointSettings("sip:V7SS-WorkflowDemo@gsiucdev2.com", "ucdev2-ls-se1.gsiucdev2.com", 5061);

                appEndpointSettings.Presence.InitialPresenceState = PresenceState.PersistentOnline;

                appEndpointSettings.Presence.PresentityType = "automaton";

                appEndpointSettings.Presence.Description = "AlwaysOnBot";

                ApplicationEndpoint _applEndpoint = new ApplicationEndpoint(collabPlatform, appEndpointSettings);

                // register for incoming calls (either audiovideo, im or both, depending on the app

                _applEndpoint.RegisterForIncomingCall<InstantMessagingCall>(InstantMessagingCallReceived);

                _applEndpoint.BeginEstablish(EndEndpointEstablish, _applEndpoint);

 

...

 

Throws exception here:

LocalEndpoint currentEndpoint = ar.AsyncState as LocalEndpoint;

            try

            {

                currentEndpoint.EndEstablish(ar);

            }

解决方案

Is the 2nd machine, where this fails, in the Trusted Application pool that the contact object is configured for?


这篇关于使用手动配置平台时建立应用程序端点时出现未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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