UCMA 2.0:恢复终止的 InstantMessagingCall
假设我在 OCS 上有一个代表我的应用程序端点的用户,我尝试从本地 Web 应用程序(我构建在 BasicIMCall 示例应用程序之上)向他们发送消息,并且在某些时候他们关闭了聊天窗口,我该如何恢复即时消息通话?我在网上到处寻找答案,但我无法弄清楚。一旦用户关闭窗口,呼叫状态就会变为“终止”。如何恢复通话及其通话历史记录并继续或重新启动已终止的对话?
Say I have a user on OCS who represents my application endpoint, and I try to message them from a web application locally (I built on top of the BasicIMCall sample application), and at some point they close the chat window, how do I resume the InstantMessagingCall? I have looked all over the web for the answer but I can't figure it out. Once the user closes the window, the call state becomes Terminated. How do I recover the call along with its call history and continue or restart the terminated conversation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果他们关闭了与您的聊天,您将收到一个事件状态,告诉您状态已终止。这取决于你当时想做什么。
如果您想再次与他通话,则需要再次
BeginEstablish
InstantMessagingCall
。然后他需要接受他的立场才能让你再次聊天。If they closed the chat with you will will receive a event state that tells you the state is terminated. Its up to you want to do at that point.
If you want to talk to him again you would need to
BeginEstablish
theInstantMessagingCall
again. Then he would need to accept on his side for you to chat again.为传入 IM 呼叫注册呼叫状态更改事件:
此外,您可以获取呼叫状态,当呼叫终止时,您可以发起新呼叫:
要恢复呼叫历史记录,我认为您必须存储先前对话的记录。
Register Call State Change event for Incoming IM Call:
Further you can get state of call and when it terminates , you can initiate new call:
To recover call history, i think you have to store transcript of previous conversation.