Changeset 8701 for freepbx

Show
Ignore:
Timestamp:
01/28/10 12:17:00 (3 years ago)
Author:
p_lindheimer
Message:

fixes #3940 create a cdr.conf if one does not exist

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/bin/retrieve_conf

    r8599 r8701  
    806806} 
    807807 
     808// Some later versions of Aserisk require the existence of a cdr.conf file or no CDR 
     809// incuding MySQL logging will work (see #3940) 
     810// 
     811$target = $amp_conf['ASTETCDIR']."/cdr.conf"; 
     812if (!file_exists($target)) { 
     813  $output = array(); 
     814  exec("touch $target", $output, $retcode); 
     815  if ($retcode != 0) { 
     816    error("Error code $retcode: trying to create empty file $target"); 
     817  } 
     818} 
    808819 
    809820// **** Set reload flag for AMP admin