From 109a17ae797af70f90a6f6a66643ee9dd8ec670b Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 16 Oct 2008 08:30:32 +0000 Subject: support relative paths in musiconhold.conf, which makes moh work by default when Asterisk was configured using --prefix and 'make samples' is run git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149917 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/musiconhold.conf.sample | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'configs') diff --git a/configs/musiconhold.conf.sample b/configs/musiconhold.conf.sample index 4df1afd4f..8ccc851e4 100644 --- a/configs/musiconhold.conf.sample +++ b/configs/musiconhold.conf.sample @@ -29,6 +29,11 @@ ; Files can be present in as many formats as you wish, and the ; 'best' format will be chosen at playback time. ; +; The path specified can be either an absolute path (starts with '/'), +; or a relative path; relative paths are interpreted as being relative +; to the 'astvarlibdir' in asterisk.conf, which defaults to +; /var/lib/asterisk. +; ; NOTE: ; If you are not using "autoload" in modules.conf, then you ; must ensure that the format modules for any formats you wish @@ -39,11 +44,11 @@ [default] mode=files -directory=/var/lib/asterisk/moh +directory=moh ; ;[native-random] ;mode=files -;directory=/var/lib/asterisk/moh +;directory=moh ;digit=# ; If this option is set for a class, then when callers are ; ; listening to music on hold, they can press this digit, and ; ; they will switch to listening to this music class. @@ -51,7 +56,7 @@ directory=/var/lib/asterisk/moh ;[native-alphabetical] ;mode=files -;directory=/var/lib/asterisk/moh +;directory=moh ;sort=alpha ; Sort the files in alphabetical order. If this option is ; ; not specified, the sort order is undefined. -- cgit v1.2.3