<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>When I use nathelper/rtpproxy, ice does not work well with it.<br>nathelper will rewrite the sdp media part which my ice client is not happy.<br>Then it will reply a=ice-mismatch. finally it will use rtpproxy to relay the media.<br><br>the invite:<br>m=audio 36580 RTP/AVP 124 120 111 110 0 8 101<br>....<br>a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host<br>a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host<br><br>Detail is below:<br><br><br>1) I have set up the nathelper/rtpproxy as below:<br>####&nbsp; NAT modules<br>loadmodule "nathelper.so"<br>modparam("nathelper", "natping_interval", 10)<br>modparam("nathelper", "ping_nated_only", 1)<br>modparam("nathelper", "received_avp", "$avp(received_nh)")<br><br>loadmodule "rtpproxy.so"<br>modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:12221") # CUSTOMIZE ME<br><br>loadmodule "stun.so"<br>modparam("stun", "primary_ip", "192.168.1.3")<br>modparam("stun","alternate_ip","192.168.122.1")<br><br>2) my client is linphone with ice set up.<br>3) when it make a call with ice, the sdp media get relayed:<br>INVITE sip:test2@192.168.1.3:5080 SIP/2.0<br>Record-Route: &lt;sip:192.168.1.3;lr;nat=yes&gt;<br>Via: SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bKa00d.25386e01.0<br>Via: SIP/2.0/UDP 192.168.1.3:5070;received=192.168.1.3;branch=z9hG4bK.bo~6nN-3E;rport=5070<br>From: &lt;sip:test1@192.168.1.3&gt;;tag=0tEh0Q~ly<br>To: sip:test2@192.168.1.3<br>CSeq: 20 INVITE<br>Call-ID: XvJ7qOUjnp<br>Max-Forwards: 69<br>Supported: replaces, outbound<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>Content-Type: application/sdp<br>Content-Length: 547<br>Contact: &lt;sip:test1@192.168.1.3:5070&gt;;+sip.instance="&lt;urn:uuid:866598bd-4f5e-47f9-b7fa-8be6c6883a57&gt;"<br>User-Agent: linphone/3.7.0 (belle-sip/1.3.0)<br><br>v=0<br>o=test1 1936 2136 IN IP4 192.168.1.3<br>s=Talk<br>c=IN IP4 192.168.1.3<br>t=0 0<br>a=ice-pwd:741608ce2b68ba853500cdf3<br>a=ice-ufrag:0d47513b<br>m=audio 36580 RTP/AVP 124 120 111 110 0 8 101<br>a=rtpmap:124 opus/48000<br>a=fmtp:124 useinbandfec=1; usedtx=1<br>a=rtpmap:120 SILK/16000<br>a=rtpmap:111 speex/16000<br>a=fmtp:111 vbr=on<br>a=rtpmap:110 speex/8000<br>a=fmtp:110 vbr=on<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=candidate:1 1 UDP 2130706431 192.168.1.3 7078 typ host<br>a=candidate:1 2 UDP 2130706430 192.168.1.3 7079 typ host<br>a=nortpproxy:yes<br>//////////////////<br>SIP/2.0 200 Ok<br>Via: SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bKa00d.25386e01.0<br>Via: SIP/2.0/UDP 192.168.1.3:5070;received=192.168.1.3;branch=z9hG4bK.bo~6nN-3E;rport=5070<br>From: &lt;sip:test1@192.168.1.3&gt;;tag=0tEh0Q~ly<br>To: &lt;sip:test2@192.168.1.3&gt;;tag=OsFF6CF<br>Call-ID: XvJ7qOUjnp<br>CSeq: 20 INVITE<br>User-Agent: linphone/3.7.0 (belle-sip/1.3.0)<br>Supported: replaces, outbound<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>Contact: &lt;sip:test2@192.168.1.3:5080&gt;;+sip.instance="&lt;urn:uuid:466598bd-4f5e-47f9-b7fa-8be6c6883a57&gt;"<br>Content-Type: application/sdp<br>Content-Length: 428<br>Record-route: &lt;sip:192.168.1.3;lr;nat=yes&gt;<br><br>v=0<br>o=test2 2088 1279 IN IP4 192.168.1.3<br>s=Talk<br>c=IN IP4 192.168.1.3<br>t=0 0<br>a=ice-pwd:52c18fd43896c0d573decfcd<br>a=ice-ufrag:5d79a96c<br>m=audio 7088 RTP/AVP 124 120 111 110 0 8 101<br>a=rtpmap:124 opus/48000<br>a=fmtp:124 useinbandfec=1; usedtx=1<br>a=rtpmap:120 SILK/16000<br>a=rtpmap:111 speex/16000<br>a=fmtp:111 vbr=on<br>a=rtpmap:110 speex/8000<br>a=fmtp:110 vbr=on<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=ice-mismatch<br><br><br><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>