How to properly upgrade Asterisk from 22.6 to 22.8 inside FreePBX (without breaking PJSIP)

Hello everyone,

I would like some guidance from the community regarding the correct procedure to upgrade the Asterisk version inside a FreePBX installation.

Current environment

  • FreePBX: 17 (installed using the official installation script)

  • Asterisk: 22.6.0 (compiled during FreePBX installation)

Recently the system had library updates and I started experiencing PJSIP related issues (authentication errors and transport problems). Because of that, I am considering upgrading Asterisk from 22.6 → 22.8, but I want to do it in the supported way and avoid breaking FreePBX modules or dialplan compatibility.

If anyone has already done this upgrade path or has official documentation, I would appreciate the guidance.

Thank you!

Anytime you want to update asterisk you just run asterisk-version-switch (type that as root in the cli) and that should take care without risks.

Thanks Sergio, could you tell me if version 23 is compatible with FreePBX 17 or which version is better after 22.6, which is the one I’m currently using and has errors?

There is no “better” really for what you’re experiencing. There’s no known Asterisk issues, aside from configuration related, that would cause authentication and transport errors in 22.6.

That would replace his self-compiled version with the Sangoma binaries I believe.

I just went though this and in fact I’ll probably need to do it again. This is for when you compile Asterisk during the FreePBX install which you said you did. If you mis-spoke and ARE using the Sangoma binaries then do what siobera said to do.

  1. Run the backup in FreePBX

  2. Copy the extension post configs (if you have one) since the FreePBX backup does not do that

  3. Go to your build directory and do a make uninstall. Do NOT do a make uninstall-all!

  4. Do an apt-get update and update your toolchains and everything in Debian

  5. Download and build 22.8

  6. Do a make install. Do NOT do a make install samples or make install pbx

  7. Restore from FreePBX backup

  8. Restore any custom confs

Reboot

Your off to the races