[asterisk-commits] simon.perreault: branch group/v6 r114216 - /team/group/v6/trunk/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 17 14:34:12 CDT 2008


Author: simon.perreault
Date: Thu Apr 17 14:34:12 2008
New Revision: 114216

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114216
Log:
Fixed resolving of address in Via when not the same address family as receiving socket.
Yes, my friends, you may now register over IPv4 an IPv6 AOR and vice-versa. We rock.

Thanks to the Nokia S60 team for a great interop session at SIPit 22.

Modified:
    team/group/v6/trunk/channels/chan_sip.c

Modified: team/group/v6/trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/v6/trunk/channels/chan_sip.c?view=diff&rev=114216&r1=114215&r2=114216
==============================================================================
--- team/group/v6/trunk/channels/chan_sip.c (original)
+++ team/group/v6/trunk/channels/chan_sip.c Thu Apr 17 14:34:12 2008
@@ -10444,7 +10444,8 @@
 		if (!strlen(port))
 			snprintf(port, sizeof(port), "%d", STANDARD_SIP_PORT);
 
-		if (ast_vinetsock_sa_fromstr(host, port, (struct sockaddr*)&p->sa, &p->sa_len, af, 0)) {
+		if (ast_vinetsock_sa_fromstr(host, port, (struct sockaddr*)&p->sa,
+					&p->sa_len, AF_UNSPEC, 0)) {
 
 			ast_log(LOG_WARNING, "'%s' is not a valid host\n", c);
 			return;




More information about the asterisk-commits mailing list