Linphone UPnP

By jehan on 07-Jun-13 12:06 Comments (84)

Problem statement

From the beginning, SIP has not been designed  to take into account IP addressing of equipments behind a Nated network. The main challenge for SIP user agents behind  natted routers are IP/PORT associations maintained by routers from private IP/PORT to public IP/PORT port. This association enable a SIP server to reuse sockets initiated by a SIP client during registration for the purpose of notifying incoming calls. Usually, this association timeout after a fews tens of seconds without traffic on UDP while it can remains for tens of minutes for TCP. A typical workaround used by both SIP clients and SIP servers when UDP is mandatory is to initiate keep alives between client and server to refresh router IP/PORT association. rfc5626 describes some possible implementations. Even if keep alives are perfectly efficient when SIP clients are hosted on a plugged PC, they become a significant issue for mobile devices which need to stay in standby most of the time to save battery. This is why most of SIP clients on mobile devices have adopted SIP TCP as a replacement of SIP UDP. Notice this is even mandatory on IOS because Apple does not allow UDP sockets for background tasks.In case SIP UDP is still mandatory, UPnP Internet Device Gateway Protocol is a solution to fix NAT issue without keep alives. UPnP IDG is a protocol implemented by many routers to enable client applications to open an IP/PORT association. Starting from 3.6, Linphone leverages on this protocol for UDP NAT traversal. 

Linphone implementation

UPnP mode can be activated using LinphonePolicyUseUpnp firewall policy with function linphone_core_set_firewall_policy(LinphoneCore *lc, LinphoneFirewallPolicy pol) . With this mode selected, once network is detected up, liblinphone start searching for a UPnP IDG compatible devices and try to get an association for its local SIP port. Completion of this initial step is either mandatory for initiating registration or skipped after a timeout according to liblinphone configuration entry [sip] register_only_when_upnp_is_ok. Default value is TRUE. In case of a successful association, Linphone uses router allocated IP/PORT as address of record for the Contact header of SIP REGISTER messages. UPnP association may also be used for fixing SDP. If liblinphone configuration entry [rtp] disable_upnp is set to FALSE, associations for RTP ports are also requested for each call. In such case, SDP is filled with public IP/PORT allocated by the router. Else, only the SDP Connection field is set with the public ip address. With some router, using UPnP for RTP ports may slow down calls establishment because it requires between 2 and 4 associations (I.E audio rtp +audio rtcp + video rtp + video rtcp).

 


Write a comment

  • Required fields are marked with *.

If you have trouble reading the code, click on the code itself to generate a new random code.
 
Showing comments 1 to 10 of 84 | Next | Last
True Religion jeans outlet online,True Religion Factory Outlet sale,65% off
Posts: 84
Comment
http://forwardjobs.ca/images/truereligion15.htm
Reply #84 on : Tue July 29, 2014, 21:48:17
The bag is right. There is certainly just one thing about its design - it is possible to get the as part of bag when it's zipped up throughout the openings on sides from the zipper.
[url=http://forwardjobs.ca/images/truereligion15.htm]True Religion jeans outlet online,True Religion Factory Outlet sale,65% off[/url]
coach factory outlet online
Posts: 84
Comment
Join()828
Reply #83 on : Sun July 27, 2014, 04:38:48
<a href="http://montblancpens.lakecerr.com" title="mont blanc pen"><strong>mont blanc pen</strong></a> [url=http://montblancpens.lakecerr.com][b]mont blanc pen[/b][/url] http://montblancpens.lakecerr.com
<a href="http://montblancpens.lakecerr.com" title="mont blanc outlet"><strong>mont blanc outlet</strong></a> [url=http://montblancpens.lakecerr.com][b]mont blanc outlet[/b][/url] http://montblancpens.lakecerr.com

coach factory outlet online http://coachfactoryoutlet.firstchoiceagents.com
Cheap True Religion outlet,True Religion sweat suit with cheap sale,75% off
Posts: 84
Comment
http://ephvac.ca/images/truereligion5.htm
Reply #82 on : Thu July 24, 2014, 17:10:10
Ijust loved!!! Much! The bag comes quickly. Premium quality. Goods correspond to the outline. I can recommend this seller. Pra quem eh do Brasil: a bolsa chegou muuuito rapido, tipo 21 dias, e eh igual ao anuncio. De cara ela parece um pouco fraquinha, mas nao eh. A cor caramel eh linda! Recomendo!
[url=http://ephvac.ca/images/truereligion5.htm]Cheap True Religion outlet,True Religion sweat suit with cheap sale,75% off[/url]
client for windows
Posts: 84
Comment
http://clientwindows.com/ scan
Reply #81 on : Thu July 24, 2014, 12:21:06
clientwindows.com hack client for windows raytheon cloudcall for sys flamountwhite.net/en/googlecal.html
A small "Green" (and portable) Windows client that can retrieve g dem marke !
Cheap True Religion jeans,True Religion cargo Shorts for sale,75% off
Posts: 84
Comment
http://immediac.com/images/truereligion12.htm
Reply #80 on : Tue July 22, 2014, 22:29:55
The bag arrived today! And this took less than 20 days! This woman is more beautiful than I imagined! Came well packaged, clean and undamaged. Simply LOVED! I can recommend!
[url=http://immediac.com/images/truereligion12.htm]Cheap True Religion jeans,True Religion cargo Shorts for sale,75% off[/url]
http://dematerialisedid.com/CiF/beatuk263.htm
Posts: 84
Comment
http://dematerialisedid.com/CiF/beatuk263.htm
Reply #79 on : Tue July 22, 2014, 15:39:41
Bag super! ! ! It's perfectly sewed, fast delivery, I can recommend more or less everything sellerbag is sutured qualitative, seams even, colour beige matches, this not skin, price matches quality
[url=http://dematerialisedid.com/CiF/beatuk263.htm]http://dematerialisedid.com/CiF/beatuk263.htm[/url]
adidas Jeremy Scott 3 Tongue
Posts: 84
Comment
BitCode782
Reply #78 on : Mon July 21, 2014, 19:14:32
Good day! This is my 1st comment here so I just wanted to give a quick shout out and say I truly enjoy reading your blog posts. Can you recommend any other blogs/websites/forums that go over the same topics? Thanks for your time!
[url=http://adidas.goshopusa.biz/adidas-jeremy-scott-3-tongue-p-79.html]adidas Jeremy Scott 3 Tongue[/url]
Irwin
Posts: 84
Comment
Light507
Reply #77 on : Sat July 19, 2014, 09:03:40
This can be to create sure that you are both on the very same pageWhen your existing windows fall short to
[url=http://chatlottelifts.waphall.com/Blog/__xtblog_entry/9670799-heel-lifts-and-specific-sports-performance?]Irwin[/url]
Gucci briefcases
Posts: 84
Comment
TechView396
Reply #76 on : Thu July 17, 2014, 23:35:02
Thanks for the share!
[url=http://www.attorneyalternatives.com/gucci/produkt_46.html]Gucci briefcases[/url]
disclosure
Posts: 84
Comment
Re: Linphone UPnP
Reply #75 on : Mon July 14, 2014, 09:30:13
http://www.coachoutletstoreoen.com/
Showing comments 1 to 10 of 84 | Next | Last

 

Archives


 
kamagra billig online cialis rezeptfrei niederlande