[Asterisk-java-users] Execute AMD() inside a forwarded call by AGI
Brought to you by:
srt
From: Zoumana T. <zou...@gm...> - 2014-05-30 14:01:46
|
Hi every body, I am dealing with a use case within an IVR (driven by AJ AGI) received call 1. Play audio to announce the call forward 2. Make the forward using Dial 3. When the forwarded called is answered, execute an AMD() command to detect the status DURING THE call public void service(AgiRequest request, AgiChannel channel) throws AgiException { channel.answer(); channel.streamFile("svi/transfer-announce"); channel.exec("Dial", "SIP/200"); channel.exec("AMD"); channel.getVariable("AMD_STATUS"); channel.hangup(); } But as AGI lines are sequential, my AMD command come up when the forwarded call is already hangup so i got nothing. Somebody sees a solution or workaround for this? Thanks, Zoumana *---* *Zoumana TRAORE* |