简体   繁体   English

星号DIALSTATUS返回null

[英]Asterisk DIALSTATUS returns null

I'm using Asterisk-Java to work with my Asterisk server. 我正在使用Asterisk-Java与我的Asterisk服务器一起使用。 In my AGI script, I'd like to wait for the call to be answered to answer on the AGI side. 在我的AGI脚本中,我想等待该呼叫在AGI端得到应答。 To do this, I'd like to use the DIALSTATUS channel variable . 为此,我想使用DIALSTATUS通道变量 Though 虽然

System.out.println("DIALSTATUS is: " + channel.getVariable("DIALSTATUS"));

Doing this always prints null , wherever in the AGI script I put it. 无论我在AGI脚本中放置的位置如何,此操作都会始终输出null

Please suggest I you have an idea. 请建议我你有个主意。

DIALSTATUS变量仅在拨号后才激活。

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

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