From: Anthony Minessale Date: Fri, 5 Jan 2007 15:52:23 +0000 (+0000) Subject: move opts up X-Git-Tag: v1.0-beta1~1390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fac72df6c047f4aa23b278c3a195c5566df7a53;p=thirdparty%2Ffreeswitch.git move opts up git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3911 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_woomera/mod_woomera.c b/src/mod/endpoints/mod_woomera/mod_woomera.c index e1b289eccb..f10783a3de 100644 --- a/src/mod/endpoints/mod_woomera/mod_woomera.c +++ b/src/mod/endpoints/mod_woomera/mod_woomera.c @@ -809,6 +809,9 @@ static int connect_woomera(switch_socket_t **new_sock, woomera_profile * profile 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 @@ static int connect_woomera(switch_socket_t **new_sock, woomera_profile * profile return -1; } - switch_socket_timeout_set((*new_sock), 10000000); - switch_socket_opt_set((*new_sock), SWITCH_SO_KEEPALIVE, 1); return 1; }