vivek@staff.ownmail.com
2006-Mar-06 03:15 UTC
[Asterisk-Users] Two asterisks on one machine
Hello friends, Can I run two asterisks running simultaneously on the same machine? I want one to run v1.0.2 for h323 ( which is an old and running production system ) and one for sip implementation. I wonder how it can be done since they will want access to the same ports and ip addresses. Does anyone know to do this or has done this before? Please share your experiences please. With warm regards. Vivek J. Joshi. vivek@staff.ownmail.com Trikon electronics Pvt. Ltd. --New opinions often appear first as jokes and fancies, then as blasphemies and treason, then as questions open to discussion, and finally as established truths.
You could run a virtual machine. I'd try xen, uml, and vmware in that order (vmware would be the easiest/quickest to setup, but is more of a resource-hog than xen or uml). Assign a separate ip to the virtual server, setup asterisk, and you're all set. BTW, just curious but why can't you run one asterisk install with both h323 and sip? It'd simplify things and use less resources than running a virtual server, assuming it works for you. Another idea, if one's solely for h323 and the other's solely for sip (neither will be running both), then you could compile asterisk twice, using different directories for each install. I don't think this would work if both needed to use the same ports. I'm guessing you want to bridge the h323 asterisk to the sip asterisk? If not, but you do want to use sip on both, perhaps you can use port 5060 on one and 5061 for the other. Couldn't bridge them, but both could talk to the outside world (that is, maybe they could, I haven't tried this and do not know what's involved). Running one in a virtual server is probably going to be the easiest way to get two asterisk processes to coexist on the same physical server. Joseph Tanner On 3/6/06, vivek@staff.ownmail.com <vivek@staff.ownmail.com> wrote:> Hello friends, > Can I run two asterisks running simultaneously on the same machine? I want one to run v1.0.2 for h323 ( which is an old and running production system ) and one for sip implementation. I wonder how it can be done since they will want access to the same ports and ip addresses. > Does anyone know to do this or has done this before? > Please share your experiences please. > > > > > > With warm regards. > > Vivek J. Joshi. > > vivek@staff.ownmail.com > Trikon electronics Pvt. Ltd. > > --New opinions often appear first as jokes and fancies, then as blasphemies and treason, then as questions open to discussion, and finally as established truths. > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >
vivek@staff.ownmail.com
2006-Mar-06 07:46 UTC
[Asterisk-Users] Two asterisks on one machine
Hi friend, I am running asterisk in production and it is being used by many people using h323. I cannot afford to change all their configurations. Also, the newer asterisk dosenot support inband for h323 properly. Thats why I want two asterisks one for backward compatibility and one for sip which I want to implement. With warm regards. Vivek J. Joshi. vivek@staff.ownmail.com Trikon electronics Pvt. Ltd. --New opinions often appear first as jokes and fancies, then as blasphemies and treason, then as questions open to discussion, and finally as established truths. Joseph Tanner wrote:> You could run a virtual machine. I'd try xen, uml, and vmware in that > order (vmware would be the easiest/quickest to setup, but is more of a > resource-hog than xen or uml). Assign a separate ip to the virtual > server, setup asterisk, and you're all set. > > BTW, just curious but why can't you run one asterisk install with both > h323 and sip? It'd simplify things and use less resources than > running a virtual server, assuming it works for you. > > Another idea, if one's solely for h323 and the other's solely for sip > (neither will be running both), then you could compile asterisk twice, > using different directories for each install. I don't think this > would work if both needed to use the same ports. I'm guessing you > want to bridge the h323 asterisk to the sip asterisk? If not, but you > do want to use sip on both, perhaps you can use port 5060 on one and > 5061 for the other. Couldn't bridge them, but both could talk to the > outside world (that is, maybe they could, I haven't tried this and do > not know what's involved). Running one in a virtual server is > probably going to be the easiest way to get two asterisk processes to > coexist on the same physical server. > > Joseph Tanner > > On 3/6/06, vivek@staff.ownmail.com <vivek@staff.ownmail.com> wrote: > > Hello friends, > > Can I run two asterisks running simultaneously on the same machine? I want one to run v1.0.2 for h323 ( which is an old and running production system ) and one for sip implementation. I wonder how it can be done since they will want access to the same ports and ip addresses. > > Does anyone know to do this or has done this before? > > Please share your experiences please. > > > > > > > > > > > > With warm regards. > > > > Vivek J. Joshi. > > > > vivek@staff.ownmail.com > > Trikon electronics Pvt. Ltd. > > > > --New opinions often appear first as jokes and fancies, then as blasphemies and treason, then as questions open to discussion, and finally as established truths. > > > > > > > > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > >
On Mon, Mar 06, 2006 at 03:45:49PM +0530, vivek@staff.ownmail.com wrote:> Hello friends, > Can I run two asterisks running simultaneously on the same machine? > I want one to run v1.0.2 for h323 ( which is an old and running > production system ) and one for sip implementation. I wonder how it > can be done since they will want access to the same ports and ip addresses. > Does anyone know to do this or has done this before? > Please share your experiences please.You can tweak the installation to be in a totally separate environment. Can be tricky, but will work if you're careful enough. What you can't easily share is the ports they listen on. If one copy listens on SIP and bound to UDP port 5060 on 0.0.0.0, another instance can bind to that port. You can try to have one version serve as a proxy to another,or similar setting. But this is bad.