发布VoiceXML浏览器对象 [英] Release VoiceXML Browser object

查看:79
本文介绍了发布VoiceXML浏览器对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

  &NBSP; &NBSP;当< audio>如果调用者挂起,则在voicexml中播放元素,会话已完成事件不会被触发,因为资源未被释放。有没有办法清理资源并优雅地终止
。会话完成时我正在执行browser.stopasync()和browser.dispose(),但是当调用者挂起时,这不会被触发。

      When the <audio> element is being played in voicexml if caller hangs up, the session completed event does not get triggered, because of which the resources are not deallocated. Is there any way to cleanup the resources and terminate gracefully. I'm doing browser.stopasync() and browser.dispose() when session completes, but this does not get triggered when caller hangs up.

推荐答案

我会在浏览器上为Disconnecting事件注册一个处理程序( http://msdn.microsoft.com/en-us/library/microsoft.speech.voicexml.browser.disconnecting(v = office.14)的.aspx )。
当呼叫者挂机时应该引发该事件。
I would register a handler for the Disconnecting event on the Browser (http://msdn.microsoft.com/en-us/library/microsoft.speech.voicexml.browser.disconnecting(v=office.14).aspx). That event should be raised when a caller hangs up.


这篇关于发布VoiceXML浏览器对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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