mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Fixes moh reload breaking custom mode moh classes when the config file is untouched
(closes issue ASTERISK-17730) Reported by: sdolloff git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@325152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1123,7 +1123,9 @@ static void moh_rescan_files(void) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user