diff options
author | Walter Doekes <walter+asterisk@wjd.nu> | 2014-09-25 20:49:04 +0000 |
---|---|---|
committer | Walter Doekes <walter+asterisk@wjd.nu> | 2014-09-25 20:49:04 +0000 |
commit | d172d84fe146ce004e61fead3aa6149196f4edef (patch) | |
tree | e20ac955077989bada7d556d7cffcaa32b64c28b /configs/samples/musiconhold.conf.sample | |
parent | 68077634feda3df2c6e529d9707c0d161edb7171 (diff) |
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
Diffstat (limited to 'configs/samples/musiconhold.conf.sample')
-rw-r--r-- | configs/samples/musiconhold.conf.sample | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/samples/musiconhold.conf.sample b/configs/samples/musiconhold.conf.sample index 5987b36a8..3df29bf69 100644 --- a/configs/samples/musiconhold.conf.sample +++ b/configs/samples/musiconhold.conf.sample @@ -2,10 +2,13 @@ ; Music on Hold -- Sample Configuration ; [general] -;cachertclasses=yes ; use 1 instance of moh class for all users who are using it, - ; decrease consumable cpu cycles and memory - ; disabled by default +;cachertclasses=yes ; use 1 instance of moh class for all users who are using it, + ; decrease consumable cpu cycles and memory + ; disabled by default +;preferchannelclass=yes ; Prefer the musicclass as defined by CHANNEL(musicclass), + ; over a class set by an application (e.g. a musicclass set on a queue). + ; Defaults to yes. ; valid mode options: ; files -- read files from a directory in any Asterisk supported |