[SR-Users] No voice issue with NAT

JinKevin kevin.jzh at hotmail.com
Sun Jun 20 16:01:47 CEST 2010


But the private IP was already replaced with following by the NAT/FW:

 

c=IN IP4 113.108.Z.1
t=0 0
m=audio 14794 RTP/AVP 18 101
a=fmtp:18 annexb=yes


Even if not, the Kamailio also will fix it by the fix_nated_sdp.  Most likely,  there's a firewall which does the NAT and is aware of the SIP call as it replaces the 172.16.114.1 in both the SDP and the via header, and could be something wrong btw the kamailio and the firewall.

 

Please suggest if any special config required on Kamailio.

 

Thanks,

Kevin

 


Date: Sun, 20 Jun 2010 08:24:19 -0400
From: kamailio.org at spam.lublink.net
To: sr-users at lists.sip-router.org
Subject: Re: [SR-Users] No voice issue with NAT


The eyebeam has referenced a private address in the SDP ( 172.16.114.1 ), it is my understanding that since this IP is not routable, you'll never get any audio. I believe the purpose of RTPProxy is to bridge calls that are behind private IPs. 

I believe you'll need an RTP Proxy or Media Proxy to fully support crossing NATs. 

David


On 10-06-20 06:50 AM, JinKevin wrote: 


Hi,
 
My kamailio and application server are with Public IPs so the system uses nathelper without RTPProxy.  It works with the eyebeam behind the ADSL router, but I cannot hear any voice ( ethereal capture on the PC shows no RTP from the application server) when try it in a Hotel or with a 3G data card. Below is the SIP messages for the issue, is there anyway can fix the issuse?  
============Start===========================
UAC  ----> NAT/Firewall(FW)
 
INVITE sip:0216666 at 210.x.y.15 SIP/2.0
Via: SIP/2.0/UDP 172.16.114.1:51828;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:2001 at 172.16.114.1:12461>
To: "videoConf"<sip:0216666 at 210.x.y.15>
From: "2001"<sip:2001 at 210.x.y.15>;tag=db06e72d
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
 CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 230
v=0
o=- 7 2 IN IP4 172.16.114.1
s=CounterPath eyeBeam 1.5
c=IN IP4 172.16.114.1
t=0 0
m=audio 27384 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv

NAT/FW ---> Kamailio(KAM)
INVITE sip:0216666 at 210.x.y.15 SIP/2.0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>
CSeq: 1 INVITE
Max-Forwards: 70
Contact: <sip:2001 at 113.108.Z.1:13202>
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 230
Content-Type: application/sdp
v=0
o=- 7 2 IN IP4 172.16.114.1
s=CounterPath eyeBeam 1.5
c=IN IP4 113.108.Z.1
t=0 0
m=audio 14794 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv

NAT/FW ---> Kamailio(KAM)
INVITE sip:0216666 at 210.x.y.15 SIP/2.0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>
CSeq: 1 INVITE
Max-Forwards: 70
Contact: <sip:2001 at 113.108.Z.1:13202>
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 230
Content-Type: application/sdp
v=0
o=- 7 2 IN IP4 172.16.114.1
s=CounterPath eyeBeam 1.5
c=IN IP4 113.108.Z.1
t=0 0
m=audio 14794 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv

SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 172.16.114.1:51828;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 210.x.y.15:5060>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>
CSeq: 1 INVITE
Server: kamailio (3.0.2 (sparc64/solaris))
Content-Length: 0
KAM ---> AS
INVITE sip:0216666 at 210.x.y.3:5060 SIP/2.0
Record-Route: <sip:210.x.y.15;lr=on;nat=yes>
Via: SIP/2.0/UDP 210.x.y.15;branch=z9hG4bK316e.08d5.0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>
CSeq: 1 INVITE
Max-Forwards: 69
Contact: <sip:2001 at 113.108.Z.1:12461>
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 257
Content-Type: application/sdp
v=0
o=- 7 2 IN IP4 113.108.Z.1
s=CounterPath eyeBeam 1.5
c=IN IP4 113.108.Z.1
t=0 0
m=audio 14794 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=oldmediaip:172.16.114.1

