[Asterisk-cvs] asterisk/channels chan_iax2.c,1.266,1.267
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Mon Apr 4 18:39:21 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv2974/channels
Modified Files:
chan_iax2.c
Log Message:
move start_network_thread to _before_ testing its result :-) (bug #3952)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- chan_iax2.c 3 Apr 2005 22:57:17 -0000 1.266
+++ chan_iax2.c 4 Apr 2005 23:32:11 -0000 1.267
@@ -9050,14 +9050,16 @@
}
}
+ res = start_network_thread();
if (!res) {
- res = start_network_thread();
if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "IAX Ready and Listening on %s port %d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port));
+ ast_verbose(VERBOSE_PREFIX_2 "IAX Ready and Listening on %s port %d\n",
+ ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port));
} else {
ast_log(LOG_ERROR, "Unable to start network thread\n");
ast_netsock_release(&netsock);
}
+
for (reg = registrations; reg; reg = reg->next)
iax2_do_register(reg);
ast_mutex_lock(&peerl.lock);
More information about the svn-commits
mailing list