]> git.ipfire.org Git - thirdparty/asterisk.git/commit
musiconhold: Only warn if music class is not found in memory and database. 56/2456/1
authorWalter Doekes <walter+asterisk@wjd.nu>
Thu, 24 Mar 2016 12:45:06 +0000 (13:45 +0100)
committerWalter Doekes <walter+asterisk@wjd.nu>
Thu, 24 Mar 2016 12:45:06 +0000 (13:45 +0100)
commitff3eebf454301ffca414c652415c3fcaaecf134d
treed36bf01bf6bb54833eace026f0601e484fc90192
parentc5170677e72e48b487462e79a31974845a417dce
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