Linphone UPnP

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

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 81 | Next | Last
client for windows
Posts: 81
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: 81
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: 81
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: 81
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: 81
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: 81
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: 81
Comment
Re: Linphone UPnP
Reply #75 on : Mon July 14, 2014, 09:30:13
http://www.coachoutletstoreoen.com/
oakley outlet store
Posts: 81
Comment
http://wadingriver.org/images/oakley.htm
Reply #74 on : Sat July 12, 2014, 03:35:40
uff I have got no words to spellout the luggage, it's beautiful, beautiful color, happy satisfied with my purchase, delivery was very fast, congratulations towards seller.
oakley outlet store http://wadingriver.org/images/oakley.htm
Lauren Ralph Lauren Outlet
Posts: 81
Comment
http://mrtbilisim.com/img/shop/ralphlauren_22.htm
Reply #73 on : Fri July 11, 2014, 12:20:50
My bag arrived yesterday, just loved, I will make more purchases on your side guys, it's beautiful, very good stuff, was my first purchase by express there and it was very satisfied, I will indicate them
[url=http://mrtbilisim.com/img/shop/ralphlauren_22.htm]Lauren Ralph Lauren Outlet[/url]
Filemaker 12
Posts: 81
Comment
Netherlands765
Reply #72 on : Wed July 09, 2014, 22:34:07
I'm OCD about checking my bank activity after every purchase (I keep all my receipts until the payment clears) so a random charge for $9.84 is something I'd notice, but I'm sure many of us have realized that the majority of people tend to not be as meticulous.
[url=http://www.ddgoshop.com/]Filemaker 12[/url]
Showing comments 1 to 10 of 81 | Next | Last

 

Archives


 
kamagra billig online cialis rezeptfrei niederlande