<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Olivier,<br>I can not "just send the candidates"  as l don't have yet. The issue I have is that libnice can take 3 second to gather Local  candidates if one network interface has no internet access. This is too slow which affects communication setup with remote VoIP clients.<br><br>Tom<br><br>> From: olivier.crete@collabora.com<br>> To: chentom60@hotmail.com; felixschlitter@gmail.com; nice@lists.freedesktop.org<br>> Date: Wed, 4 Nov 2015 18:20:36 -0500<br>> Subject: Re: [libnice] why it takes so long (3 second) to get Local candidates?<br>> <br>> Hi,<br>> <br>> You should be able to just send the candidates earlier and ignore the<br>> signal if you think the timeout is too long.<br>> <br>> Olivier<br>> <br>> On Wed, 2015-11-04 at 07:00 -0800, Tom Chen wrote:<br>> > Olivier:<br>> > <br>> > I enabled glib debugging and see there are lots of retransmission<br>> > timeout as there is a network interface that is connected to intranet<br>> > and can not access external STUN server:<br>> > <br>> > (process:4472): libnice-stun-DEBUG: STUN transaction retransmitted<br>> > (timeout 396ms).<br>> > (process:4472): libnice-stun-DEBUG: STUN transaction retransmitted<br>> > (timeout 397ms).<br>> > (process:4472): libnice-stun-DEBUG: STUN transaction retransmitted<br>> > (timeout 793ms).<br>> > (process:4472): libnice-stun-DEBUG: STUN transaction retransmitted<br>> > (timeout 1589ms).<br>> > . . . . .<br>> > <br>> > I am wondering if there is a way to shorten or limit the re<br>> > transmission? 3 second can be too long for voip phone communication<br>> > setup as the remote client may close the session if it does not<br>> > receive response soon enough.<br>> > <br>> > Tom<br>> > <br>> > > From: olivier.crete@collabora.com<br>> > > To: chentom60@hotmail.com; felixschlitter@gmail.com; nice@lists.fre<br>> > edesktop.org<br>> > > Date: Fri, 30 Oct 2015 16:18:21 -0400<br>> > > Subject: Re: [libnice] why it takes so long (3 second) to get Local<br>> > candidates?<br>> > > <br>> > > Hi,<br>> > > <br>> > > There is a signal for new candidates also that will give you the<br>> > > candidates as they are discovered.<br>> > > <br>> > > Olivier<br>> > > <br>> > > On Thu, 2015-10-15 at 11:23 -0700, Tom Chen wrote:<br>> > > > Olivier,<br>> > > > <br>> > > > The delay is in waiting for candidates gathering done signal not<br>> > in<br>> > > > waiting for component state changed. If i don't wait for the<br>> > > > candidates gathering done signal, then the<br>> > > > nice_agent_get_local_candidates( ) will always return Null, thus<br>> > no<br>> > > > candidate.<br>> > > > <br>> > > > Tom<br>> > > > <br>> > > > > From: olivier.crete@collabora.com<br>> > > > > To: felixschlitter@gmail.com; nice@lists.freedesktop.org<br>> > > > > Date: Thu, 15 Oct 2015 12:01:43 +0100<br>> > > > > Subject: Re: [libnice] why it takes so long (3 second) to get<br>> > Local<br>> > > > candidates?<br>> > > > > <br>> > > > > Hello,<br>> > > > > <br>> > > > > libnice will do a STUN query from every local interface, in<br>> > case<br>> > > > you<br>> > > > > have a multi-homed device, so if some of them are not Internet<br>> > > > > connected, then it waits for all of them to timeout. You can<br>> > just<br>> > > > > ignore the state change and start sending candidates earlier if<br>> > the<br>> > > > > delay is unacceptable for your application.<br>> > > > > <br>> > > > > Olivier<br>> > > > > <br>> > > > > On Thu, 2015-10-15 at 18:25 +1300, Felix Schlitter wrote:<br>> > > > > > I found that it can take a long time if I leave libnice to<br>> > figure<br>> > > > out<br>> > > > > > my local interfaces. If I tell which local address I want to<br>> > use,<br>> > > > > > it's a lot faster. But that may have been because it tried to<br>> > use<br>> > > > a<br>> > > > > > local interface that had no internet connection. Maybe see if<br>> > > > > > `nice_agent_add_local_address` does anything for you.<br>> > > > > > <br>> > > > > > On Thu, Oct 15, 2015 at 6:01 PM, tom chen <chentom60@hotmail.<br>> > com><br>> > > > > > wrote:<br>> > > > > > > Hello,<br>> > > > > > > <br>> > > > > > > I am using an external public STUN server,<br>> > > > > > > stun.l.google.com(74.125.194.127), port: 19302, to try<br>> > > > > > > /examples/simple-example.c.<br>> > > > > > > <br>> > > > > > > simple-example can get its public IP as expected from this<br>> > STUN<br>> > > > > > > server, so the public STUN server really works. However, I<br>> > > > notice<br>> > > > > > > that, somehow, it takes around 3 second to get local<br>> > candidate<br>> > > > > > > list. Any idea why so long? Then I installed a local STUN<br>> > > > server in<br>> > > > > > > our intranet, still has same delay. I am wondering if there<br>> > is<br>> > > > > > > anything waiting for some events during the gathering but<br>> > > > always<br>> > > > > > > timeout?<br>> > > > > > > <br>> > > > > > > Tom<br>> > > > > > > <br>> > > > > > > tao@ubuntu:~/workspace/libnice-0.1.13/examples$ ./simple-<br>> > > > example 1<br>> > > > > > > 74.125.194.127 19302<br>> > > > > > > Copy this line to remote client:<br>> > > > > > > <br>> > > > > > > vPRk owHFru8Z6Dx8hj9TKel7Zl<br>> > > > > > > 1,2013266431,fe80::20c:29ff:fe34:d0c8,42411,host<br>> > > > > > > 2,1019216383,fe80::20c:29ff:fe34:d0c8,0,host<br>> > > > > > > 3,1015022079,fe80::20c:29ff:fe34:d0c8,50240,host<br>> > > > > > > 4,2013266431,fe80::20c:29ff:fe34:d0be,51731,host<br>> > > > > > > 5,1019216383,fe80::20c:29ff:fe34:d0be,0,host<br>> > > > > > > 6,1015022079,fe80::20c:29ff:fe34:d0be,43916,host<br>> > > > > > > 7,2013266431,fe80::20c:29ff:fe34:d0b4,35004,host<br>> > > > > > > 8,1019216383,fe80::20c:29ff:fe34:d0b4,0,host<br>> > > > > > > 9,1015022079,fe80::20c:29ff:fe34:d0b4,51142,host<br>> > > > > > > 10,2013266431,192.168.0.60,33635,host<br>> > > > > > > 11,1019216383,192.168.0.60,0,host<br>> > > > > > > 12,1015022079,192.168.0.60,51301,host<br>> > > > > > > 13,2013266431,172.16.1.129,41734,host<br>> > > > > > > 14,1019216383,172.16.1.129,0,host<br>> > > > > > > 15,1015022079,172.16.1.129,46629,host<br>> > > > > > > 16,2013266431,10.113.54.60,41481,host<br>> > > > > > > 17,1019216383,10.113.54.60,0,host<br>> > > > > > > 18,1015022079,10.113.54.60,33328,host<br>> > > > > > > 19,1677722111,204.96.168.3,41481,srflx ç Public IP<br>> > > > > > > candidates<br>> > > > > > > 20,847249919,204.96.168.3,0,srflx<br>> > > > > > > 21,843055615,204.96.168.3,33328,srflx<br>> > > > > > > <br>> > > > > > > Enter remote data (single line, no wrapping):<br>> > > > > > > > ^C<br>> > > > > > > <br>> > > > > > > <br>> > > > > > > <br>> > > > > > > Statement Of Confidentiality:<br>> > > > > > > <br>> > > > > > > This electronic message transmission, and all attachments,<br>> > > > contains<br>> > > > > > > information from Extron Electronics which is confidential<br>> > and<br>> > > > > > > privileged. The information is for the exclusive viewing or<br>> > use<br>> > > > of<br>> > > > > > > the intended recipient. If you are not the intended<br>> > recipient,<br>> > > > be<br>> > > > > > > aware that any disclosure, copying, distribution or use of<br>> > the<br>> > > > > > > contents of this information is prohibited. If you have<br>> > > > received<br>> > > > > > > this electronic transmission in error, please notify the<br>> > sender<br>> > > > > > > immediately by a "reply to sender only" message and destroy<br>> > all<br>> > > > > > > electronic and hard copies of the communication, including<br>> > > > > > > attachments.<br>> > > > > > > <br>> > > > > > > _______________________________________________<br>> > > > > > > nice mailing list<br>> > > > > > > nice@lists.freedesktop.org<br>> > > > > > > http://lists.freedesktop.org/mailman/listinfo/nice<br>> > > > > > > <br>> > > > > > _______________________________________________<br>> > > > > > nice mailing list<br>> > > > > > nice@lists.freedesktop.org<br>> > > > > > http://lists.freedesktop.org/mailman/listinfo/nice<br>> > > > > -- <br>> > > > > Olivier Crête<br>> > > > > olivier.crete@collabora.com<br>> > > > > <br>> > > > > <br>> > > > > _______________________________________________<br>> > > > > nice mailing list<br>> > > > > nice@lists.freedesktop.org<br>> > > > > http://lists.freedesktop.org/mailman/listinfo/nice<br>> > > -- <br>> > > Olivier Crête<br>> > > olivier.crete@collabora.com<br>> > > <br>> > > <br>> > > _______________________________________________<br>> > > nice mailing list<br>> > > nice@lists.freedesktop.org<br>> > > http://lists.freedesktop.org/mailman/listinfo/nice<br>> -- <br>> Olivier Crête<br>> olivier.crete@collabora.com<br>> <br>> <br>> _______________________________________________<br>> nice mailing list<br>> nice@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/nice<br>                                       </div></body>
</html>