[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
Wed Feb 29 16:52:40 CST 2012
Author: seanbright
Date: Wed Feb 29 16:52:35 2012
New Revision: 357657
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357657
Log:
Only set the defaultsockfd once.
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=357657&r1=357656&r2=357657
==============================================================================
--- 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 Wed Feb 29 16:52:35 2012
@@ -13415,7 +13415,9 @@
for (i = 0; i < num_addrs; i++) {
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]));
- defaultsockfd = ast_netsock_sockfd(ns);
+ if (defaultsockfd < 0) {
+ defaultsockfd = ast_netsock_sockfd(ns);
+ }
ast_netsock_unref(ns);
}
}
More information about the asterisk-commits
mailing list