]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_musiconhold: Add a warning when MOH does not exist 33/933/1
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:54:19 +0000 (09:54 -0500)
Change-Id: Ifdfbd0b97cf31478d29923ec30aabce28d01740b

res/res_musiconhold.c

index dbf2c6056858d4212f5d91fac827e387d6480923..91724734e2ae62d8c52c9bac5a4e8c48867f99a8 100644 (file)
@@ -893,7 +893,7 @@ static struct mohclass *_get_mohbyname(const char *name, int warn, int flags, co
 #endif
 
        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;