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

Daniel Journo asteriskteam at digium.com
Sat Mar 25 19:31:56 CDT 2017


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

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-25974 #close

Change-Id: I42c78ea76528473a656f204595956c9eedcf3246
---
M res/res_musiconhold.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/5320/1

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 8fed319..4cba3c1 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1711,10 +1711,10 @@
 {
 	struct ast_config *cfg;
 	struct ast_variable *var;
-	struct mohclass *class;	
+	struct mohclass *class;
 	char *cat;
 	int numclasses = 0;
-	struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
+	struct ast_flags config_flags = {0};
 
 	cfg = ast_config_load("musiconhold.conf", config_flags);
 

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

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



More information about the asterisk-code-review mailing list