Multiple Asterisk versions on one server


I have been running multiple Asterisk instances on one server for years now.
But is it possible to run two instances with two different versions.

I need that to support some clients who for some reason cannot run newer versions.
It is also nice for testing new versions.

Google didn’t find any examples of this.

I can see two options.

  1. Build the image my self, and configure it with version dependent install locations.
  2. Use chroot.

Anyone done this?

Regards Kjeld