[asterisk-dev] Two version of asterisk on the same server

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Mar 30 11:45:10 CDT 2009


On Mon, Mar 30, 2009 at 05:05:43PM +0200, Serge Berney wrote:
> Hi !
> 
>  
> 
> I'm planning to upgrade our 1.4.23 asterisk server to 1.6.0.6.
> 
> v1.4 is on our production iPBX.
> 
>  
> 
> Is it possible to compile 1.6.0.6 on the same server, configure
> everything for 1.6 (during this time, 1.4 must continue to run) and when
> ready, disable 1.4 and run on 1.6 (and if needed, rollback to 1.4) ?
> 
> So can I run 2 version of asterisk on the same server (running on 2
> different SIP port for sure !)
> 
>  
> 
> In case of impossibility, how can I manage migration between 2 version ?
> Is it possible to upgrade v1.4 to 1.6 with a rollback way ?

One tool that can help you with you migration is the script live_ast
which is included with Asterisk as of 1.6.2 under contrib/scripts (but
you can simply fetch it with:
wget http://svn.digium.com/svn/asterisk/trunk/contrib/scripts/live_ast )

It allows you to "install" a separate copy of Asterisk onto the
directory live/ under your source directory. It will also create a
wrapper script live/asterisk that can be used as the asterisk binary for
most scripts. You can edit live/etc/asterisk/asterisk.conf to use either
configuration in /etc/asterisk or your own separate copy in
live/etc/asterisk/ .

This allows you to easily switch to 1.6.0.6 for testing and easily
switch between the production version and the testing version.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list