[Pkg-voip-commits] r8289 - in /linphone/trunk/debian: changelog patches/00list patches/always_ipv4_for_ipv4_hosts.dpatch
lmamane at alioth.debian.org
lmamane at alioth.debian.org
Fri Apr 23 20:53:30 UTC 2010
Author: lmamane
Date: Fri Apr 23 20:53:30 2010
New Revision: 8289
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8289
Log:
Bug#578950: Use IPv4 address for self when talking to IPv4 host
Added:
linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch (with props)
Modified:
linphone/trunk/debian/changelog
linphone/trunk/debian/patches/00list
Modified: linphone/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/linphone/trunk/debian/changelog?rev=8289&op=diff
==============================================================================
--- linphone/trunk/debian/changelog (original)
+++ linphone/trunk/debian/changelog Fri Apr 23 20:53:30 2010
@@ -1,9 +1,15 @@
linphone (3.2.1-2) UNRELEASED; urgency=low
* NOT RELEASED YET
+
+ [ Mark Purcell ]
* Pickup upstream user changelog: NEWS
- -- Mark Purcell <msp at debian.org> Wed, 14 Oct 2009 16:26:15 +1100
+ [ Lionel Elie Mamane ]
+ * Identify with IPv4 address to IPv4 host even if it has an AAAA DNS RR
+ (Closes: #578950).
+
+ -- Lionel Elie Mamane <lmamane at debian.org> Fri, 23 Apr 2010 22:52:14 +0200
linphone (3.2.1-1) unstable; urgency=low
Modified: linphone/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-voip/linphone/trunk/debian/patches/00list?rev=8289&op=diff
==============================================================================
--- linphone/trunk/debian/patches/00list (original)
+++ linphone/trunk/debian/patches/00list Fri Apr 23 20:53:30 2010
@@ -1,2 +1,3 @@
#hide_manual_menu
fix_desktop_section
+always_ipv4_for_ipv4_hosts
Added: linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch
URL: http://svn.debian.org/wsvn/pkg-voip/linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch?rev=8289&op=file
==============================================================================
--- linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch (added)
+++ linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch Fri Apr 23 20:53:30 2010
@@ -1,0 +1,52 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## always_ipv4_for_ipv4 hosts.dpatch by Lionel Elie Mamane <lionel at mamane.lu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Identify with IPv4 address to IPv4 host even if it has an AAAA DNS RR
+
+ at DPATCH@
+--- linphone-3.2.1.orig/coreapi/linphonecore.c
++++ linphone-3.2.1/coreapi/linphonecore.c
+@@ -788,7 +788,7 @@
+ return;
+ }
+ if (dest==NULL) dest="87.98.157.38"; /*a public IP address*/
+- if (linphone_core_get_local_ip_for(dest,result)==0)
++ if (linphone_core_get_local_ip_for(lc->sip_conf.ipv6_enabled ? AF_INET6 : AF_INET, dest,result)==0)
+ return;
+ /*else fallback to exosip routine that will attempt to find the most realistic interface */
+ if (eXosip_guess_localip(lc->sip_conf.ipv6_enabled ? AF_INET6 : AF_INET,result,LINPHONE_IPADDR_SIZE)<0){
+only in patch2:
+unchanged:
+--- linphone-3.2.1.orig/coreapi/misc.c
++++ linphone-3.2.1/coreapi/misc.c
+@@ -746,7 +746,7 @@
+ return -1;
+ }
+
+-int linphone_core_get_local_ip_for(const char *dest, char *result){
++int linphone_core_get_local_ip_for(int family, const char *dest, char *result){
+ int err,tmp;
+ struct addrinfo hints;
+ struct addrinfo *res=NULL;
+@@ -755,7 +755,7 @@
+ socklen_t s;
+
+ memset(&hints,0,sizeof(hints));
+- hints.ai_family=PF_UNSPEC;
++ hints.ai_family=family;
+ hints.ai_socktype=SOCK_DGRAM;
+ /*hints.ai_flags=AI_NUMERICHOST|AI_CANONNAME;*/
+ err=getaddrinfo(dest,"5060",&hints,&res);
+only in patch2:
+unchanged:
+--- linphone-3.2.1.orig/coreapi/private.h
++++ linphone-3.2.1/coreapi/private.h
+@@ -188,6 +188,6 @@
+ void linphone_proxy_config_update(LinphoneProxyConfig *cfg);
+ void linphone_proxy_config_get_contact(LinphoneProxyConfig *cfg, const char **ip, int *port);
+ LinphoneProxyConfig * linphone_core_lookup_known_proxy(LinphoneCore *lc, const char *uri);
+-int linphone_core_get_local_ip_for(const char *dest, char *result);
++int linphone_core_get_local_ip_for(int family, const char *dest, char *result);
+
+ #endif /* _PRIVATE_H */
Propchange: linphone/trunk/debian/patches/always_ipv4_for_ipv4_hosts.dpatch
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-voip-commits
mailing list