[Asterisk-code-review] Unused realtime MOH classes not purged on 'moh reload' (asterisk[13])

Daniel Journo asteriskteam at digium.com
Sat Mar 25 19:03:06 CDT 2017


Daniel Journo has uploaded a new change for review. ( https://gerrit.asterisk.org/5319 )

Change subject: Unused realtime MOH classes not purged on 'moh reload'
......................................................................

Unused realtime MOH classes not purged on 'moh reload'

Force reload even if the musiconhold.conf file has not changed

ASTERISK-24712 #close

Change-Id: I42c78ea76528473a656f204595956c9eedcf3246
---
M res/res_musiconhold.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/19/5319/1

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 6b0f00a..fb7d82e 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1702,7 +1702,7 @@
 	struct mohclass *class;	
 	char *cat;
 	int numclasses = 0;
-	struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
+	struct ast_flags config_flags = {0}; //{ reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
 
 	cfg = ast_config_load("musiconhold.conf", config_flags);
 

-- 
To view, visit https://gerrit.asterisk.org/5319
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I42c78ea76528473a656f204595956c9eedcf3246
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Daniel Journo <dan at keshercommunications.com>



More information about the asterisk-code-review mailing list