Setting modparam ice_candidate to low-priority will enable ICE for all calls in media proxy with media proxy's own address as TURN service with low-priority. However if you want to control priority on per call basis then then you can define ice_candidate_avp and set priority of media proxy relay ICE candidates at run time on per call basis. You will just need to set specified AVP within route definition in opensips.cfg.<div>
<br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 3:34 PM, Leonardo Uzcudun <span dir="ltr"><<a href="mailto:uzcudunl@yahoo.it" target="_blank">uzcudunl@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif">Hello saul:<br><br>I've now running the OpenSIPS server with the Mediaproxy.<br>
Some natted UA are working and others no. Those that can't, thay can call but no audio/video.<br>I would like to enable the ICE (cause the UA also support it) but i'm really stuck on the wiki page you've recomended. Could you help me on how to enable ICE?<br>
I think i've to add the following lines to the opensips.conf file:<br><pre>modparam("mediaproxy", "ice_candidate", "low-priority")<br>modparam("mediaproxy", "ice_candidate_avp", "$avp(ice_candidate)")<br>
<br>but i don't understand what should i do with the followings ones:<br><br>route {
...
$avp(s:ice_candidate) := "low-priority";
...
}<br><br>and <br><br><code><span><span>1</span> <span>if</span> ((ice_candidate != none <span>and</span> ice_candidate_avp != none)
<span>2</span> <span>and</span> SDP offer contains a=ice-pwd
<span>3</span> <span>and</span> a=ice-ufrag <span>and</span> a=candidate line(s) then:
<span>4</span> append to the SDP the following line:
<span>5</span> a=candidate:R(random string) <span>1</span> UDP PRIORITY MP_IP MP_PORT typ relay
<span>6</span> a=candidate:R(random string) <span>2</span> UDP PRIORITY MP_IP MP_RTCP_PORT typ relay
</span></code><br></pre>Thanks for your help.<br>BR,<br><br>Leo.<div><br></div> <div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"> <div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div dir="ltr"> <font face="Arial"> <hr size="1"> <b><span style="font-weight:bold">Da:</span></b> Saúl Ibarra Corretgé <<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>><br> <b><span style="font-weight:bold">A:</span></b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>> <br>
<b><span style="font-weight:bold">Inviato:</span></b> Giovedì 28 Febbraio 2013 12:07<br> <b><span style="font-weight:bold">Oggetto:</span></b> Re: [OpenSIPS-Users] NAT<br> </font> </div><div><div class="h5"> <br><br>On Feb 28, 2013, at 11:47 AM, leo wrote:<br>
<br>> Thanks Adrian.<br>> <br>> There was a sense in my question, having the RTP traffic P2P would be<br>> translated in:<br>> 1) better user experience, less jitter and
latency.<br>> 2) saving to install one or more mediaproxies. Considering that all RTP<br>> traffic will pass on them, they will need to have high bandwidth (symmetric<br>> up/down) and maybe CPU/RAM.<br>> <br>
<br>Fixing the signaling is not enough because the media flows through different ports and with symmetric NATs you don't know what ports those will be. To (try to) use P2P media you need your endpoints to use ICE. MediaProxy is ICE aware, so if it detects that media is flowing P2P it will bail out. You can find more information about this here: <a href="http://mediaproxy.ag-projects.com/projects/mediaproxy/wiki/ICE" target="_blank">http://mediaproxy.ag-projects.com/projects/mediaproxy/wiki/ICE</a><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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div></div></div> </div> </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div>