On Tue, Jan 28, 2020 at 10:26 AM [email protected] <
[email protected]> wrote:

> Hi Joshua, thanks, it work perfectly.
>
> One more question, what is the best method to play audio and get the DTMF?
>
> I’m using
>
> dtmf[1] = '\0';
> dtmf[0] = cmd = ast_play_and_wait(chan, audio);
>

ast_play_and_wait is made for that, it plays a sound file and waits for a
DTMF digit.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to