[libnice] How to debug ice connection fail

Philip Withnall philip at tecnocode.co.uk
Fri Nov 28 08:03:57 PST 2014


Hi,

The only way to debug this is to get a debug log from libnice, by
setting the environment variables:
        G_MESSAGES_DEBUG=all
        NICE_DEBUG=all
and redirecting stdout from your program to a log file. There will be a
lot of output. You will then need to step through the logs and try to
work out why each candidate is failing. It can sometimes also be helpful
to capture the network traffic using Wireshark and read it side-by-side
with the logs.

Philip

On Wed, 2014-11-19 at 18:34 +0800, Regnoult Francois wrote:
> Hi,
> 
> I would like to know if there is a possibility to get the reason of an
> ICE STATE FAILED?
> I can catch the signal
> http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent-component-state-changed, but if it returns NICE_COMPONENT_STATE_FAILED I don't know the reason and it's not really easy to debug.
> 
> In my application the ice connection fails but not always. This
> randomness makes it really hard to debug.
> 
> Best regards,
> Francois
> -- 
> 
> 
> Temasys Communications Pte Ltd
> 
> Francois Regnoult / Senior Software Developper
> +65 8497 7581/ regnoult at temasys.com.sg
> 
> Temasys Communications Pte Ltd 
> 80 Amoy Street #02-02 
> Singapore Central Business District 
> Singapore 069899
> www.temasys.com.sg 
> 
> Linkedin
> 
> This e-mail message may contain confidential or legally privileged
> information and is intended only for the use of the intended
> recipient(s). Any unauthorized disclosure, dissemination,
> distribution, copying or the taking of any action in reliance on the
> information herein is prohibited. E-mails are not secure and cannot be
> guaranteed to be error free as they can be intercepted, amended, or
> contain viruses. Anyone who communicates with us by e-mail is deemed
> to have accepted these risks. Company Name is not responsible for
> errors or omissions in this message and denies any responsibility for
> any damage arising from the use of e-mail. Any opinion and other
> statement contained in this message and any attachment are solely
> those of the author and do not necessarily represent those of the
> company.
> 
> 
> Subject: 
> How to debug ice connection fail
> From: 
> Regnoult Francois <regnoult at temasys.com.sg>
> Date: 
> 19/11/2014 18:33
> To: 
> nice at lists.freedesktop.org
> 
> Hi,
> 
> I would like to know if there is a possibility to get the reason of a
> ICE STATE FAILED?
> I can catch the signal
> http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent-component-state-changed, but if it returns NICE_COMPONENT_STATE_FAILED I don't know the reason and it's not really easy to debug.
> 
> In my application the ice connection fails but not always.
> 
> Best regards,
> Francois
> -- 
> 
> 
> Temasys Communications Pte Ltd
> 
> Francois Regnoult / Senior Software Developper
> +65 8497 7581/ regnoult at temasys.com.sg
> 
> Temasys Communications Pte Ltd 
> 80 Amoy Street #02-02 
> Singapore Central Business District 
> Singapore 069899
> www.temasys.com.sg 
> 
> Linkedin
> 
> This e-mail message may contain confidential or legally privileged
> information and is intended only for the use of the intended
> recipient(s). Any unauthorized disclosure, dissemination,
> distribution, copying or the taking of any action in reliance on the
> information herein is prohibited. E-mails are not secure and cannot be
> guaranteed to be error free as they can be intercepted, amended, or
> contain viruses. Anyone who communicates with us by e-mail is deemed
> to have accepted these risks. Company Name is not responsible for
> errors or omissions in this message and denies any responsibility for
> any damage arising from the use of e-mail. Any opinion and other
> statement contained in this message and any attachment are solely
> those of the author and do not necessarily represent those of the
> company.
> 
> 
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20141128/5250bac3/attachment.sig>


More information about the nice mailing list