简体   繁体   English

星号Java和ivr

[英]asterisk-java and ivr

I know that using asterisk I can have an ivr, that will present the user with some options. 我知道使用星号可以得到一个ivr,它将为用户提供一些选项。 But is it possible using asterisk-java make a call that will start this ivr and get the option selected by the user from the menu presented? 但是是否可以使用asterisk-java进行调用以启动该ivr并从显示的菜单中获取用户选择的选项? If so, how can I do that? 如果是这样,我该怎么做? Or the only option would be to save the selected option to a file and then read it from the java app? 还是唯一的选择是将选定的选项保存到文件,然后从Java应用程序中读取它?

I'd set a channel variable with the user choice in it, and then you can read that channel variable from your JAVA app with an AMI call. 我在其中设置了一个带有用户选择的通道变量,然后您可以通过AMI调用从JAVA应用程序中读取该通道变量。 That way you don't need to mess with writing files to disk and worrying about concurrent calls, etc. Each call holds its own set of required key/values in channel variables, and you just peek/poke them when you need them. 这样,您就不必为将文件写入磁盘而担心并发调用等问题。每个调用在通道变量中都拥有自己的一组必需的键/值,您只需要在需要时窥视/戳它们即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM