[asterisk-commits] simon.perreault: branch group/v6-new r266733 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 1 12:51:21 CDT 2010


Author: simon.perreault
Date: Tue Jun  1 12:51:19 2010
New Revision: 266733

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=266733
Log:
When peers have an IPv6 address literal for a host, we need to add brackets
before populating the tohost member, which is used everywhere in SIP URIs.

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=266733&r1=266732&r2=266733
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Tue Jun  1 12:51:19 2010
@@ -25366,7 +25366,8 @@
 			return NULL;
 		}
 
-		ast_string_field_set(peer, tohost, srvlookup);
+		ast_string_field_set(peer, tohost, peer->dnsmgr ? srvlookup :
+				     ast_sockaddr_stringify_host(&peer->addr));
 	}
 
 	if (port && !realtime && peer->host_dynamic) {




More information about the asterisk-commits mailing list