[Freeswitch-svn] [commit] r3908 - in freeswitch/trunk: libs/sofia-sip src/mod/endpoints/mod_woomera

Freeswitch SVN anthm at freeswitch.org
Thu Jan 4 13:02:06 EST 2007


Author: anthm
Date: Thu Jan  4 13:02:05 2007
New Revision: 3908

Added:
   freeswitch/trunk/libs/sofia-sip/.update
Modified:
   freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c

Log:
trigger sofia rebuild

Added: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/sofia-sip/.update	Thu Jan  4 13:02:05 2007
@@ -0,0 +1 @@
+Thu Jan  4 13:01:49 EST 2007

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	Thu Jan  4 13:02:05 2007
@@ -667,12 +667,16 @@
 		}
 
 		status = switch_socket_recv(fd, ptr, &len);
-        if (SWITCH_STATUS_IS_BREAK(status)) {
+
+        if (status == 70007) {
+            char bbuf = '\n';
+            switch_size_t blen = sizeof(bbuf);
+            switch_socket_send(fd, &bbuf, &blen);
             continue;
         }
         
         if (status != SWITCH_STATUS_SUCCESS) {
-            return -1;
+                return -1;
         }
 
 		ptr++;
@@ -804,6 +808,7 @@
 	if (switch_socket_create(new_sock, AF_INET, SOCK_STREAM, 0, module_pool) != SWITCH_STATUS_SUCCESS) {
 		return -1;
 	}
+
 	/*
 	   status = switch_socket_bind((*new_sock), sa);
 	   if (0 && status != SWITCH_STATUS_SUCCESS) {
@@ -815,6 +820,9 @@
 		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