Issue : dtmf input from agi script with swift

Hello,

I m having asterisk-1.6.2.23. I m having swift installed and working fine. I want to use swift from the .agi script and need to get dtmf input. But with swift, the dtmf input is not working.

test.agi file :

Any help suggestion please ?

-Thanks

swift is taking dtmf in dialplan but swift is not taking demf input in agi. Any idea ?

Try with:

$result = $agi->get_data(‘SWIFT_DTMF’, 2000, 2); <-----2000 is the timeout, 2 is the maximum digit length.
$swift_dtmf=$result[‘data’];
$agi->verbose("SWIFT_DTMF : ${swift_dtmf} ");