Changeset 7064

Show
Ignore:
Timestamp:
10/22/08 01:13:01 (5 years ago)
Author:
p_lindheimer
Message:

closes #3271 allow install_amp for business edition

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/install_amp

    r6708 r7064  
    875875    (preg_match('/^Asterisk SVN-(\d+(\.\d+)*)(-?(.*))$/', $verinfo, $matches))) { 
    876876 
    877   if (version_compare($matches[1], "1.2") < 0) { 
    878     fatal("Asterisk 1.2 or 1.4 is required for this version of FreePBX. Detected version is: ".$matches[1]); 
     877  if ((version_compare($matches[1], "1.2") < 0)) { 
     878    fatal("Asterisk 1.2, 1.4, or 1.6 is required for this version of FreePBX. Detected version is: ".$matches[1]); 
    879879  } 
    880880  if (version_compare($matches[1], "1.7", "ge")) { 
     
    882882  } 
    883883  out("{$matches[1]}"); 
     884 
     885} elseif (preg_match('/^Asterisk ([ABC]\.\d+(\.\d+)*)(-?(.*))$/', $verinfo, $matches)) {  
     886  if (substr($matches[1], 0, 1) == "A") { 
     887    fatal("Asterisk Business Edition B or C is required for this version of FreePBX. Detected version is: ".$matches[1]); 
     888  } 
     889  out("{$matches[1]}"); 
     890 
    884891} elseif (preg_match('/^Asterisk SVN.+/', $verinfo)) { 
    885892  out("FAIL");