<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Thank you very much, the mediaproxy works with ice quite nicely.<br><br>George Wu<br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2014-10-12 06:17:47, "Adrian Georgescu" &lt;ag@ag-projects.com&gt; wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Try MediaProxy, it handles ICE negotiation properly.<div><br></div><div>Adrian<br><div><br><div><div><div>On 11 Oct 2014, at 10:26, george wu &lt;<a href="mailto:aihuawu2012@163.com">aihuawu2012@163.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: Arial;">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 <a href="sip:test2@192.168.1.3:5080">sip:test2@192.168.1.3:5080</a> SIP/2.0<br>Record-Route: &lt;<a href="sip:192.168.1.3;lr;nat=yes">sip:192.168.1.3;lr;nat=yes</a>&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;<a href="sip:test1@192.168.1.3">sip:test1@192.168.1.3</a>&gt;;tag=0tEh0Q~ly<br>To: <a href="sip:test2@192.168.1.3">sip:test2@192.168.1.3</a><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;<a href="sip:test1@192.168.1.3:5070">sip:test1@192.168.1.3:5070</a>&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;<a href="sip:test1@192.168.1.3">sip:test1@192.168.1.3</a>&gt;;tag=0tEh0Q~ly<br>To: &lt;<a href="sip:test2@192.168.1.3">sip:test2@192.168.1.3</a>&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;<a href="sip:test2@192.168.1.3:5080">sip:test2@192.168.1.3:5080</a>&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;<a href="sip:192.168.1.3;lr;nat=yes">sip:192.168.1.3;lr;nat=yes</a>&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><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">--<br>Adrian<br><br><br></div>

</div>
<br></div></div></div></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>