On Tue, Jan 28, 2020 at 8:43 AM i...@magnussolution.com <
i...@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].

[1]
https://github.com/asterisk/asterisk/blob/master/apps/app_playback.c#L490

-- 
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