[SR-Users] No voice issue with NAT

David kamailio.org at spam.lublink.net
Sun Jun 20 14:24:19 CEST 2010


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
>
>
> ------------------------------------------------------------------------
> 搜索本应是彩色的,快来体验新一代搜索引擎-必应,精美图片每天换哦! 立即试
> 用! <http://cn.bing.com/?form=CRMADS%20>
>
>
> _______________________________________________
> 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
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100620/2ed61dee/attachment-0001.htm>


More information about the sr-users mailing list