[Asterisk-Users] Variable to play all gsm files in a directory?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Jan 22 19:09:29 MST 2004


On Thursday 22 January 2004 16:43, jaycard wrote:
> Is there a variable that can be used with the playback command to
> play all gsm sound files in a directory? For example like '*.*' <-
> which I know doesn't work. Is the only solution for this to create an
> AGI script and use the stream_file command ?

I can't see where this would be useful in more than a single situation,
so I'd recommend that you write an AGI script which can use the opendir,
readdir, and closedir system calls.

-Tilghman




More information about the asterisk-users mailing list