Changeset 13190

Show
Ignore:
Timestamp:
01/12/12 17:13:45 (1 year ago)
Author:
p_lindheimer
Message:

closes #5513 always act in ZAP2DAHDICOMPAT mode with versions of Asteris that couldn't have zap, we need to remove zap from freepbx in the next major release

Files:

Legend:

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

    r13130 r13190  
    200200     
    201201  if ($amp_conf['ZAP2DAHDICOMPAT']) { 
     202    $ast_with_dahdi = true; 
     203    $chan_dahdi_loaded = true; 
     204    return true; 
     205  } elseif (version_compare($version,'1.4.21','ge')) { 
     206    // we only had dahdi at this point so force the setting 
     207    // 
     208    $freepbx_conf =& freepbx_conf::create(); 
     209    $freepbx_conf->set_conf_values(array('ZAP2DAHDICOMPAT' => true, true, true); 
     210    freepbx_log(FPBX_LOG_NOTICE, _("Auto set ZAP2DAHDICOMPAT to true because we are running a version of Asterisk greater than 1.4.21")); 
     211 
    202212    $ast_with_dahdi = true; 
    203213    $chan_dahdi_loaded = true;