incoming from public ip reply with private ip

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
lilipst
Posts: 8
Joined: Mon Sep 23, 2013 2:55 am
Location: Jakarta, Indonesia

incoming from public ip reply with private ip

Post by lilipst »

1. Brekeke Product Name and Version: 3.2.4.1/366 (eval license)

2. Java version:

3. OS type and the version: Windows 2008 Server

4. UA (phone), gateway or other hardware/software involved: no idea, probably self made

5. Your problem:

Brekeke sip server have 2 NICs for public static ip and private ip. UA clients reside on public ip.

UA (10.199.81.69) --- internet --- (202.73.xx.xx) bkk sip serv (192.168.164.47) --- (192.168.164.91) tbsipsrv

202.73.xx.xx is bkk sip serv public static ip (goes to internet)
192.168.164.47 is bkk sip server private ip (local)
Both ip's can be seen on status page.

tbsipsrv is another sip server (not Brekeke), on same local private network (192.168.164.91)

UA (10.199.81.69) on public (internet) can register to bkk sip serv through 202.73.xx.xx

Target call: from UA ==> bkk sip serv ==> tbsipsvr

Code: Select all

UA                           bkk sip serv
(10.199.81.69)              (202.70.xx.xx)
INVITE                =>
                      <=      100 trying
                      <=      180 ringing
                      <=      200 OK
Problem: in 180 ringing and 200 OK reply, bkk sip serv
put private ip in contact or record-route header.

Contact: sip:08881852033@192.168.164.47:5060

Why bkk sip serv use private ip for these replies eventhough call came to 202.70.xx.xx (public). This make UA send to wrong ip for 200 OK acknowledge (it will send ACK to 192.168.164.47 instead of 202.70.xx.xx)

Thanks
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

is 10.199.81.69 a public IP?
http://en.wikipedia.org/wiki/Private_network

you can try put 10.199.81.69 in bkk configuration / system pag
"External IP address pattern" field

Brekeke may treat 10.x.x.x as a public ip
lilipst
Posts: 8
Joined: Mon Sep 23, 2013 2:55 am
Location: Jakarta, Indonesia

Post by lilipst »

Yes Hope,
10.199.81.69 is public IP, moreover it's dynamic public IP.
UA connected to internet.
I think put this IP into External IP address pattern is not a solution because it's a dynamic public IP. UA can get different public IP when it's connect to internet at some other time.

Is there any parameter that I can use to force BSS use IP 202.70.xx.xx for its contact and record-route header if the incoming call to BSS come through 202.70.xx.xx (BSS public static ip) like the example above.

UA (dynamic ip) ----> (INTERNET) ---> (202.70.xx.xx)BSS
In "deploy patern" in dial-plan rule maybe?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

> 10.199.81.69 is public IP

http://www.whois.net/ip-address-lookup/10.199.81.69

10.199.81.69 is not a public IP address. It should be a private IP address.

If you are using it as a public IP, it will cause a problem.
lilipst
Posts: 8
Joined: Mon Sep 23, 2013 2:55 am
Location: Jakarta, Indonesia

Post by lilipst »

I found the solution. In deploy pattern I add:
$ifsrc=202.70.xx.xx
$ifdst=192.168.164.47
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Within a valid network deployment, Brekeke SIP Server picks interface IP address automatically as you want.

It means you don't have to add $ifsrc and $ifdst if you configure the network correctly.
Post Reply