Index: /modules/branches/2.9/versionupgrade/module.xml =================================================================== --- /modules/branches/2.9/versionupgrade/module.xml (revision 12763) +++ /modules/branches/2.9/versionupgrade/module.xml (revision 13148) @@ -2,6 +2,7 @@ versionupgrade 2.10 Upgrade Tool - 2.9.0beta1.1 + 2.9.0.0 + *2.9.0.0* add warning about min Asterisk version *2.9.0beta1.1* #5396 *2.9.0beta1.0* update for 2.10 upgrade @@ -10,4 +11,7 @@ This module allows the current version to be upgraded to the next major version. For example, if the current version is 2.7.X it will bump up to the latest 2.8.X version available after finsished. Using an example of 2.7.0 as the current version, it provides a button that will bump up the major version number to 2.8.0alpha0 which has the effect of directing Module Admin to use the 2.8 repository. Doing such will then allow the user to upgrade all require modules and framework to enable 2.8. Installing the module is safe and will provide more details about how to upgrade. You will have ample opportunity to decide if you want to do the upgrade after installation. + + You will be updated to the next version. You should make sure you have a full backup of your current system. Version 2.10+ requires Asterisk 1.8 or later. It may work with Asterisk 1.6 although there are known potential issues. Once you upgrade, you can not downgrade. It may be possible to restore a backup though restoring a system that has been upgraded can run into some anomalies later on though will usually get you back to where you were. + tool Index: /modules/branches/2.9/versionupgrade/functions.inc.php =================================================================== --- /modules/branches/2.9/versionupgrade/functions.inc.php (revision 12755) +++ /modules/branches/2.9/versionupgrade/functions.inc.php (revision 13148) @@ -13,4 +13,6 @@ $versionupgrade_beta1_0_version = $versionupgrade_beta1_version.'.0'; $versionupgrade_upgrade_final = $versionupgrade_upgrade_ver.'.0'; + +$asterisk_min_version = '1.8'; function versionupgrade_setversion($version) { Index: /modules/branches/2.9/versionupgrade/page.versionupgrade.php =================================================================== --- /modules/branches/2.9/versionupgrade/page.versionupgrade.php (revision 9867) +++ /modules/branches/2.9/versionupgrade/page.versionupgrade.php (revision 13148) @@ -33,4 +33,7 @@ global $versionupgrade_upgrade_final; global $versionupgrade_beta1_version; +global $asterisk_min_version; + +global $amp_conf; if (version_compare_freepbx($version, $versionupgrade_alpha_version,"lt") && $upgraderequest == "UPGRADE") { @@ -72,4 +75,9 @@ echo sprintf(_("

WARNING - YOU WILL BE UPGRADED TO VERSION %s %s

This module will allow you to upgrade to FreePBX version %s from the current version, %s, that you are running.

The upgrade process is a simple but multi-step process that you should complete all at one time. As always when upgrading a system, it is advisable that you complete this process when the system is not actively being used.

The steps you will take are:
  1. Press the upgrade button below.
  2. Go to Module Admin, check for online updates, and upgrade the FreePBX Framework module ONLY from the online repository which will now be connected to version %s.
  3. Now, Check for online updates again and upgrade all other modules that have upgrades available. If you get dependency warnings, just repeat the process until all your modules have been upgraded.
  4. Now press the Apply Configuration bar.

Once you have completed these step you will be upgraded to the new %s version and you may disable or remove this module if it does not do so automatically.

"),$versionupgrade_upgrade_final,$versionupgrade_status,$versionupgrade_upgrade_ver,$version,$versionupgrade_upgrade_ver,$versionupgrade_upgrade_ver); + if (version_compare($amp_conf['ASTVERSION'],$asterisk_min_version,'lt')) { + echo "

"; + echo sprintf(_("WARNING: Version %s REQUIRES Asterisk Version %s. Although most functionality will work properly if running earlier versions you may run into issues and are advised to upgrade to Asterisk %s. You are running Asterisk %s"), $versionupgrade_upgrade_final, $asterisk_min_version, $asterisk_min_version, $amp_conf['ASTVERSION']); + echo "

"; + } ?>