How to cross calls between two servers

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
jac
Posts: 5
Joined: Wed Apr 02, 2014 2:14 am
Location: Univ. of Alcala, Madrid (Spain)

How to cross calls between two servers

Post by jac »

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.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

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
-------------------------------
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

The above rules work.

Note you don't have to use UpperRegister feature. Let you disable it.
jac
Posts: 5
Joined: Wed Apr 02, 2014 2:14 am
Location: Univ. of Alcala, Madrid (Spain)

it works indeed!

Post by jac »

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...
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

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.

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-M ... -addrRange
Post Reply