Note: Make sure you back up your existing PBX configuration before making any major changes to our PBX
FreePBX has a simple script that lets you change the major Asterisk version that you are using. To change the Asterisk version simply SSH into your PBX (as root) and run:
bash
asterisk-version-switch
On current FreePBX versions, you’ll see a menu like this:
bash
Current version: Asterisk 22.3.0 is running
(LTS) = Long Term Support | (EOL) = End of Life | (S) = Standard
Press 1 for Asterisk 18 (LTS)
Press 2 for Asterisk 18 (Certified)
Press 3 for Asterisk 20 (LTS)
Press 4 for Asterisk 20 (Certified)
Press 5 for Asterisk 21 (S)
Press 6 for Asterisk 22 (LTS)
Press q to exit and not change your Asterisk Version
Choose the Asterisk version you need by pressing the corresponding number. Note that Asterisk 20 is the last version to support chan_sip, so if you choose a newer one, make sure all your endpoints have been migrated.
Once The change has been completed FreePBX will re-write all configuration files and reload Asterisk. This will stop calls for around 5-10 minutes.
