[asterisk-commits] jrose: branch 1.8 r325152 - /branches/1.8/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 28 10:46:32 CDT 2011


Author: jrose
Date: Tue Jun 28 10:46:29 2011
New Revision: 325152

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=325152
Log:
Fixes moh reload breaking custom mode moh classes when the config file is untouched

(closes issue ASTERISK-17730)
Reported by: sdolloff

Modified:
    branches/1.8/res/res_musiconhold.c

Modified: branches/1.8/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_musiconhold.c?view=diff&rev=325152&r1=325151&r2=325152
==============================================================================
--- branches/1.8/res/res_musiconhold.c (original)
+++ branches/1.8/res/res_musiconhold.c Tue Jun 28 10:46:29 2011
@@ -1123,7 +1123,9 @@
 	i = ao2_iterator_init(mohclasses, 0);
 
 	while ((c = ao2_iterator_next(&i))) {
-		moh_scan_files(c);
+		if (!strcasecmp(c->mode, "files")) {
+			moh_scan_files(c);
+		}
 		ao2_ref(c, -1);
 	}
 




More information about the asterisk-commits mailing list