[asterisk-commits] seanbright: branch seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_se...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 1 13:57:42 CST 2012
Author: seanbright
Date: Thu Mar 1 13:57:38 2012
New Revision: 357714
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357714
Log:
Set the port number before we bind.
Modified:
team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c
Modified: team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c?view=diff&rev=357714&r1=357713&r2=357714
==============================================================================
--- team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c (original)
+++ team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c Thu Mar 1 13:57:38 2012
@@ -13413,6 +13413,7 @@
if ((num_addrs = ast_sockaddr_get_wildcard_addrs(&addrs, AST_AF_UNSPEC))) {
int i;
for (i = 0; i < num_addrs; i++) {
+ ast_sockaddr_set_port(&addrs[i], portno);
if ((ns = ast_netsock_bindaddr(netsock, io, &addrs[i], qos.tos, qos.cos, socket_read, NULL))) {
ast_verb(2, "Binding IAX2 to default address %s\n", ast_sockaddr_stringify(&addrs[i]));
if (defaultsockfd < 0) {
More information about the asterisk-commits
mailing list