[asterisk-users] using Playback() to play a random sound file

Steve Edwards asterisk.org at sedwards.com
Tue May 1 21:10:40 MST 2007


On Tue, 1 May 2007, Jay Austad wrote:

> I've got a directory under /var/lib/asterisk/sounds which contains a bunch of 
> sound files.  I would like to call the Playback command to play the files, 
> but I need it to select a file to play randomly.  Is there any way to do 
> this?

I do this with an AGI.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000


More information about the asterisk-users mailing list