Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
sip server using Private IP
Author Message
bensly
Brekeke Addict


Joined: 02 Nov 2007
Posts: 27

PostPosted: Wed Jul 03, 2013 4:56 am    Post subject: sip server using Private IP Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Jul 03, 2013 9:06 am    Post subject: Reply with quote

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
Back to top
View user's profile
bensly
Brekeke Addict


Joined: 02 Nov 2007
Posts: 27

PostPosted: Thu Jul 04, 2013 10:51 pm    Post subject: Reply with quote

i have tried with the dial plan,but still its using the private ip address for RTP and INVITE.
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 497

PostPosted: Fri Jul 05, 2013 11:09 am    Post subject: Reply with quote

Which Android client is it?

Disable or Enable global IP detection (such as STUN) in the client's settings.
Back to top
View user's profile
bensly
Brekeke Addict


Joined: 02 Nov 2007
Posts: 27

PostPosted: Sat Jul 06, 2013 1:44 am    Post subject: Reply with quote

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


Joined: 10 Dec 2007
Posts: 497

PostPosted: Sun Jul 07, 2013 9:52 am    Post subject: Reply with quote

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.
Back to top
View user's profile
bensly
Brekeke Addict


Joined: 02 Nov 2007
Posts: 27

PostPosted: Sun Jul 07, 2013 11:51 pm    Post subject: Reply with quote

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


Joined: 10 Dec 2007
Posts: 497

PostPosted: Mon Jul 08, 2013 1:01 pm    Post subject: Reply with quote

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