<div dir="ltr"><div dir="ltr">On Tue, Jan 28, 2020 at 10:26 AM <a href="mailto:info@magnussolution.com">info@magnussolution.com</a> <<a href="mailto:info@magnussolution.com">info@magnussolution.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Joshua, thanks, it work perfectly.<div><br></div><div>One more question, what is the best method to play audio and get the DTMF?</div><div><br></div><div>I’m using </div><div><br></div><div><div>dtmf[1] = '\0';</div><div>dtmf[0] = cmd = ast_play_and_wait(chan, audio);</div></div></div></blockquote><div><br></div><div>ast_play_and_wait is made for that, it plays a sound file and waits for a DTMF digit. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>