[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 13:48:31 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:                     new
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:              
====================================================================== 
Date Submitted:             2009-09-04 13:46 CDT
Last Modified:              2009-09-04 13:48 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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-04 13:48 mcargile       Summary                  Tweak to make Music On
Hold play files in alphabetical order. => [patch] Tweak to make Music On Hold
play files in alphabetical order.
======================================================================




More information about the asterisk-bugs mailing list