我使用此方法使用UCMA
拨打电话,但它给了我一个例外
参数异常未被用户代码
处理传递的对象的所有者与原始所有者不匹配。 参数名称:结果
public void StartCall(OfflineMessage offlineMessage)
{
_messageFrom = offlineMessage.MessageFrom;
_messageTo = offlineMessage.MessageTo;
_messageBody = offlineMessage.MsessageBody;
_messageTime = offlineMessage.MessageTime;
try
{
_convSettings = new ConversationSettings { Priority = ConversationPriority.Normal };
_conversation = new Conversation(_applicationEndpoint, _convSettings);
_convSettings.Subject = _conversation.LocalParticipant.DisplayName;
_conversation.Impersonate(_messageFrom, _conversation.LocalParticipant.PhoneUri, _conversation.LocalParticipant.DisplayName);
_instantMessagingCall = new InstantMessagingCall(_conversation);
_instantMessagingCall.BeginEstablish(_messageTo,_message, null,
ar =>
{
try
{
_instantMessagingCall.EndEstablish(ar);
//hook handlers
_instantMessagingCall.Flow.MessageReceived += Flow_MessageReceived;
_instantMessagingCall.Flow.StateChanged += Flow_StateChanged;
SendInstantMessage(_instantMessagingCall);
}
catch (RealTimeException ex)
{
}
},
null);
}
catch (Exception)
{
}
}
关于此异常的任何想法