musiconhold: Add sort=randstart, and deprecate old stuff.
authorWalter Doekes <walter+asterisk@wjd.nu>
Sun, 14 Sep 2014 15:41:58 +0000 (15:41 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Sun, 14 Sep 2014 15:41:58 +0000 (15:41 +0000)
commit9c1f34c7e904b26bb550f426020635894cb805ac
tree0c675bdaaf6020a748e560e17a33a34be7765ab1
parent02295456efde5b930b3b6f40454dad3a9aca0524
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
CHANGES
configs/samples/musiconhold.conf.sample
res/res_musiconhold.c