简体   繁体   English

来自Java代码的星号GotoifTime命令

[英]Asterisk GotoifTime command from java code

I'm new to asterisk and the world of the PBX in general, I wanna use asterisk-java library to communicate with the server through the fastAGI protocol, I could do the basics like answering a phone call and playing something or even jumping in the dial plan using gosub method.我是 asterisk 和 PBX 的新手,我想使用 asterisk-java 库通过 fastAGI 协议与服务器通信,我可以做一些基本的事情,比如接电话和玩东西,甚至跳入使用 gosub 方法的拨号计划。 My question is that I need the GotoifTime application in my java code, how can I call it from there?我的问题是我的 Java 代码中需要 GotoifTime 应用程序,我如何从那里调用它?

You can't run any asterisk command which do dialplan priority change when you are inside other command(AGI).当你在其他命令(AGI)中时,你不能运行任何改变拨号计划优先级的星号命令。 Actualy you can, but dialplan will go that prio only when you exit AGI.实际上你可以,但是只有当你退出 AGI 时,拨号计划才会优先。

So you have choose, use dialplan or AGI所以你可以选择,使用拨号计划或 AGI

You also can choose mixed control by AsyncAGI, but it is REALLY complex variant.您也可以选择 AsyncAGI 的混合控制,但它是非常复杂的变体。

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

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