How to Route the call to Registered SIP Clients

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

How to Route the call to Registered SIP Clients

Post by skb007 »

1. Brekeke Product Name and Version:3

2. Java version:1.8

3. OS type and the version:RHEL7

4. UA (phone), gateway or other hardware/software involved:NA

5. Your problem:
BSS has 2 NICs, one is configured with public IP (example 2.2.2.2) and another NIC with private IP 10.10.10.10.

SIP Clients users are registered to BSS using 10.10.10.10 and al the SIP clients are on private subnet 10.10.10.0/24.

UAC having public IP address (1.1.1.1) will send the calls to BSS on public IP anf BSS will route the calls to SIP Clients on private IP subnet


UAC(1.1.1.1) ---->(2.2.2.2)BSS(10.10.10.10)-->Registered SIP Clients(10.10.10.0/24)


Will the following work:

Matching Patterns
$request= ^INVITE
$addr = ^1\.1\.1\.1
To = sip:(.+)@
$registered(%1) = true
$regAddr(%1) = (.+)

Deploy Patterns
To = sip:%1@%2
$b2bua = true
$rtp = true
$ifsrc = 2.2.2.2
&net.rtp.ifsrc = 2.2.2.2
&net.rtp.bindsrc = 2.2.2.2
$ifdst = 10.10.10.10
$net.rtp.ifdst = 10.10.10.10
$net.rtp.binddst = 10.10.10.10
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

This might work.
[Matching Patterns]
$request = ^INVITE
To = sip:(.+)@
$registered = true

[Deploy Patterns]
To = sip:%1@
$b2bua = true
Post Reply