Issue : dtmf input from agi script with swift


I m having asterisk- 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 ?


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.
$agi->verbose("SWIFT_DTMF : ${swift_dtmf} ");