Register phones with same extension to multiple VE via internet [message #34672] |
Sun, 25 January 2009 15:40  |
msl7868
Messages: 7 Registered: January 2009
|
Junior Member |
|
|
Help me please
I have successfully created 2 container with OpenVZ on Centos 4.7 and successuflly installed the "Trixbox/Asterix" 2.0 application.
VZ1 has extesntion 1 to 5
VZ2 also has extension 1-5
VZ1 and VZ2 has internal private IP address and are sharing one public IP address
I can definately access the internet from VZ1 and VZ2
but now I want to be able to register phones to VZ1 and VZ2 and I am unable to do that so far
I looked and read a few articles through the forum but no one actually stated step by steps on how they achieved their success
This is all new to me so please provided me with step by step instruction is possible
Any help is greatly appreciated
Thanks
|
|
|
|
Re: Register phones with same extension to multiple VE via internet [message #35502 is a reply to message #35498] |
Tue, 31 March 2009 13:40   |
msl7868
Messages: 7 Registered: January 2009
|
Junior Member |
|
|
Thanks for the reply, but can you answer this question for me.
As mentioned I have a phone 555-1212 for Customer A pointing to public IP xx.xx.xx.x on VZ1
I Also have phone# 555-1313 for customer B pointing to the same public IP xx.xx.xx.x on VZ2
If both phone are pointing to the same public IP how will it know to go to their respective container since they are both using the same port 5060
[Updated on: Tue, 31 March 2009 13:45] Report message to a moderator
|
|
|
|
Re: Register phones with same extension to multiple VE via internet [message #35523 is a reply to message #35522] |
Wed, 01 April 2009 22:05   |
|
You need to setup an INBOUND Route. You will setup SIP to check for the DID that is in the request and forward that call to the correct extension, trunk or to another system as needed.
I currently support a few 100 people on one box. I am using a VE that syncs this to two different machines that I can move the VE to the second box if needed.
I am growing faster than a single asterisk box can handle so now I am doing SER that will handle all of the SIP reg and communicaitons and let Asterisk be the media servers. So I setup the same VE and let the SER pass the calls to the defined group of asterisk boxes for that inbound call or outbound call.
Jason
|
|
|
|
|
Re: Register phones with same extension to multiple VE via internet [message #35549 is a reply to message #35548] |
Thu, 02 April 2009 21:47  |
|
It doesn't matter if you 200 different IPaddresses and 100 Asterisk boxes. You can connect them all together with trunks or DUNDI and create routes between the boxes. Each Asterisk box should know of the other boxes. DUNDI might be easier for you unless you use SER. SER give you a lot more control over the SIP traffic. If you plan to use IAX you will need to have them register direct to asterisk boxes. You can even have one config of asterisk for all of the boxes. But you would need to USE qualify= yes and write the logic in an AGI to find the extension on which ever PBX they are on. Or you could use Real-time asterisk and setup mysql so you can track down extensions to a box faster.
You might be better off using SER (SIP Express Router) then you can pass the calls to any of the asterisk boxes and use them just for the media stream. It would be much easier to manage and would scale better.
You can create a VE that has SER that listens to port 5060 and would route the calls to the Asterisk boxes to complete the calls based on LCR, Extension or what ever server handles that service.
There are many ways to do this. It might take longer to do the SER to many asterisk setup, but in the long run it would be the best solutions and allow you allot more flexibility. SER has a lot of open-source users and is used by most VOIP providers. So it will scale the best. Asterisk sucks when trying to control the SIP and handle routing on a true SIP level.. Also, you can product much better CDR records.
Jason
|
|
|