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.
$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} ");