Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv4934/channels

Modified Files:
      Tag: v1-0
        chan_iax2.c 
Log Message:
check for result *after* starting the network thread (bug #3952)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.188.2.15
retrieving revision 1.188.2.16
diff -u -d -r1.188.2.15 -r1.188.2.16
--- chan_iax2.c 1 Apr 2005 04:38:40 -0000       1.188.2.15
+++ chan_iax2.c 5 Apr 2005 05:56:44 -0000       1.188.2.16
@@ -7537,9 +7537,9 @@
 
        if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) 
                ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
-       
+
+       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));
        } else {

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to