<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hello,</div><div><br></div><div>We were doing as suggested below and we got:</div><div><br></div><div><font size="2" face="Arial">2011-06-24 17:50:17 Registered contact
"sip:fmwkphsx@192.168.6.100:37289" for sip:vm@80.97.X.X at
80.97.X.X:5060;transport=udp (expires in 600 seconds).<br>Detected NAT type:
Blocked<br>vm@80.97.X.X> /rtp<br>Output of RTP statistics and ICE
negotiation results on console is now activated<br>vm@80.97.X.X> /audio
bll@80.97.X.X<br>Initiating SIP session from 'sip:vm@80.97.X.X' to
'sip:bll@80.97.X.X' via sip:80.97.X.X:5060;transport=udp...<br>Audio
session established using "G722" codec at 16000Hz<br>Audio RTP endpoints
192.168.6.100:50000 <-> 80.97.X.X:50006<br>Remote SIP User Agent is
"Bria 3 release 3.2.1 stamp 62387"<br>2011-06-24 17:51:18 RTP statistics: RTT=0
ms, packet loss=0.0%, jitter RX/TX=0/0 ms<br>SIP session with
sip:bll@80.97.XX ended by remote party<br>Session duration was 10
seconds<br></font><br></div><div>From this is missing the ICE negotiation as you pasted below, this means that we do not have a working ICE?</div><div><br></div><div>We have the following settings for mediaproxy module:</div><div><div>modparam("mediaproxy", "mediaproxy_socket", "/tmp/dispatcher.sock")</div><div>modparam("mediaproxy", "mediaproxy_timeout", 500)</div><div>modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")</div><div>modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)")</div><div>modparam("mediaproxy", "ice_candidate", "low-priority")</div></div><div><br></div><div><br></div><div><br></div><div>Thank you,</div><div>Liviu</div><div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Adrian Georgescu
<ag@ag-projects.com><br><b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list <users@lists.opensips.org><br><b><span style="font-weight: bold;">Sent:</span></b> Thu, June 23, 2011 5:11:42 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] ICE How-To<br></font><br>
<base>For testing ICE you can use on Mac, Linux or Windows this command line client:<div><br></div><div><span><a target="_blank" href="http://sipsimpleclient.com/wiki/sip_session">http://sipsimpleclient.com/wiki/sip_session</a></span></div><div><br></div><div>type /rtp and you can see the whole ICE negotiating results:</div><div><br></div><div><div><a rel="nofollow" ymailto="mailto:adi@umts.ro" target="_blank" href="mailto:adi@umts.ro">adi@umts.ro</a>> /rtp</div><div>Output of RTP statistics and ICE negotiation results on console is now activated</div><div><a rel="nofollow" ymailto="mailto:adi@umts.ro" target="_blank" href="mailto:adi@umts.ro">adi@umts.ro</a>> /audio <a rel="nofollow" ymailto="mailto:ag@sip2sip.info" target="_blank" href="mailto:ag@sip2sip.info">ag@sip2sip.info</a></div><div>Initiating SIP session from 'sip:adi@umts.ro' to 'sip:ag@sip2sip.info' via <a
rel="nofollow">sip:81.23.228.150:5060;transport=udp</a>...</div><div> </div><div>ICE negotiation succeeded in 0s:644</div><div> </div><div>Local ICE candidates:</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:55656 <span class="Apple-tab-span" style="white-space:pre;">        </span> type srflx</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:55656 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:55656 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:55656 <span class="Apple-tab-span" style="white-space:pre;">        </span> type
host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:55890 <span class="Apple-tab-span" style="white-space:pre;">        </span> type srflx</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:55890 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:55890 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:55890 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51782 <span class="Apple-tab-span" style="white-space:pre;">
        </span> type prflx</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51783 <span class="Apple-tab-span" style="white-space:pre;">        </span> type prflx</div><div> </div><div>Remote ICE candidates:</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51780 <span class="Apple-tab-span" style="white-space:pre;">        </span> type relay</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51781 <span class="Apple-tab-span" style="white-space:pre;">        </span> type relay</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span> type srflx</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:55876 <span
