Author |
Message |
bensly Brekeke Addict
![](images/spacer.gif)
Joined: 02 Nov 2007 Posts: 27
|
Posted: Wed Jul 03, 2013 4:56 am Post subject: sip server using Private IP |
|
|
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 |
|
hope Brekeke Master Guru
![](images/spacer.gif)
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Jul 03, 2013 9:06 am Post subject: |
|
|
try the following dial plan rule for register and re-register phones
Matching Patterns | $request = ^REGISTER
| Deploy Patterns | $continue = true ®ister.contact.remote = true ®ister.contact.nat = true
|
|
|
Back to top |
|
bensly Brekeke Addict
![](images/spacer.gif)
Joined: 02 Nov 2007 Posts: 27
|
Posted: Thu Jul 04, 2013 10:51 pm Post subject: |
|
|
i have tried with the dial plan,but still its using the private ip address for RTP and INVITE. |
|
Back to top |
|
james Brekeke Master Guru
![](images/spacer.gif)
Joined: 10 Dec 2007 Posts: 498
|
Posted: Fri Jul 05, 2013 11:09 am Post subject: |
|
|
Which Android client is it?
Disable or Enable global IP detection (such as STUN) in the client's settings. |
|
Back to top |
|
bensly Brekeke Addict
![](images/spacer.gif)
Joined: 02 Nov 2007 Posts: 27
|
Posted: Sat Jul 06, 2013 1:44 am Post subject: |
|
|
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 |
|
james Brekeke Master Guru
![](images/spacer.gif)
Joined: 10 Dec 2007 Posts: 498
|
Posted: Sun Jul 07, 2013 9:52 am Post subject: |
|
|
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 |
|
bensly Brekeke Addict
![](images/spacer.gif)
Joined: 02 Nov 2007 Posts: 27
|
Posted: Sun Jul 07, 2013 11:51 pm Post subject: |
|
|
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 |
|
james Brekeke Master Guru
![](images/spacer.gif)
Joined: 10 Dec 2007 Posts: 498
|
Posted: Mon Jul 08, 2013 1:01 pm Post subject: |
|
|
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 |
|
|