Changeset 3903

Show
Ignore:
Timestamp:
04/05/07 10:36:58 (2 years ago)
Author:
p_lindheimer
Message:

remove hardcode path and add default ASTETCDIR and ASTMANAGERPORT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/htdocs/admin/functions.inc.php

    r3851 r3903  
    2828                'AMPENGINE' => 'asterisk', 
    2929                'USECATEGORIES' => true, 
     30                'ASTETCDIR' => '/etc/asterisk', 
     31                'ASTMANAGERPORT' => '5038', 
    3032                ); 
    3133        // boolean values, will be converted to true/false 
     
    413415*/ 
    414416function write_voicemailconf($filename, &$vmconf, &$section, $iteration = 0) { 
     417        global $amp_conf; 
    415418        if ($iteration == 0) { 
    416419                $section = null; 
     
    423426        // TODO: don't use hardcoded path...?  
    424427        if (!file_exists($filename)) { 
    425                 if (!copy( "/etc/asterisk/voicemail.conf.template", $filename )){ 
     428                if (!copy( rtrim($amp_conf["ASTETCDIR"],"/")."/voicemail.conf.template", $filename )){ 
    426429                        return; 
    427430                } 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads