[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] [patch] better local ip detection routine in L

From: Simon Morlat
Subject: Re: [Linphone-developers] [patch] better local ip detection routine in LAN cases
Date: Tue, 13 Nov 2007 15:33:29 +0100
User-agent: KMail/1.9.7


The devel version of linphone (1.99.x) already has this feature. It uses 
getifaddrs() to get the interfaces and their associated addresses.
Thanks anyway !


Le Friday 26 October 2007 21:04:53 Mike Frysinger, vous avez écrit :
> if you run linphone on a LAN that has no sort of routing set up, then
> the attempt to autodetect the outgoing IP address will fail miserably
> and linphone falls back to just "" which is pretty useless.
> the attached code uses the POSIX function if_nameindex() to enumerate
> the available interfaces on the machine and then the Linux ioctl
> SIOCGIFADDR to get the ip address associated with the specified
> interface.  if someone knows of a POSIX equivalent to this ioctl, i'm
> all ears ;).  so now linphone defaults to the first non-loopback
> interface that contains a valid ip address in the case of autodetect
> enabled and running on a non-external routable network.
> the patch was tested against linphone-1.6.0 but it applies cleanly to
> 1.7.1. -mike

reply via email to

[Prev in Thread] Current Thread [Next in Thread]