Changeset 8843
- Timestamp:
- 02/17/10 11:17:43 (2 years ago)
- Files:
-
- freepbx/branches/2.7/amp_conf/htdocs/admin/functions.inc.php (modified) (1 diff)
- freepbx/branches/2.7/amp_conf/moh (moved) (moved from freepbx/branches/2.7/amp_conf/mohmp3)
- freepbx/branches/2.7/amp_conf/moh/QuajiroPromo.sln (copied) (copied from freepbx/branches/2.7/amp_conf/mohmp3/QuajiroPromo.sln)
- freepbx/branches/2.7/amp_conf/moh/TristeAlegriaPromo.sln (copied) (copied from freepbx/branches/2.7/amp_conf/mohmp3/TristeAlegriaPromo.sln)
- freepbx/branches/2.7/amportal.conf (modified) (1 diff)
- freepbx/branches/2.7/libfreepbx.install.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.7/amp_conf/htdocs/admin/functions.inc.php
r8648 r8843 726 726 'AMPWEBROOT' => array('dir' , '/var/www/html'), 727 727 'FOPWEBROOT' => array('dir' , '/var/www/html/panel'), 728 'MOHDIR' => array('dir' , '/mohmp3'), 728 729 729 730 'USECATEGORIES' => array('bool' , true), freepbx/branches/2.7/amportal.conf
r8751 r8843 270 270 # http://code.google.com/speed/public-dns/faq.html#privacy 271 271 272 # MOHDIR=subdirectory_name 273 # This is the subdirectory for the MoH files/directories which is located in ASTVARLIBDIR 274 # if not specified it will default to mohmp3 for backward compatibility. 275 MOHDIR=moh freepbx/branches/2.7/libfreepbx.install.php
r7598 r8843 222 222 global $make_links; 223 223 224 $moh_subdir = isset($amp_conf['MOHDIR']) ? trim(trim($amp_conf['MOHDIR']),'/') : 'mohmp3'; 225 224 226 // total # files, # actually copied 225 227 $num_files = $num_copied = 0; … … 240 242 $destination = $dirdest.$dirsource."/".$file; 241 243 242 if ($dirsource == "" && $file == "moh mp3" && !$install_moh) {244 if ($dirsource == "" && $file == "moh" && !$install_moh) { 243 245 // skip to the next dir 244 246 continue; … … 259 261 // the following are configurable in asterisk.conf 260 262 $destination=str_replace("/astetc",trim($asterisk_conf["astetcdir"]),$destination); 261 $destination=str_replace("/moh mp3",trim($asterisk_conf["astvarlibdir"])."/mohmp3",$destination);263 $destination=str_replace("/moh",trim($asterisk_conf["astvarlibdir"])."/$moh_subdir",$destination); 262 264 $destination=str_replace("/astvarlib",trim($asterisk_conf["astvarlibdir"]),$destination); 263 265 if(strpos($dirsource, 'modules') === false) $destination=str_replace("/agi-bin",trim($asterisk_conf["astagidir"]),$destination);
