musiconhold: Add preferchannelclass=no option to prefer app class.
authorWalter Doekes <walter+asterisk@wjd.nu>
Thu, 25 Sep 2014 20:49:04 +0000 (20:49 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Thu, 25 Sep 2014 20:49:04 +0000 (20:49 +0000)
commitd172d84fe146ce004e61fead3aa6149196f4edef
treee20ac955077989bada7d556d7cffcaa32b64c28b
parent68077634feda3df2c6e529d9707c0d161edb7171
musiconhold: Add preferchannelclass=no option to prefer app class.

The new option 'preferchannelclass' is added to musiconhold.conf. If yes
(the default) the CHANNEL(musicclass) is preferred when choosing the
hold music. If it is no, the class suggested by the application that
calls the MoH (e.g. the Queue() app) gets preferred (new behaviour).

This way you set a different hold-music from the Queue-music by setting
both the CHANNEL(musicclass) and the queue-context musicclass.

ASTERISK-24276 #close
Reported by: Kristian Høgh
Patches:
  app_override_channel_moh.patch uploaded by Kristian Høgh (License #6639)

Review: https://reviewboard.asterisk.org/r/4010/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@423893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
configs/samples/musiconhold.conf.sample
res/res_musiconhold.c