Bug#810679: [PATCH] IPv6 broken due with exosip 4

Michael Stapelberg stapelberg at debian.org
Mon Jan 11 09:02:38 UTC 2016


Package: linphone
Version: 3.6.1-2.4
Severity: normal
Tags: ipv6 patch

exosip 4 deprecated eXosip_enable_ipv6() in such a way that it fails
silently: https://sources.debian.net/src/libexosip2/4.1.0-2/src/eXconf.c/#L55

As a consequence, when enabling IPv6 in linphone, it tries to bind to an
IPv6 address (“::0”) while specifying IPv4 as address family, which
fails.

We need to switch to eXosip_set_option:

  eXosip_set_option(ctx->excontext, EXOSIP_OPT_ENABLE_IPV6, &ipv6);

I’ve attached a patch which updates debian/patches/port-to-exosip-4.patch
Unfortunately, it seems I’m using a different quilt version than you
are, so quilt touched all hunks, making the patch bigger than it needs
to be. The important hunk of my patch is:

@@ -704,7 +722,14 @@
  	sal_set_dscp(ctx,ctx->dscp);
  	sal_use_dates(ctx,ctx->add_dates);
  
-@@ -429,7 +482,11 @@ int sal_listen_port(Sal *ctx, const char
+ 	ipv6=strchr(addr,':')!=NULL;
++#ifdef HAVE_STRUCT_EXOSIP_T
++	eXosip_set_option(ctx->excontext, EXOSIP_OPT_ENABLE_IPV6, &ipv6);
++#else
+ 	eXosip_enable_ipv6(ipv6);
++#endif
+ 
+ 	if (is_secure && tr == SalTransportUDP){
  		ms_fatal("SIP over DTLS is not supported yet.");
  		return -1;
  	}

Feel free to re-do my patch if that makes merging easier.

Thanks for your work on linphone!

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel

Kernel: Linux 4.3.0 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linphone depends on:
ii  libasound2                1.0.29-1
ii  libatk1.0-0               2.18.0-1
ii  libavcodec-ffmpeg56       7:2.8.1-1
ii  libavutil-ffmpeg54        7:2.8.1-1
ii  libc6                     2.19-22
ii  libcairo2                 1.14.2-2
ii  libexosip2-11             4.1.0-2+b1
ii  libfontconfig1            2.11.0-6.3
ii  libfreetype6              2.6-2
ii  libgdk-pixbuf2.0-0        2.32.1-1
ii  libgl1-mesa-glx [libgl1]  11.0.5-1
ii  libglew1.13               1.13.0-2
ii  libglib2.0-0              2.46.2-3
ii  libglu1-mesa [libglu1]    9.0.0-2.1
ii  libgtk2.0-0               2.24.28-1
ii  liblinphone5              3.6.1-2.4
ii  libmediastreamer-base3    3.6.1-2.4+b4
ii  libnotify4                0.7.6-2
ii  libogg0                   1.3.2-1
ii  libopus0                  1.1-2
ii  libortp9                  3.6.1-2.4+b4
ii  libosip2-11               4.1.0-2
ii  libpango-1.0-0            1.38.1-1
ii  libpangocairo-1.0-0       1.38.1-1
ii  libpangoft2-1.0-0         1.38.1-1
ii  libpulse0                 7.1-2
ii  libsoup2.4-1              2.52.1-1
ii  libspandsp2               0.0.6-2.1
ii  libspeex1                 1.2~rc1.2-1
ii  libspeexdsp1              1.2~rc1.2-1
ii  libsqlite3-0              3.8.11.1-1
ii  libswscale-ffmpeg3        7:2.8.1-1
ii  libtheora0                1.1.1+dfsg.1-7
ii  libudev1                  227-2
ii  libupnp6                  1:1.6.19+git20141001-1
ii  libv4l-0                  1.8.0-1
ii  libvpx3                   1.5.0-2
ii  libx11-6                  2:1.6.3-1
ii  libxv1                    2:1.0.10-1+b1
ii  linphone-nogtk            3.6.1-2.4

linphone recommends no packages.

Versions of packages linphone suggests:
pn  yelp  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linphone.patch
Type: text/x-diff
Size: 21795 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20160111/cd71452d/attachment-0001.patch>


More information about the Pkg-voip-maintainers mailing list