[asterisk-dev] Muti Asterisk

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jun 21 02:26:39 CDT 2010


On Sat, Jun 19, 2010 at 05:32:58AM -0400, CDR wrote:
> Could you send me details of your installation?

What you need is:

1. Start asterisk with a custom asterisk.conf
2. Fix pathes in asterisk.conf
3. Fix other common resources, such as port numbers

(3) is rather obvious: you can't have two Asterisk instances listening
on UDP port 5060. Either fix the port number, or maybe you want only one
of them to listen on SIP? Alternatively, keep multiple IP addresses, and
assign one per instance.

As for (2), look into contrib/scripts/live_ast[1]

(1) takes a really simple tweak into any Asterisk startup script.
Expecially if you already have a wrapper such as the one generated by
live_ast. Stopping / Restarting it in a reliable way may be slightly
more tricky, though. Specifically the test for "is the asterisk
executable running" is not reliable enough, and you should probably rely
solely on PID files, or on a babysitting parent process.

[1] http://svn.digium.com/svn/asterisk/trunk/contrib/scripts/live_ast

-- 
               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