Asterisk DIALSTATUS returns null

543 Views Asked by At

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.

1

There are 1 best solutions below

3
On

DIALSTATUS variable active only after Dial call.