[Freeswitch-svn] [commit] r3911 - freeswitch/trunk/src/mod/endpoints/mod_woomera

Freeswitch SVN anthm at freeswitch.org
Fri Jan 5 10:52:23 EST 2007


Author: anthm
Date: Fri Jan  5 10:52:23 2007
New Revision: 3911

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c

Log:
move opts up

Modified: freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c	Fri Jan  5 10:52:23 2007
@@ -809,6 +809,9 @@
 		return -1;
 	}
 
+    switch_socket_timeout_set((*new_sock), 10000000);
+    switch_socket_opt_set((*new_sock), SWITCH_SO_KEEPALIVE, 1);
+
 	/*
 	   status = switch_socket_bind((*new_sock), sa);
 	   if (0 && status != SWITCH_STATUS_SUCCESS) {
@@ -820,8 +823,6 @@
 		return -1;
 	}
 
-    switch_socket_timeout_set((*new_sock), 10000000);
-    switch_socket_opt_set((*new_sock), SWITCH_SO_KEEPALIVE, 1);
 
 	return 1;
 }



More information about the Freeswitch-svn mailing list