class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span> type srflx</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:54037
<span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span> type host</div><div> </div><div>ICE connectivity check results:</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:55656 <--> 192.168.1.122:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:55656 <--> 10.211.55.2:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:55656 <--> 10.37.129.2:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTCP)<span
class="Apple-tab-span" style="white-space:pre;">        </span> 192.168.1.122:55890 <--> 192.168.1.122:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.211.55.2:55890 <--> 10.211.55.2:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 10.37.129.2:55890 <--> 10.37.129.2:54037 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:55656 <--> 95.97.50.27:55876 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 95.97.50.27:55890 <--> 95.97.50.27:54037 <span class="Apple-tab-span" style="white-space:pre;">
        </span>Succeeded</div><div>(RTP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51782 <--> 81.23.228.150:51780 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div>(RTCP)<span class="Apple-tab-span" style="white-space:pre;">        </span> 81.23.228.150:51783 <--> 81.23.228.150:51781 <span class="Apple-tab-span" style="white-space:pre;">        </span>Succeeded</div><div> </div><div>Audio session established using "G722" codec at 16000Hz</div><div>Audio RTP endpoints 192.168.1.122:55656 (ICE type host) <-> 192.168.1.122:55876 (ICE type host)</div></div><div><br></div><div><div><div>On Jun 23, 2011, at 11:23 AM, Barsan Liviu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial, helvetica, sans-serif;font-size:10pt;"><div
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">Hi Saul,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">I mean by 'the rest' that I don't have to write code in the opensips.cfg to have ICE ( e.g. see which kind of NAT it is etc.), just to set the parameters for the mediaproxy as written below.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">I think I understood from your answer what I have to do.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">In the same time I'm thinking how to test ICE, do you think a proper way is to make two tests:</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">1. Two clients
behind a router that does not have symmetric nat (e.g. conic nat) and server with public IP, in this case the media stream should follow the STUN way (not via relay).</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">2. Two clients behind a router with symmetric nat, in this case media stream should go via relay (mediaproxy).</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">Obviously we should have clients with ICE support, we use Bria 3.2, 2.5.4 or Blink.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">And to follow the media streams I have to install CDRTool and FreeRadius server.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">Do you think this scenario is suitable to prove the ICE capability of the server?</div><div
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">Thanks,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">Liviu</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial, helvetica, sans-serif;font-size:10pt;"><br><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial, helvetica, sans-serif;font-size:10pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight:bold;">From:</span></b><span class="Apple-converted-space"> </span>Saúl Ibarra Corretgé <<a rel="nofollow" ymailto="mailto:saul@ag-projects.com" target="_blank" href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>><br><b><span style="font-weight:bold;">To:</span></b><span class="Apple-converted-space"> </span>OpenSIPS users
mailling list <<a rel="nofollow" ymailto="mailto:users@lists.opensips.org" target="_blank" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><b><span style="font-weight:bold;">Sent:</span></b><span class="Apple-converted-space"> </span>Thu, June 23, 2011 10:20:47 AM<br><b><span style="font-weight:bold;">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [OpenSIPS-Users] ICE How-To<br></font><br>Hi,<br><br>On Jun 22, 2011, at 5:35 PM, Barsan Liviu wrote:<br><br>> Hello,<br>><span class="Apple-converted-space"> </span><br>> We have built until now an OpenSIPs-MediaProxy server which knows far end NAT traversal, Messaging and Presence (basic), it works reliable.<br><span>> Now we would like to add ICE capability to this solution and we are not sure on How-To. According to<span class="Apple-converted-space"> </span><span><a target="_blank"
href="http://mediaproxy-ng.org/wiki/ICE">http://mediaproxy-ng.org/wiki/ICE</a>, we understood that is enough to set the mediaproxy modules parameters as written in the site, something like:</span></span><br>><span class="Apple-converted-space"> </span><br>> ice_candidate="high-priority"<br>> ice_candidate_avp="$avp(s:ice_priority)"<br>><span class="Apple-converted-space"> </span><br><br>The AVP is meant to be used for fine grained control, the ice_candidate module parameter should be enough in most cases.<br><br>> It is enough to have these settings?<br>> The rest will be done by MediaProxy and OpenSIPs automatically?<br>><span class="Apple-converted-space"> </span><br><br>What do you mean by 'the rest' ? If you client is offering ICE and OpenSIPS/MediaProxy are mangling the signaling, that setting will make MediaProxy modify the SDP in such a way that ICE is not broken.<br><br>If you want to really test ICE you'll
want to set the ice_candidate parameter to low-priority, otherwise chances are MediaPRoxy will always be used.<br><br><br>Regards,<br><br>--<br>Saúl Ibarra Corretgé<br>AG Projects<br><br><br><br><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><span><span><a target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span></span><br></div></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"></div></div>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a rel="nofollow" target="_blank"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></div><br></div></div></div><div style="position:fixed"></div>
</div></body></html>