Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How to cross calls between two servers
Author Message
jac
Brekeke Junior Member


Joined: 02 Apr 2014
Posts: 5
Location: Univ. of Alcala, Madrid (Spain)

PostPosted: Wed Apr 02, 2014 3:38 am    Post subject: How to cross calls between two servers Reply with quote

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
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Apr 02, 2014 8:47 am    Post subject: Reply with quote


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
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Wed Apr 02, 2014 10:40 am    Post subject: Reply with quote

The above rules work.

Note you don't have to use UpperRegister feature. Let you disable it.
Back to top
View user's profile
jac
Brekeke Junior Member


Joined: 02 Apr 2014
Posts: 5
Location: Univ. of Alcala, Madrid (Spain)

PostPosted: Fri Apr 04, 2014 8:49 am    Post subject: it works indeed! Reply with quote

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
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 242

PostPosted: Fri Apr 04, 2014 4:10 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1