fixes crash in moh when cachertclasses flag is used
authorDavid Vossel <dvossel@digium.com>
Wed, 9 Jun 2010 15:09:25 +0000 (15:09 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 9 Jun 2010 15:09:25 +0000 (15:09 +0000)
commite98835e43780e92cced22ad1ae8a66e7f4b7672e
tree3da8192f7e97c92c95e2181b94ab7bcfadb59d4f
parent6d627b8c38a0d1477ff0f376c4c88536953edcce
fixes crash in moh when cachertclasses flag is used

The result for moh_register was not verified to guarantee
the mohclass as added to the container.

(closes issue #16993)
Reported by: dmitri
Patches:
      res_musiconhold_rtclass2.patch uploaded by dmitri (license 1001)
      moh_crash2.diff uploaded by dvossel (license 671)
Tested by: dmitri

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@269271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_musiconhold.c