mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Merge "res/res_musiconhold: Add a warning when MOH does not exist"
This commit is contained in:
@@ -881,7 +881,7 @@ static struct mohclass *_get_mohbyname(const char *name, int warn, int flags, co
|
|||||||
"get_mohbyname", file, lineno, funcname);
|
"get_mohbyname", file, lineno, funcname);
|
||||||
|
|
||||||
if (!moh && warn) {
|
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;
|
return moh;
|
||||||
|
Reference in New Issue
Block a user