2.0 UserEndpoint未触发CallReceived事件 [英] 2.0 UserEndpoint not firing CallReceived event

查看:137
本文介绍了2.0 UserEndpoint未触发CallReceived事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个简单的机器人作为副项目。  我正在使用UserEndpoint,因为这不是一个严肃的项目,我不想经历将其作为一个完整的应用程序开发的麻烦。  机器人可以发起对话并回复
消息,但没有事件触发其他用户发起的对话。  我的组织正在使用2007 R2,因此我无法使用UCMA 3.0。

I'm developing a simple bot as a side project.  I'm using the UserEndpoint since this isn't a serious project and I don't want to go through the hassle of a developing it as a full application.  The bot can initiate a conversation and respond to messages, but no events are firing for conversations initiated by other users.  My organization is using 2007 R2 so I can not use UCMA 3.0.

我在UserEndpoint的初始化中使用了此代码,但从未调用endpoint_CallReceived:

I have this code in the initialization of my UserEndpoint, but endpoint_CallReceived is never called:

endpoint.RegisterForIncomingCall<InstantMessagingCall>(endpoint_CallReceived);

我也试过挂钩到底层的SipEndpoint,但这也不起作用:

I also tried hooking into the underlying SipEndpoint, but that did not work either:

innerEndpoint.SessionReceived += (s, e) =>
{
    // never executed
};

我假设这是UserEndpiont的限制而我只是SOL,但这有解决方案吗?  

I'm assuming this is a limitation of UserEndpiont and I'm just SOL, but is there a solution to this?  

谢谢!

推荐答案

如果您正在使用从未用于任何其他目的的UserEndpoint的用户ID,则该用户尚未在服务器上完成状态容器和其他一些初始配置,并且无法正常运行。

If you are using a user Id for the UserEndpoint that has never been used for any other purpose, then that user has not had the presence containers and some other initial provisioning done on the server and will not function correctly.

您可以通过两种方式进行自动配置:

You can get the automatic provisioning to happen two ways:


  • 转到某台计算机并运行使用该用户ID登录的OC客户端。 &NBSP;在这种情况下,OC客户端会看到尚未完成初始配置并将其设置为。 你只需要这样做一次。 然后,您可以在
    UCMA应用程序中使用该用户。
  • 在您的UCMA应用程序中创建UserEndpoint并发布状态等状态。  UCMA代码还将确定初始供应尚未发生并且在"覆盖范围内"执行该操作。对你而言。

希望这会有所帮助。


这篇关于2.0 UserEndpoint未触发CallReceived事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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