Changeset 3903
- Timestamp:
- 04/05/07 10:36:58 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.2/amp_conf/htdocs/admin/functions.inc.php
r3851 r3903 28 28 'AMPENGINE' => 'asterisk', 29 29 'USECATEGORIES' => true, 30 'ASTETCDIR' => '/etc/asterisk', 31 'ASTMANAGERPORT' => '5038', 30 32 ); 31 33 // boolean values, will be converted to true/false … … 413 415 */ 414 416 function write_voicemailconf($filename, &$vmconf, &$section, $iteration = 0) { 417 global $amp_conf; 415 418 if ($iteration == 0) { 416 419 $section = null; … … 423 426 // TODO: don't use hardcoded path...? 424 427 if (!file_exists($filename)) { 425 if (!copy( "/etc/asterisk/voicemail.conf.template", $filename )){428 if (!copy( rtrim($amp_conf["ASTETCDIR"],"/")."/voicemail.conf.template", $filename )){ 426 429 return; 427 430 }
