[Asterisk-code-review] res musiconhold: moh general section is a class and issues w... (asterisk[14])

Daniel Journo asteriskteam at digium.com
Wed Mar 8 14:38:42 CST 2017


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

Change subject: res_musiconhold: moh general section is a class and issues warning
......................................................................

res_musiconhold: moh general section is a class and issues warning

* res_musiconhold.c Re-added code that was previously removed to ensure the
		[general] section is not considered a class

ASTERISK-26353 #close

Change-Id: Ia3dbd11ea2b43ab3e6c820a9827811dd24bea82d
---
M res/res_musiconhold.c
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/45/5145/1

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 3bae172..ea99828 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1751,6 +1751,10 @@
 				}
 			}
 		}
+		
+		if (!strcasecmp(cat, "general")) {
+			continue;
+		}
 
 		if (!(class = moh_class_malloc())) {
 			break;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3dbd11ea2b43ab3e6c820a9827811dd24bea82d
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