[asterisk-dev] ast_play_and_wait

Joshua C. Colp jcolp at sangoma.com
Tue Jan 28 08:32:17 CST 2020

On Tue, Jan 28, 2020 at 10:26 AM info at magnussolution.com <
info at magnussolution.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20200128/39256ee7/attachment.html>

More information about the asterisk-dev mailing list