[asterisk-dev] ast_play_and_wait

Joshua C. Colp jcolp at sangoma.com
Tue Jan 28 06:49:31 CST 2020

On Tue, Jan 28, 2020 at 8:43 AM info at magnussolution.com <
info at magnussolution.com> wrote:

> Hello,
> I’m learning about Asterisk code, and to try developer a new application,
> in this application I nee to execute sounds, I’m using
> ast_play_and_wait(chan,audio), but this function, as the name suppose, play
> the and wait to user press any digits.
> Have another function to only execute the audio? or set a timeout on
> ast_play_and_wait()?

You would use ast_streamfile, ast_waitstream, and ast_stopstream. If you
need an example of usage you can look at the implementation of the Playback
dialplan application[1].


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/8a576ef3/attachment.html>

More information about the asterisk-dev mailing list