KAM ---> NAT/FW 
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.114.1:51828;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Record-Route: <sip:210.x.y.15;lr;nat=yes>
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 210.x.y.15:5060>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
CSeq: 1 INVITE
Allow: INVITE,ACK,BYE,CANCEL,PRACK,NOTIFY,INFO,OPTIONS,UPDATE
Supported: 100rel,timer,precondition
Contact: <sip:0216666 at 210.x.y.3:5060;transport=udp>
Content-Length: 0
AS ---> KAM
   
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 210.x.y.15;branch=z9hG4bK316e.08d5.0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Record-Route: <sip:210.x.y.15;lr=on;nat=yes>
To: "videoConf" <sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
From: "2001" <sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
CSeq: 1 INVITE
Content-Length: 222
Content-Type: application/sdp
Session-Expires: 1800;refresher=uas
Require: timer
Allow: INVITE,ACK,BYE,CANCEL,PRACK,NOTIFY,INFO,OPTIONS,UPDATE
Supported: 100rel, timer,precondition
Contact: <sip:0216666 at 210.x.y.3:5060;transport=udp>
v=0
o=- 15638 1276800468 IN IP4 210.x.y.8
s=-
c=IN IP4 210.x.y.11
t=0 0
m=audio 30654 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=ptime:20
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
 
KAM -----> NAT/FW
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Record-Route: <sip:210.x.y.15;lr=on;nat=yes>
To: "videoConf" <sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
From: "2001" <sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
CSeq: 1 INVITE
Content-Length: 222
Content-Type: application/sdp
Session-Expires: 1800;refresher=uas
Require: timer
Allow: INVITE,ACK,BYE,CANCEL,PRACK,NOTIFY,INFO,OPTIONS,UPDATE
Supported: 100rel, timer,precondition
Contact: <sip:0216666 at 210.x.y.3:5060;transport=udp>
v=0
o=- 15638 1276800468 IN IP4 210.x.y.8
s=-
c=IN IP4 210.x.y.11
t=0 0
m=audio 30654 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=ptime:20
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
 
NAT/FW ----> UAC
SIP/2.0 200 Ok
Via: SIP/2.0/UDP 172.16.114.1:51828;branch=z9hG4bK-d8754z-3870be05b936bf38-1---d8754z-;rport=12461
Record-Route: <sip:210.x.y.15;lr;nat=yes>
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 210.x.y.15:5060>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
CSeq: 1 INVITE
Session-Expires: 1800;refresher=uas
Require: timer
Allow: INVITE,ACK,BYE,CANCEL,PRACK,NOTIFY,INFO,OPTIONS,UPDATE
Supported: 100rel,timer,precondition
Contact: <sip:0216666 at 210.x.y.3:5060;transport=udp>
Content-Length: 222
Content-Type: application/sdp
v=0
o=- 15638 1276800468 IN IP4 210.x.y.8
s=-
c=IN IP4 210.x.y.11
t=0 0
m=audio 30654 RTP/AVP 18 101
a=fmtp:18 annexb=yes
a=fmtp:101 0-15
a=ptime:20
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000

UAC ---> NAT/FW
ACK sip:0216666 at 210.x.y.3:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 172.16.114.1:51828;branch=z9hG4bK-d8754z-ff50226f4e20b91c-1---d8754z-;rport
Max-Forwards: 70
Route: <sip:210.x.y.15;lr;nat=yes>
Contact: <sip:2001 at 172.16.114.1:12461>
To: "videoConf"<sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
From: "2001"<sip:2001 at 210.x.y.15:5060>;tag=db06e72d
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
CSeq: 1 ACK
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 0
 
NAT/FW ---->  KAM 
      
ACK sip:0216666 at 210.x.y.3:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-ff50226f4e20b91c-1---d8754z-;rport
Route: <sip:210.x.y.15;lr;nat=yes>
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
CSeq: 1 ACK
Max-Forwards: 70
Contact: <sip:2001 at 113.108.Z.1:13202>
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 0
 
KAM ---->  AS 
   
ACK sip:0216666 at 210.x.y.3:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 210.x.y.15;branch=0
Via: SIP/2.0/UDP 113.108.Z.1:13945;branch=z9hG4bK-d8754z-ff50226f4e20b91c-1---d8754z-;rport=12461
Call-ID: NzYwMzhjOTc5NWJlY2Q5YzFiN2JlZGNjNDlkNzMyNmU.
From: "2001"<sip:2001 at 113.108.Z.1:12302>;tag=db06e72d
To: "videoConf"<sip:0216666 at 210.x.y.15>;tag=a72e08e3-09d3-4cd2-a0d2-d33113440310
CSeq: 1 ACK
Max-Forwards: 69
Contact: <sip:2001 at 113.108.Z.1:12461>
User-Agent: eyeBeam release 1102q stamp 51814
Content-Length: 0
==============End================
 
 
Thanks,
Kevin




搜索本应是彩色的,快来体验新一代搜索引擎-必应,精美图片每天换哦! 立即试用! 
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
  
 		 	   		  
_________________________________________________________________
想知道明天天气如何?必应告诉你!
http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&form=MICHJ2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100620/be5a0278/attachment.htm>


More information about the sr-users mailing list