[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] [patch] better local ip detection routine in L
Re: [Linphone-developers] [patch] better local ip detection routine in LAN cases
Tue, 13 Nov 2007 15:33:29 +0100
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 "127.0.0.1" 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
|[Prev in Thread]
||[Next in Thread]|
- Re: [Linphone-developers] [patch] better local ip detection routine in LAN cases,
Simon Morlat <=