Bug#578950: liblinphone3: Sends IPv6 addresses to IPv4 hosts when DNS name has A and AAAA

Lionel Elie Mamane lionel at mamane.lu
Fri Apr 23 20:16:46 UTC 2010


Package: liblinphone3
Version: 3.2.1-1
Severity: normal
Tags: patch, pending

(I'm committing the patch directly to the pkg-voip SVN and making an
 upload as soon as I get the bug number back.)

When

 - the SIP server has both A and AAAA records in DNS
 - linphone is configured to use IPv4, not IPv6

linphone speaks over IPv4 to the server, but puts an IPv6 address in
the SIP messages. This, at least in the case where Asterisk is the
server (and probably for other servers that don't implement IPv6)
makes calls not work. (registration works)

Abstract from the debug log:

 linphonec> call 500
 ortp-message-Local interface to reach sip.mamane.lu is 2001:960:2:97::2.

First sign of trouble: linphone identifies its own IP as an IPv6...

 ortp-message-getaddrinfo returned the following addresses:
 ortp-message-94.142.241.136 port 5060
 ortp-message-Message sent: (to dest=94.142.241.136:5060)

but OK, it still speaks to the server over IPv4

 v=0
 o=lionel 123456 654321 IN IP6 2001:960:2:97::2
 s=A conversation
 c=IN IP6 2001:960:2:97::2

the IP6 address there makes Asterisk balk. The Asterisk log says:

 WARNING[3678] chan_sip.c: Invalid host in c= line, 'IN IP6 2001:960:2:97::2'

and it returns this message to Linphone:

ortp-message-Received message: 
SIP/2.0 488 Not acceptable here


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages liblinphone3 depends on:
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libexosip2-4                  3.3.0-1    eXtended OSIP library
ii  libmediastreamer0             3.2.1-1+b1 linphone web phone's media library
ii  libortp8                      3.2.1-1+b1 Real-time Transport Protocol stack
ii  libosip2-4                    3.3.0-1    Session Initiation Protocol (SIP) 

liblinphone3 recommends no packages.

liblinphone3 suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linphone_ipv4_AAAA.patch
Type: text/x-diff
Size: 1716 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20100423/43ecae72/attachment.patch>


More information about the Pkg-voip-maintainers mailing list