[Asterisk-code-review] res/res musiconhold: Add a warning when MOH does not exist (asterisk[master])

Matt Jordan asteriskteam at digium.com
Sun Jul 19 10:58:00 CDT 2015


Matt Jordan has submitted this change and it was merged.

Change subject: res/res_musiconhold: Add a warning when MOH does not exist
......................................................................


res/res_musiconhold: Add a warning when MOH does not exist

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

Approvals:
  Anonymous Coward #1000019: Verified
  Matt Jordan: Looks good to me, approved
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index eaf1f4e..bf7635e 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -881,7 +881,7 @@
 		"get_mohbyname", file, lineno, funcname);
 
 	if (!moh && warn) {
-		ast_debug(1, "Music on Hold class '%s' not found in memory\n", name);
+		ast_log(LOG_WARNING, "Music on Hold class '%s' not found in memory. Verify your configuration.\n", name);
 	}
 
 	return moh;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdfbd0b97cf31478d29923ec30aabce28d01740b
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Michael Cargile <mikec at vicidial.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list