sip server using Private IP

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
bensly
Posts: 27
Joined: Fri Nov 02, 2007 3:56 am

sip server using Private IP

Post by bensly »

1. Brekeke Product Name and Version:
brekeke sip server 3.1.7.8/348.2
2. Java version:
1.7.0_21
3. OS type and the version:
Windows
4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
i have a sip client loaded in android mobile.i am using 3G network to register the mobile with sip server.

in sip server registration i am able to find 2 ip address

162.176.xxx.xxx
208.54.xxx.xxx

problem 1.
when android client call another client call established
and 1 way audio. because sip server send RTP to 162.176.xxx.xxx.insted of 208.54.xxx.xxx.so no audio on android client.

problem 2.
when other client call android client,invite message not reach on android client .because sip server sends invite to 162.176.xxx.xxx ip address,instead of 208.54.xxx.xxx


but the same case works with other scenario. other android mobile registered with following ip address.
10.35.xxx.xxx
112.79.xxx.xxx
here sip server using 112.79.xxx.xxx for call and rtp. so here works.

i have enabled RTP relay - on , port mapping - source port, Send UA's remote address - no, NAT traversal - on

kindly anybody help me on this

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

Post by hope »

try the following dial plan rule for register and re-register phones

matching patterns:
$request = ^REGISTER

deploy patterns
$continue = true
&register.contact.remote = true
&register.contact.nat = true
bensly
Posts: 27
Joined: Fri Nov 02, 2007 3:56 am

Post by bensly »

i have tried with the dial plan,but still its using the private ip address for RTP and INVITE.
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Which Android client is it?

Disable or Enable global IP detection (such as STUN) in the client's settings.
bensly
Posts: 27
Joined: Fri Nov 02, 2007 3:56 am

Post by bensly »

i am using imsdroid client. i have disabled stun and ice. but sip server behive correctly and works if private and public ip address like this

10.35.xxx.xxx
112.79.xxx.xxx

but i don't know why sip server behive differently if ip address like this

162.176.xxx.xxx
208.54.xxx.xxx
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Are you using 162.176.xxx.xxx as a private IP address?
It is not a private IP ..
http://ipaddress.is/162.176.0.1

Let you set a correct private IP address there.
https://en.wikipedia.org/wiki/Private_network


If you can't change these IP addresses, enable STUN/ICE in the client. it may force the client to put 208.54.xxx.xxx in SIP packets.
bensly
Posts: 27
Joined: Fri Nov 02, 2007 3:56 am

Post by bensly »

Thanks for the information.if i enable ICE the packet size goes beyond MTU limit size 1500 bytes.so call landing issues coming in low bandwith network.so to avoid that i have disabled that option.can you let me know how to instruct to sip server to use 208.54.xxx.xxx for signaling and RTP, if ip detected like 10.35.xxx.xxx ?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Use TCP or TLS instead of UDP.
If so you don't have to care about the limit size of SIP packet.
Or try another SIP client such as X-Lite.


> let me know how to instruct to sip server to use 208.54.xxx.xxx for signaling and RTP, if ip detected like 10.35.xxx.xxx ?

Put your SIP packets in http://www.pcapr.net/
I want to see which part of SIP packet is wrong.

Anyway, using a correct private IP address in SIP client is the best way to solve the problem.
Post Reply