Thanks for quick response. I only have the options for 1.8, 11 and 13Experimental.
1.8 and 13 give error.
[[email protected] ~]# asterisk-version-switch
Each time you run this script we create a new log file at
/var/log/pbx/asterisk-switch-version which will include the date and time
and what version of Asterisk you had and what version you switched to
Pick the Asterisk Version you would like to change to.
Press 1 and the Enter key for Asterisk 1.8
Press 2 and the Enter key for Asterisk 11
Press 3 and the Enter key for Asterisk 13 EXPERIMENTAL
Press 9 and the Enter key to exit and not change your Asterisk Version
1
You picked asterisk18
Clearing yum cache
Loaded plugins: fastestmirror, kmod
Cleaning repos: base extras pbx schmooze-commercial updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Switching to asterisk18
Loaded plugins: fastestmirror, kmod
Setting up Yum Shell
Setting up Remove Process
Determining fastest mirrors
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
–> Running transaction check
—> Package asterisk11.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
–> Finished Dependency Resolution
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error building transaction: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
–> Running transaction check
–> Finished Dependency Resolution
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
Leaving Shell
asterisk18 had an issue being installed and did not complete
Review the console logs and resolve the RPM conflict first
echo and rerun this script to try again.
[[email protected] ~]# asterisk-version-switch
Each time you run this script we create a new log file at
/var/log/pbx/asterisk-switch-version which will include the date and time
and what version of Asterisk you had and what version you switched to
Pick the Asterisk Version you would like to change to.
Press 1 and the Enter key for Asterisk 1.8
Press 2 and the Enter key for Asterisk 11
Press 3 and the Enter key for Asterisk 13 EXPERIMENTAL
Press 9 and the Enter key to exit and not change your Asterisk Version
2
You picked asterisk11
Clearing yum cache
Loaded plugins: fastestmirror, kmod
Cleaning repos: base extras pbx schmooze-commercial updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Switching to asterisk11
Loaded plugins: fastestmirror, kmod
Setting up Yum Shell
Setting up Remove Process
Determining fastest mirrors
base | 2.0 kB 00:00
base/primary | 2.5 MB 00:00
base 6402/6402
extras | 1.3 kB 00:00
extras/primary | 6.8 kB 00:00
extras 15/15
pbx | 2.9 kB 00:00
pbx/primary_db | 2.2 MB 00:00
schmooze-commercial | 1.3 kB 00:00
schmooze-commercial/primary | 17 kB 00:00
schmooze-commercial 111/111
updates | 1.3 kB 00:00
updates/primary | 644 kB 00:00
updates 1456/1456
Setting up Install Process
–> Running transaction check
—> Package asterisk11.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53 will be reinstalled
—> Package asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53 will be reinstalled
—> Package asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
—> Package asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123 will be reinstalled
–> Finished Dependency Resolution
Success resolving dependencies
–> Running transaction check
–> Finished Dependency Resolution
================================================================================
Package Arch Version Repository
Size
Reinstalling:
asterisk11 x86_64 11.25.3-1.shmz65.1.123 pbx 4.5 k
asterisk11-addons x86_64 11.25.3-1.shmz65.1.123 pbx 3.6 k
asterisk11-addons-bluetooth x86_64 11.25.3-1.shmz65.1.123 pbx 33 k
asterisk11-addons-core x86_64 11.25.3-1.shmz65.1.123 pbx 27 k
asterisk11-addons-mysql x86_64 11.25.3-1.shmz65.1.123 pbx 37 k
asterisk11-addons-ooh323 x86_64 11.25.3-1.shmz65.1.123 pbx 324 k
asterisk11-core x86_64 11.25.3-1.shmz65.1.123 pbx 2.6 M
asterisk11-curl x86_64 11.25.3-1.shmz65.1.123 pbx 18 k
asterisk11-dahdi x86_64 11.25.3-1.shmz65.1.123 pbx 274 k
asterisk11-doc x86_64 11.25.3-1.shmz65.1.123 pbx 14 k
asterisk11-flite x86_64 11.25.2-1.shmz65.1.53 pbx 7.0 k
asterisk11-flite-debuginfo x86_64 11.25.2-1.shmz65.1.53 pbx 12 k
asterisk11-odbc x86_64 11.25.3-1.shmz65.1.123 pbx 59 k
asterisk11-voicemail x86_64 11.25.3-1.shmz65.1.123 pbx 78 k
Transaction Summary
Reinstall 14 Package(s)
Total download size: 3.5 M
Installed size: 14 M
Downloading Packages:
(1/14): asterisk11-11.25.3-1.shmz65.1.123.x86_64.rpm | 4.5 kB 00:00
(2/14): asterisk11-addons-11.25.3-1.shmz65.1.123.x86_64. | 3.6 kB 00:00
(3/14): asterisk11-addons-bluetooth-11.25.3-1.shmz65.1.1 | 33 kB 00:00
(4/14): asterisk11-addons-core-11.25.3-1.shmz65.1.123.x8 | 27 kB 00:00
(5/14): asterisk11-addons-mysql-11.25.3-1.shmz65.1.123.x | 37 kB 00:00
(6/14): asterisk11-addons-ooh323-11.25.3-1.shmz65.1.123. | 324 kB 00:00
(7/14): asterisk11-core-11.25.3-1.shmz65.1.123.x86_64.rp | 2.6 MB 00:00
(8/14): asterisk11-curl-11.25.3-1.shmz65.1.123.x86_64.rp | 18 kB 00:00
(9/14): asterisk11-dahdi-11.25.3-1.shmz65.1.123.x86_64.r | 274 kB 00:00
(10/14): asterisk11-doc-11.25.3-1.shmz65.1.123.x86_64.rp | 14 kB 00:00
(11/14): asterisk11-flite-11.25.2-1.shmz65.1.53.x86_64.r | 7.0 kB 00:00
(12/14): asterisk11-flite-debuginfo-11.25.2-1.shmz65.1.5 | 12 kB 00:00
(13/14): asterisk11-odbc-11.25.3-1.shmz65.1.123.x86_64.r | 59 kB 00:00
(14/14): asterisk11-voicemail-11.25.3-1.shmz65.1.123.x86 | 78 kB 00:00
Total 1.5 MB/s | 3.5 MB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : asterisk11-core-11.25.3-1.shmz65.1.123.x86_64 1/14
Installing : asterisk11-addons-core-11.25.3-1.shmz65.1.123.x86_64 2/14
Installing : asterisk11-addons-mysql-11.25.3-1.shmz65.1.123.x86_64 3/14
Installing : asterisk11-addons-ooh323-11.25.3-1.shmz65.1.123.x86_64 4/14
Installing : asterisk11-doc-11.25.3-1.shmz65.1.123.x86_64 5/14
Installing : asterisk11-voicemail-11.25.3-1.shmz65.1.123.x86_64 6/14
Installing : asterisk11-dahdi-11.25.3-1.shmz65.1.123.x86_64 7/14
Installing : asterisk11-11.25.3-1.shmz65.1.123.x86_64 8/14
Installing : asterisk11-addons-bluetooth-11.25.3-1.shmz65.1.123.x86_6 9/14
Installing : asterisk11-addons-11.25.3-1.shmz65.1.123.x86_64 10/14
Installing : asterisk11-flite-11.25.2-1.shmz65.1.53.x86_64 11/14
Installing : asterisk11-curl-11.25.3-1.shmz65.1.123.x86_64 12/14
Installing : asterisk11-odbc-11.25.3-1.shmz65.1.123.x86_64 13/14
Installing : asterisk11-flite-debuginfo-11.25.2-1.shmz65.1.53.x86_64 14/14
Verifying : asterisk11-curl-11.25.3-1.shmz65.1.123.x86_64 1/14
Verifying : asterisk11-core-11.25.3-1.shmz65.1.123.x86_64 2/14
Verifying : asterisk11-flite-debuginfo-11.25.2-1.shmz65.1.53.x86_64 3/14
Verifying : asterisk11-addons-mysql-11.25.3-1.shmz65.1.123.x86_64 4/14
Verifying : asterisk11-addons-ooh323-11.25.3-1.shmz65.1.123.x86_64 5/14
Verifying : asterisk11-flite-11.25.2-1.shmz65.1.53.x86_64 6/14
Verifying : asterisk11-11.25.3-1.shmz65.1.123.x86_64 7/14
Verifying : asterisk11-odbc-11.25.3-1.shmz65.1.123.x86_64 8/14
Verifying : asterisk11-doc-11.25.3-1.shmz65.1.123.x86_64 9/14
Verifying : asterisk11-addons-11.25.3-1.shmz65.1.123.x86_64 10/14
Verifying : asterisk11-voicemail-11.25.3-1.shmz65.1.123.x86_64 11/14
Verifying : asterisk11-addons-core-11.25.3-1.shmz65.1.123.x86_64 12/14
Verifying : asterisk11-dahdi-11.25.3-1.shmz65.1.123.x86_64 13/14
Verifying : asterisk11-addons-bluetooth-11.25.3-1.shmz65.1.123.x86_6 14/14
Installed:
asterisk11.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53
asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53
asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123
asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123
Finished Transaction
Leaving Shell
asterisk11 has now been verified to be installed
Checking to see if you have g729 installed
G729 is not installed so moving on
Checking to see if you have res_fax_digium installed
res_fax_digium is not installed so moving on
Restarting Asterisk for Changes to take effect with the new version
Please wait…
!!!amportal is depreciated. Please use fwconsole!!!
forwarding all commands to ‘fwconsole’
Running FreePBX shutdown…
RestApps Server is not running
UCP Node Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] 3 secs
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Stopping DAHDi for Digium Cards
DAHDi Stopped
Queue Callback Server is not running
Running FreePBX startup…
Running Asterisk pre from Dahdiconfig module
Wanrouter: No valid Sangoma Hardware found, if you have no Sangoma cards this is OK
Starting DAHDi for Digium Cards
DAHDi Started
Running Asterisk pre from Firewall module
Running Asterisk pre from Pms module
Running Asterisk pre from Sysadmin module
Running Sysadmin Hooks
Restarting fail2ban
fail2ban Restarted
Updating License Information for 86119035
Checking Vpn server
Starting Asterisk…
[-------->-------------------] 1 sec
Broadcast message from [email protected] (Thu Nov 8 08:17:16 2018):
Firewall service now starting.
[============================] 4 secs
Asterisk Started
Running Asterisk post from Dahdiconfig module
Running Asterisk post from Endpoint module
Running Asterisk post from Pagingpro module
Running Asterisk post from Restapps module
Starting RestApps Server…
[>---------------------------] 1 sec
Started RestApps Server. PID is 7233
Running Asterisk post from Ucpnode module
Starting UCP Node Server…
[>---------------------------] 1 sec
Started UCP Node Server. PID is 7306
Running Asterisk post from Vqplus module
Queues Pro is not licensed.
Stopping fail2ban: [ OK ]
Ensuring logfiles are presentStarting fail2ban: [ OK ]
Regenerate FreePBX Dialplan for new Asterisk Version
Unable to access the running directory (Permission denied). Changing to ‘/’ for compatibility.
Unable to access the running directory (Permission denied). Changing to ‘/’ for compatibility.
Unable to access the running directory (Permission denied). Changing to ‘/’ for compatibility.
Please update your modules and reload Asterisk by browsing to your server.
Successfully reloaded
[[email protected] ~]# fwconsole ma upgradeall
No repos specified, using: [commercial,standard] from last GUI settings
Upgrading: restart, sangomacrm, xmpp, zulu
Upgrading restart…
Starting restart download…
Processing restart
Verifying local module download…Verified
Extracting…Done
Module restart successfully downloaded
Unable to install module restart:
- Failed to install Bulk Phone Restart due to the following conflicting module(s): EndPoint Manager
Updating Hooks…Done
Upgrading sangomacrm…
Starting sangomacrm download…
Processing sangomacrm
Verifying local module download…Verified
Extracting…Done
Module sangomacrm successfully downloaded
Detected Missing Dependency of: zulu 13.0.54.31.6
Downloading Missing Dependency of: zulu 13.0.54.31.6
Processing zulu
Verifying local module download…Verified
Extracting…Done
Module zulu successfully downloaded
Detected Missing Dependency of: arimanager 13.0.4
Downloading Missing Dependency of: arimanager 13.0.4
Processing arimanager
Verifying local module download…Verified
Extracting…Done
Module arimanager successfully downloaded
Installing Missing Dependency of: arimanager 13.0.4
Installed Missing Dependency of: arimanager 13.0.4
Enabling Missing Dependency of: arimanager 13.0.4
The following error(s) occured:
- Requires engine asterisk (>= 12), you have: asterisk 11.25.3
Unable to resolve dependencies for module sangomacrm:
Updating Hooks…Done
Upgrading xmpp…
Starting xmpp download…
Processing xmpp
Verifying local module download…Verified
Extracting…Done
Module xmpp successfully downloaded
Installing/Updating MongoDB…MongoDB is not installed
Unable to install module xmpp:
- Failed to run installation scripts
Updating Hooks…Done
Upgrading zulu…
Starting zulu download…
Processing zulu
Verifying local module download…Verified
Extracting…Done
Module zulu successfully downloaded
Detected Missing Dependency of: arimanager 13.0.4
Downloading Missing Dependency of: arimanager 13.0.4
Processing arimanager
Verifying local module download…Verified
Extracting…Done
Module arimanager successfully downloaded
Installing Missing Dependency of: arimanager 13.0.4
Installed Missing Dependency of: arimanager 13.0.4
Enabling Missing Dependency of: arimanager 13.0.4
The following error(s) occured:
- Requires engine asterisk (>= 12), you have: asterisk 11.25.3
Unable to resolve dependencies for module zulu:
Updating Hooks…Done
All upgrades done!
Updating Hooks…Done
Selecting 13 gets me this
Pick the Asterisk Version you would like to change to.
Press 1 and the Enter key for Asterisk 1.8
Press 2 and the Enter key for Asterisk 11
Press 3 and the Enter key for Asterisk 13 EXPERIMENTAL
Press 9 and the Enter key to exit and not change your Asterisk Version
3
You picked asterisk13
Clearing yum cache
Loaded plugins: fastestmirror, kmod
Cleaning repos: base extras pbx schmooze-commercial updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Switching to asterisk13
Loaded plugins: fastestmirror, kmod
Setting up Yum Shell
Setting up Remove Process
Determining fastest mirrors
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
–> Running transaction check
—> Package asterisk11.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-bluetooth.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-mysql.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-addons-ooh323.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-core.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-curl.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-dahdi.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-doc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-flite.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-flite-debuginfo.x86_64 0:11.25.2-1.shmz65.1.53 will be erased
—> Package asterisk11-odbc.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
—> Package asterisk11-voicemail.x86_64 0:11.25.3-1.shmz65.1.123 will be erased
–> Finished Dependency Resolution
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error building transaction: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
–> Running transaction check
–> Finished Dependency Resolution
http://yum.freepbxdistro.org/shmz-os/6.5/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
Leaving Shell
asterisk13 had an issue being installed and did not complete
Review the console logs and resolve the RPM conflict first
echo and rerun this script to try again.