asterisk-java
asterisk-java copied to clipboard
getVariable("DIALSTATUS") always returns null
In my my AGI script, I use the following line:
System.out.println("DIALSTATUS: " + channel.getVariable("DIALSTATUS"));
I want to use the DIALSTATUS to wait for the callee's answer to answer on the AGI side.
Though, it always returns null
, wherever I put it in the script.
Is this a bug or me getting something wrong?