[asterisk-bugs] [Asterisk 0015836]: [patch] Tweak to make Music On Hold play files in alphabetical order.

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Sep 4 16:29:52 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15836 
====================================================================== 
Reported By:                mcargile
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15836
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.26.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           1.6.0.5
====================================================================== 
Date Submitted:             2009-09-04 13:46 CDT
Last Modified:              2009-09-04 16:29 CDT
====================================================================== 
Summary:                    [patch] Tweak to make Music On Hold play files in
alphabetical order.
Description: 
Music On Hold currently plays the files in the order they are found in the
directory and not alphabetically. This is because the moh_scan_files
function is using readdir to grab the file list. The included patch
converts moh_scan_files to use the scandir function with alphasort to get
the files in alphabetical order. I have also added verbose messages so you
can see which files and directories moh is loading.
====================================================================== 

---------------------------------------------------------------------- 
 (0110245) seanbright (manager) - 2009-09-04 16:29
 https://issues.asterisk.org/view.php?id=15836#c110245 
---------------------------------------------------------------------- 
Unfortunately this is the way that 1.4 operates and would change behavior
of existing installations.  This fix has already gone into trunk and
various 1.6.x branches.  Thanks for the report. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-04 16:29 seanbright     Note Added: 0110245                          
2009-09-04 16:29 seanbright     Status                   new => closed       
2009-09-04 16:29 seanbright     Resolution               open => no change
required
2009-09-04 16:29 seanbright     Fixed in Version          => 1.6.0.5         
======================================================================




More information about the asterisk-bugs mailing list