summaryrefslogtreecommitdiff
path: root/configs/samples/musiconhold.conf.sample
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2014-09-14 15:41:58 +0000
committerWalter Doekes <walter+asterisk@wjd.nu>2014-09-14 15:41:58 +0000
commit9c1f34c7e904b26bb550f426020635894cb805ac (patch)
tree0c675bdaaf6020a748e560e17a33a34be7765ab1 /configs/samples/musiconhold.conf.sample
parent02295456efde5b930b3b6f40454dad3a9aca0524 (diff)
musiconhold: Add sort=randstart, and deprecate old stuff.
- adds sort=randstart (next to sort=, sort=random, sort=alpha) - combines duplicate moh option parsing code into a single function - adds deprecationwarnings for application=r to sort randomly - adds deprecationwarnings for random=yes to sort randomly - removes invisible code that was supposed to stay until 1.8 The sort=randstart works like sort=alpha, except we start at a random position. Review: https://reviewboard.asterisk.org/r/3991/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@423065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/samples/musiconhold.conf.sample')
-rw-r--r--configs/samples/musiconhold.conf.sample9
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/samples/musiconhold.conf.sample b/configs/samples/musiconhold.conf.sample
index 1211c8a6d..5987b36a8 100644
--- a/configs/samples/musiconhold.conf.sample
+++ b/configs/samples/musiconhold.conf.sample
@@ -57,13 +57,16 @@ directory=moh
; ; be played to them. Also, if using modes that Asterisk
; ; controls the playlist for (files, mp3, etc), the same
; ; sound will also be played between MOH songs.
-;sort=random ; Sort the files in random order
+;sort=random ; Sort the files in random order. Other sort options are:
+; ; 'alpha' and 'randstart'. If 'alpha', the files are sorted
+; ; in alphabetical order. If 'randstart', the files are sorted
+; ; in alphabetical order as well, but the first file is chosen
+; ; at random. If unspecified, the sort order is undefined.
;[native-alphabetical]
;mode=files
;directory=moh
-;sort=alpha ; Sort the files in alphabetical order. If this option is
-; ; not specified, the sort order is undefined.
+;sort=alpha ; Sort the files in alphabetical order.
; =========
; Other (non-native) playback methods