]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
trigger sofia rebuild
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Jan 2007 18:02:05 +0000 (18:02 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 Jan 2007 18:02:05 +0000 (18:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3908 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update [new file with mode: 0644]
src/mod/endpoints/mod_woomera/mod_woomera.c

diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update
new file mode 100644 (file)
index 0000000..152d9c8
--- /dev/null
@@ -0,0 +1 @@
+Thu Jan  4 13:01:49 EST 2007
index 4d1a912f01de28fd53d659932b99631517110eb0..3870a9c7a6a7eb43f02c285e013103b9447e4df2 100644 (file)
@@ -667,12 +667,16 @@ static int woomera_message_parse(switch_socket_t *fd, woomera_message * wmsg, in
                }
 
                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 @@ static int connect_woomera(switch_socket_t **new_sock, woomera_profile * profile
        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 @@ 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;
 }