I'm using Asterisk-Java to work with my Asterisk server. In my AGI script, I'd like to wait for the call to be answered to answer on the AGI side. To do this, I'd like to use the DIALSTATUS
channel variable. Though
System.out.println("DIALSTATUS is: " + channel.getVariable("DIALSTATUS"));
Doing this always prints null
, wherever in the AGI script I put it.
Please suggest I you have an idea.