[Asterisk-Users] moh - turn off randomization?
Damon Estep
damon at suburbanbroadband.net
Sat Sep 17 17:14:05 MST 2005
Kevin,
That is what I thought I read somewhere, but it is not so. I will check,
but I THINK that * reads the file names left to right top to bottom and
my FC4 box lists them with an ls top to bottom left to right!
Does * actually collect the file names with an ls? Could this be a small
bug?
I had about 20 short files in the MOH folder (music clips and
advertising clips) I want to get them to alternate, and renaming the
alphabetically should have worked, as that changes the ls order. No go.
I ended up just concatenating the files into larger mp3's in the order I
wanted, this reduced it to 3 files of which I care little about the
order.
CVS Head 8/27 - FC4
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Kevin P. Fleming
> Sent: Saturday, September 17, 2005 4:20 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] moh - turn off randomization?
>
> Damon Estep wrote:
>
> > I do not have the "r" option in the MOH class, but the files are
played
> > in an order I can figure out, they do not appear to be random
either,
> > same pattern repeats.
>
> Oh come on, its obvious :-)
>
> Have you figured it out yet?
>
> Yet?
>
> Now?
>
> OK... I'll tell you.
>
> See the order you get when you do 'ls' in that directory? It's that
> order :-) If you want to force the files to play in a particular
order,
> add a numeric prefix to each one.
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list