[OpenSIPS-Users] udp or tcp for nat traversal?

george wu aihuawu2012 at 163.com
Wed Oct 15 16:31:41 CEST 2014


Hi, Bogdan:

The following is the tcpdump with mediaproxy on.
I can't see any problem. That means it is linphone problem which can't understand ice?
Actually as I said before, if I use tcp/tls, ice actually works on linphone.  
What should I do more to test it?


George Wu

/// part 1
    124.193.138.210.5758 > 103.24.228.158.5060: SIP, length: 1291
    INVITE sip:test2 at 103.24.228.158 SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.3:5070;branch=z9hG4bK.FohJ-Pjji;rport
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Max-Forwards: 70
    Supported: outbound
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
    Content-Type: application/sdp
    Content-Length: 730
    Contact: <sip:test1 at 124.193.138.210:5758>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
    User-Agent: Linphonec/3.7.0 (belle-sip/1.3.2)
   
    v=0
    o=test1 1433 1939 IN IP4 192.168.1.3
    s=Talk
    c=IN IP4 192.168.1.3
    t=0 0
    a=ice-pwd:84505b9d160c756b6b138ac5
    a=ice-ufrag:5e5508d3
    a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
    m=audio 5909 RTP/AVP 111 110 0 8 101
    c=IN IP4 124.193.138.210
    a=rtpmap:111 speex/16000
    a=fmtp:111 vbr=on
    a=rtpmap:110 speex/8000
    a=fmtp:110 vbr=on
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=rtcp:5060
    a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host
    a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host
    a=candidate:2 2 UDP 1694498814 124.193.138.210 5060 typ srflx raddr 192.168.1.3 rport 7079
    a=candidate:2 1 UDP 1694498815 124.193.138.210 5909 typ srflx raddr 192.168.1.3 rport 7078
   
22:20:18.692288 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 333)
    103.24.228.158.5060 > 124.193.138.210.5758: SIP, length: 305
    SIP/2.0 100 Giving a try
    Via: SIP/2.0/UDP 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.FohJ-Pjji;rport=5758
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Server: OpenSIPS (1.11.2-tls (x86_64/linux))
    Content-Length: 0
   
   
22:20:18.692464 IP (tos 0x10, ttl 64, id 55675, offset 0, flags [+], proto UDP (17), length 1500)
    103.24.228.158.5060 > 124.193.138.210.6001: SIP, length: 1472
    INVITE sip:test2 at 192.168.1.3:5080 SIP/2.0
    Record-Route: <sip:103.24.228.158;lr;nat=yes>
    Via: SIP/2.0/UDP 103.24.228.158:5060;branch=z9hG4bK57b9.3415f0e2.0
    Via: SIP/2.0/UDP 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.FohJ-Pjji;rport=5758
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Max-Forwards: 69
    Supported: outbound
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
    Content-Type: application/sdp
    Content-Length: 872
    Contact: <sip:test1 at 124.193.138.210:5758>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
    User-Agent: Linphonec/3.7.0 (belle-sip/1.3.2)
   
    v=0
    o=test1 1433 1939 IN IP4 192.168.1.3
    s=Talk
    c=IN IP4 103.24.228.158
    t=0 0
    a=ice-pwd:84505b9d160c756b6b138ac5
    a=ice-ufrag:5e5508d3
    a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
    m=audio 50002 RTP/AVP 111 110 0 8 101
    c=IN IP4 103.24.228.158
    a=rtpmap:111 speex/16000
    a=fmtp:111 vbr=on
    a=rtpmap:110 speex/8000
    a=fmtp:110 vbr=on
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=rtcp:50003
    a=candidate:R9ee41867 1 UDP 16777215 103.24.228.158 50002 typ relay
    a=candidate:R9ee41867 2 UDP 16777214 103.24.228.158 50003 typ relay
    a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host
    a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host
    a=candidate:2 2 UDP 1694498814 124.193.138.210 5060 typ srflx raddr 192.168[|sip]
22:20:18.692499 IP (tos 0x10, ttl 64, id 55676, offset 0, flags [+], proto UDP (17), length 1500)
    103.24.228.158.5060 > 124.193.138.210.6001: SIP, length: 1472
    INVITE sip:test2 at 124.193.138.210:6001 SIP/2.0
    Record-Route: <sip:103.24.228.158;lr;nat=yes>
    Via: SIP/2.0/UDP 103.24.228.158:5060;branch=z9hG4bK57b9.3415f0e2.1
    Via: SIP/2.0/UDP 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.FohJ-Pjji;rport=5758
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Max-Forwards: 69
    Supported: outbound
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
    Content-Type: application/sdp
    Content-Length: 872
    Contact: <sip:test1 at 124.193.138.210:5758>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
    User-Agent: Linphonec/3.7.0 (belle-sip/1.3.2)
   
    v=0
    o=test1 1433 1939 IN IP4 192.168.1.3
    s=Talk
    c=IN IP4 103.24.228.158
    t=0 0
    a=ice-pwd:84505b9d160c756b6b138ac5
    a=ice-ufrag:5e5508d3
    a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
    m=audio 50002 RTP/AVP 111 110 0 8 101
    c=IN IP4 103.24.228.158
    a=rtpmap:111 speex/16000
    a=fmtp:111 vbr=on
    a=rtpmap:110 speex/8000
    a=fmtp:110 vbr=on
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=rtcp:50003
    a=candidate:R9ee41867 1 UDP 16777215 103.24.228.158 50002 typ relay
    a=candidate:R9ee41867 2 UDP 16777214 103.24.228.158 50003 typ relay
    a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host
    a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host
    a=candidate:2 2 UDP 1694498814 124.193.138.210 5060 typ srflx raddr 192[|sip]
