[OpenSIPS-Users] NAT

Muhammad Shahzad shaheryarkh at gmail.com
Fri Mar 1 17:21:39 CET 2013


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.

Thank you.


On Fri, Mar 1, 2013 at 3:34 PM, Leonardo Uzcudun <uzcudunl at yahoo.it> wrote:

> Hello saul:
>
> I've now running the OpenSIPS server with the Mediaproxy.
> Some natted UA are working and others no. Those that can't, thay can call
> but no audio/video.
> 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?
> I think i've to add the following lines to the opensips.conf file:
>
> modparam("mediaproxy", "ice_candidate", "low-priority")
> modparam("mediaproxy", "ice_candidate_avp", "$avp(ice_candidate)")
>
> but i don't understand what should i do with the followings ones:
>
> route {
>     ...
>     $avp(s:ice_candidate) := "low-priority";
>     ...
> }
>
> and
>
> 1 if ((ice_candidate != none and ice_candidate_avp != none) 2         and SDP offer contains a=ice-pwd 3         and a=ice-ufrag and a=candidate line(s) then: 4         append to the SDP the following line:5         a=candidate:R(random string) 1 UDP PRIORITY MP_IP MP_PORT typ relay6         a=candidate:R(random string) 2 UDP PRIORITY MP_IP MP_RTCP_PORT typ relay
>
> Thanks for your help.
> BR,
>
> Leo.
>
>   ------------------------------
> *Da:* Saúl Ibarra Corretgé <saul at ag-projects.com>
> *A:* OpenSIPS users mailling list <users at lists.opensips.org>
> *Inviato:* Giovedì 28 Febbraio 2013 12:07
> *Oggetto:* Re: [OpenSIPS-Users] NAT
>
>
> On Feb 28, 2013, at 11:47 AM, leo wrote:
>
> > Thanks Adrian.
> >
> > There was a sense in my question, having the RTP traffic P2P would be
> > translated in:
> > 1) better user experience, less jitter and latency.
> > 2) saving to install one or more mediaproxies. Considering that all RTP
> > traffic will pass on them, they will need to have high bandwidth
> (symmetric
> > up/down) and maybe CPU/RAM.
> >
>
> 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:
> http://mediaproxy.ag-projects.com/projects/mediaproxy/wiki/ICE
>
>
> Regards,
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_786pk at hotmail.com
Email: shaheryarkh at googlemail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130301/9c76068b/attachment-0001.htm>


More information about the Users mailing list