]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_musiconhold: Add a warning when MOH does not exist 02/902/2
authorMichael Cargile <mikec@vicidial.com>
Thu, 16 Jul 2015 14:13:10 +0000 (10:13 -0400)
committerMatt Jordan <mjordan@digium.com>
Sun, 19 Jul 2015 14:52:31 +0000 (09:52 -0500)
Change-Id: Ifdfbd0b97cf31478d29923ec30aabce28d01740b

res/res_musiconhold.c

index eaf1f4ea86e710feb374106d4f89e22c59ae7a7e..bf7635ea27faa1ea5da86e305f8322008488ed25 100644 (file)
@@ -881,7 +881,7 @@ static struct mohclass *_get_mohbyname(const char *name, int warn, int flags, co
                "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;