[Asterisk-Users] Variable to play all gsm files in a directory?
Steven Critchfield
critch at basesys.com
Thu Jan 22 20:34:35 MST 2004
On Thu, 2004-01-22 at 20:09, Tilghman Lesher wrote:
> 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.
ewwwwwww.
map{ s/\.gsm$//;
print "stream file $_\n";
my $junk = <>;
} glob "$path/*.gsm";
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list