musiconhold: Only warn if music class is not found in memory and database.
authorWalter Doekes <walter+asterisk@wjd.nu>
Thu, 24 Mar 2016 12:51:00 +0000 (13:51 +0100)
committerWalter Doekes <walter+asterisk@wjd.nu>
Thu, 24 Mar 2016 12:51:00 +0000 (13:51 +0100)
commit13cdf3e8a168345ce0eb8e8fb70becec5c1c99a5
treeaa40b37ccd327f0e342fae2e03499b27630680dd
parentd7ee89b49950522f78afaca70d194f868f59321c
musiconhold: Only warn if music class is not found in memory and database.

The log message when a MusicOnHold music class was not found was changed
from debug level to WARNING level in Asterisk 11.19 and 13.5.  For those
using realtime musiconhold, this message is wrong because it warns
before checking the database.

This changeset delays the warning until after the database has been
checked.

Reported-by: Conrad de Wet
ASTERISK-25444 #close

Change-Id: I6cfb2db2f9cfbd2bb3d30566ecae361c4abf6dbf
res/res_musiconhold.c