Author |
Message |
jac Brekeke Junior Member
Joined: 02 Apr 2014 Posts: 5
Location: Univ. of Alcala, Madrid (Spain)
|
Posted: Wed Apr 02, 2014 3:38 am Post subject: How to cross calls between two servers |
|
|
1. Brekeke Product Name and Version:
3.3.4 Academic
2. Java version:
3. OS type and the version:
win XP
4. UA (phone), gateway or other hardware/software involved:
X-Lite / Jitsi
5. Your problem:
How to cross calls between two domains served by different servers.
I want to set-up two servers, each one in a different lab serving their own registered clients and then I would like to enable calls from clients in one lab to clients in the other one. How do I point one server to the other?
As far as I undestand the docs an upperRegister transfers the register comands as if clients belonging to the other domain but I want the calls be routed through both servers.
Many thanks in advance for your help I am new to this field. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Apr 02, 2014 8:47 am Post subject: |
|
|
Rule: Accept calls from the other server | Matching Patterns | $request = ^INVITE $addr = other_server_IP_address To = sip:(.+)@
| Deploy Patterns | $auth = false To = sip:%1@
|
Rule: Send calls to the other server | Matching Patterns | $request = ^INVITE $registered = false
| Deploy Patterns | $target = other_server_IP_address
|
|
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Wed Apr 02, 2014 10:40 am Post subject: |
|
|
The above rules work.
Note you don't have to use UpperRegister feature. Let you disable it. |
|
Back to top |
|
jac Brekeke Junior Member
Joined: 02 Apr 2014 Posts: 5
Location: Univ. of Alcala, Madrid (Spain)
|
Posted: Fri Apr 04, 2014 8:49 am Post subject: it works indeed! |
|
|
Many thanks, I've been stuck by the installation of the second server but just tried and everything works as intended.
From the rules I understand that any INVITE to a non registered user will be redirected to the other server address and that any INVITE from the other server will be processed without authentication.
Now that I see how the rules work I would try to restrict redirection to the IP address range that is actually served by the other server.
Hope I did not have to come back again in a while... |
|
Back to top |
|
Laurie Brekeke Master Guru
Joined: 07 Jan 2008 Posts: 245
|
Posted: Fri Apr 04, 2014 4:10 pm Post subject: |
|
|
Quote: |
From the rules I understand that any INVITE to a non registered user will be redirected to the other server address and that any INVITE from the other server will be processed without authentication. |
That's right.
Quote: |
Now that I see how the rules work I would try to restrict redirection to the IP address range that is actually served by the other server. |
You can check the IP address range with $addrRange method.
http://wiki.brekeke.com/wiki/DialPlan-Matching-addrRange |
|
Back to top |
|
|