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:- Press the upgrade button below.
- 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.
- 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.
- 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 "
";
+ }
?>