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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 15 14:51:32 CDT 2008


Author: simon.perreault
Date: Tue Apr 15 14:51:32 2008
New Revision: 114145

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114145
Log:
Fixed bug #261, "Call to IPv4 UA via v4-v6 proxy from v6 Asterisk fails".

Thanks to Tandberg 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=114145&r1=114144&r2=114145
==============================================================================
--- team/group/v6/trunk/channels/chan_sip.c (original)
+++ team/group/v6/trunk/channels/chan_sip.c Tue Apr 15 14:51:32 2008
@@ -9159,7 +9159,8 @@
 
 	/* XXX This could block for a long time XXX */
 	/* We should only do this if it's a name, not an IP */
-	result = ast_vinetsock_sa_fromstr(host, port, (struct sockaddr*)&pvt->sa, &pvt->sa_len, pvt->recv.ss_family, 0);
+	result = ast_vinetsock_sa_fromstr(host, port, (struct sockaddr*)&pvt->sa,
+			&pvt->sa_len, AF_UNSPEC, 0);
 	if (result) {
 		ast_log(LOG_WARNING, "Invalid host name in Contact: (can't resolve in DNS) : '%s'\n", host);
 		return -1;




More information about the asterisk-commits mailing list