22:20:19.301123 IP (tos 0x10, ttl 64, id 55677, offset 0, flags [+], proto UDP (17), length 1500)
    103.24.228.158.5060 > 124.193.138.210.6001: SIP, length: 1472
    INVITE sip:test2 at 192.168.1.3:5080 SIP/2.0
    Record-Route: <sip:103.24.228.158;lr;nat=yes>
    Via: SIP/2.0/UDP 103.24.228.158:5060;branch=z9hG4bK57b9.3415f0e2.0
    Via: SIP/2.0/UDP 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.FohJ-Pjji;rport=5758
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Max-Forwards: 69
    Supported: outbound
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
    Content-Type: application/sdp
    Content-Length: 872
    Contact: <sip:test1 at 124.193.138.210:5758>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
    User-Agent: Linphonec/3.7.0 (belle-sip/1.3.2)
   
    v=0
    o=test1 1433 1939 IN IP4 192.168.1.3
    s=Talk
    c=IN IP4 103.24.228.158
    t=0 0
    a=ice-pwd:84505b9d160c756b6b138ac5
    a=ice-ufrag:5e5508d3
    a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
    m=audio 50002 RTP/AVP 111 110 0 8 101
    c=IN IP4 103.24.228.158
    a=rtpmap:111 speex/16000
    a=fmtp:111 vbr=on
    a=rtpmap:110 speex/8000
    a=fmtp:110 vbr=on
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=rtcp:50003
    a=candidate:R9ee41867 1 UDP 16777215 103.24.228.158 50002 typ relay
    a=candidate:R9ee41867 2 UDP 16777214 103.24.228.158 50003 typ relay
    a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host
    a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host
    a=candidate:2 2 UDP 1694498814 124.193.138.210 5060 typ srflx raddr 192.168[|sip]
22:20:19.301208 IP (tos 0x10, ttl 64, id 55678, offset 0, flags [+], proto UDP (17), length 1500)
    103.24.228.158.5060 > 124.193.138.210.6001: SIP, length: 1472
    INVITE sip:test2 at 124.193.138.210:6001 SIP/2.0
    Record-Route: <sip:103.24.228.158;lr;nat=yes>
    Via: SIP/2.0/UDP 103.24.228.158:5060;branch=z9hG4bK57b9.3415f0e2.1
    Via: SIP/2.0/UDP 192.168.1.3:5070;received=124.193.138.210;branch=z9hG4bK.FohJ-Pjji;rport=5758
    From: <sip:test1 at 103.24.228.158>;tag=OGCx7gRon
    To: sip:test2 at 103.24.228.158
    CSeq: 20 INVITE
    Call-ID: xHqVFVS-lk
    Max-Forwards: 69
    Supported: outbound
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
    Content-Type: application/sdp
    Content-Length: 872
    Contact: <sip:test1 at 124.193.138.210:5758>;+sip.instance="<urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57>"
    User-Agent: Linphonec/3.7.0 (belle-sip/1.3.2)
   
    v=0
    o=test1 1433 1939 IN IP4 192.168.1.3
    s=Talk
    c=IN IP4 103.24.228.158
    t=0 0
    a=ice-pwd:84505b9d160c756b6b138ac5
    a=ice-ufrag:5e5508d3
    a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
    m=audio 50002 RTP/AVP 111 110 0 8 101
    c=IN IP4 103.24.228.158
    a=rtpmap:111 speex/16000
    a=fmtp:111 vbr=on
    a=rtpmap:110 speex/8000
    a=fmtp:110 vbr=on
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=rtcp:50003
    a=candidate:R9ee41867 1 UDP 16777215 103.24.228.158 50002 typ relay
    a=candidate:R9ee41867 2 UDP 16777214 103.24.228.158 50003 typ relay
    a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host
    a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host
    a=candidate:2 2 UDP 1694498814 124.193.138.210 5060 typ srflx raddr 192[|sip]
22:20:20.413939 IP (tos 0x10, ttl 64, id 55679, offset 0, flags [+], proto UDP (17), length 1500)
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141015/cef24f94/attachment-0001.htm>


More information about the Users mailing list