Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
incoming from public ip reply with private ip
Author Message
lilipst
Brekeke Junior Member


Joined: 23 Sep 2013
Posts: 8
Location: Jakarta, Indonesia

PostPosted: Mon Dec 02, 2013 1:55 am    Post subject: incoming from public ip reply with private ip Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Dec 02, 2013 3:28 pm    Post subject: Reply with quote

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
Back to top
View user's profile
lilipst
Brekeke Junior Member


Joined: 23 Sep 2013
Posts: 8
Location: Jakarta, Indonesia

PostPosted: Mon Dec 02, 2013 6:33 pm    Post subject: Reply with quote

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.

Quote:

UA (dynamic ip) ----> (INTERNET) ---> (202.70.xx.xx)BSS

In "deploy patern" in dial-plan rule maybe?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 501

PostPosted: Mon Dec 02, 2013 10:45 pm    Post subject: Reply with quote

> 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.
Back to top
View user's profile
lilipst
Brekeke Junior Member


Joined: 23 Sep 2013
Posts: 8
Location: Jakarta, Indonesia

PostPosted: Mon Dec 02, 2013 10:51 pm    Post subject: Reply with quote

I found the solution. In deploy pattern I add:
$ifsrc=202.70.xx.xx
$ifdst=192.168.164.47
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 501

PostPosted: Mon Dec 02, 2013 11:41 pm    Post subject: Reply with quote

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.
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