Bug#500512: linphone: sends a wrong "contact address" => registration fails
Nicolas Boullis
nboullis at debian.org
Sun Sep 28 23:27:08 UTC 2008
Package: linphone
Version: 2.1.1-1+b1
Severity: important
Hi,
I have a SIP server on a private network, a laptop with linphone
installed, and a VPN tunnel between both.
When linphone tries to register on the private SIP server, regitration
fails.
Thanks to wireshark, I can see that linphone tries to register with a
wrong "contact address": the IP in this contact address is the "local"
IP of my laptop, not the IP in the tunnel.
Using strace, I could figure out that the local IP is discovered with:
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
setsockopt(11, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
connect(11, {sa_family=AF_INET, sin_port=htons(11111), sin_addr=inet_addr("217.12.3.11")}, 16) = 0
getsockname(11, {sa_family=AF_INET, sin_port=htons(38988), sin_addr=inet_addr("192.168.0.2")}, [16]) = 0
close(11) = 0
I have no idea why it connects to 217.12.3.11 rather than my SIP server
to find out the correct IP...
FWIW, the (private) IP of my SIP server is 192.168.18.7, the "local" IP
of my laptop is 192.168.0.2 (on a NATted wifi network) and its tunnel IP
is 192.168.63.6.
The registration packets are sent as expected from 192.168.63.6 to
192.168.18.7; but the embedded "contact address" is nboullis at 192.168.0.2
(while I guess it should be nboullis at 192.168.63.6).
In the linphone SIP configuration, I tried to disable "Automatically
guess a valid hostname" and force my sip address to
nboullis at 192.168.63.3, but it did not make any difference. What is this
option worth?
Cheers,
Nicolas
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (800, 'testing'), (700, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages linphone depends on:
ii libasound2 1.0.16-2 ALSA library
ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit
ii libavcodec51 3:20080706-0.2 library to encode decode multimedi
ii libavutil49 3:20080706-0.2 avutil shared libraries
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra
ii libglib2.0-0 2.16.5-1 The GLib library of C routines
ii libgsm1 1.0.12-1 Shared libraries for GSM speech co
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface
ii liblinphone2 2.1.1-1+b1 linphone's shared library part (su
ii libmediastreamer0 2.1.1-1+b1 linphone web phone's media library
ii libogg0 1.1.3-4 Ogg Bitstream Library
ii libortp7 2.1.1-1+b1 Real-time Transport Protocol stack
ii libosip2-3deb 3.1.0-1 Session Initiation Protocol (SIP)
ii libpango1.0-0 1.20.5-2 Layout and rendering of internatio
ii libraw1394-8 1.3.0-4 library for direct access to IEEE
ii libspeex1 1.2~rc1-1 The Speex codec runtime library
ii libspeexdsp1 1.2~rc1-1 The Speex extended runtime library
ii libtheora0 1.0~beta3-1 The Theora Video Compression Codec
ii libvorbis0a 1.2.0.dfsg-3.1 The Vorbis General Audio Compressi
ii libvorbisenc2 1.2.0.dfsg-3.1 The Vorbis General Audio Compressi
ii linphone-nox 2.1.1-1+b1 SIP softphone - console-only clien
linphone recommends no packages.
Versions of packages linphone suggests:
ii yelp 2.22.1-8 Help browser for GNOME 2
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list