[svn-commits] jpdionne: branch group/v6-new r270259 - /team/group/v6-new/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jun 14 14:30:23 CDT 2010
Author: jpdionne
Date: Mon Jun 14 14:30:19 2010
New Revision: 270259
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=270259
Log:
Fix tcpenable and tcpbindaddr options to bind on IPv6 and IPv4.
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=270259&r1=270258&r2=270259
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Mon Jun 14 14:30:19 2010
@@ -26054,10 +26054,10 @@
} else if (!strcasecmp(v->name, "tcpenable")) {
if(!ast_false(v->value)) {
ast_debug(2, "Enabling TCP socket for listening\n");
- ast_sockaddr_parse(&tcp_tmp, "0.0.0.0:5060", 0);
+ ast_sockaddr_parse(&tcp_tmp, "[::]:5060", 0);
}
} else if (!strcasecmp(v->name, "tcpbindaddr")) {
- if (ast_sockaddr_isnull(&tcp_tmp) || (ast_parse_arg(v->value, PARSE_ADDR, &tcp_tmp)))
+ if (ast_parse_arg(v->value, PARSE_ADDR, &tcp_tmp))
ast_log(LOG_WARNING, "Invalid %s '%s' at line %d of %s\n", v->name, v->value, v->lineno, config);
ast_debug(2, "Setting TCP socket address to %s\n",
ast_sockaddr_stringify(&tcp_tmp));
More information about the svn-commits
mailing list