]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Jul 2009 21:38:42 +0000 (21:38 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Jul 2009 21:38:42 +0000 (21:38 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@781 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/patches/droptest2.diff [new file with mode: 0644]

diff --git a/libs/freetdm/patches/droptest2.diff b/libs/freetdm/patches/droptest2.diff
new file mode 100644 (file)
index 0000000..9af97b7
--- /dev/null
@@ -0,0 +1,29 @@
+Index: mod_openzap/mod_openzap.c
+===================================================================
+--- mod_openzap/mod_openzap.c  (revision 778)
++++ mod_openzap/mod_openzap.c  (working copy)
+@@ -664,7 +664,9 @@
+       private_t *tech_pvt = NULL;
+       zap_size_t len;
+       unsigned char data[SWITCH_RECOMMENDED_BUFFER_SIZE] = {0};
+-      
++      zap_wait_flag_t wflags = ZAP_WRITE;
++      zap_status_t status;
++
+       channel = switch_core_session_get_channel(session);
+       assert(channel != NULL);
+@@ -695,6 +697,13 @@
+       }
++      wflags = ZAP_WRITE;     
++      status = zap_channel_wait(tech_pvt->zchan, &wflags, tech_pvt->zchan->effective_interval * 4);
++      
++      if (!(wflags & ZAP_WRITE)) {
++              goto fail;
++      }
++
+       len = frame->datalen;
+       if (zap_channel_write(tech_pvt->zchan, frame->data, frame->buflen, &len) != ZAP_SUCCESS) {
+               if (++tech_pvt->wr_error > 10) {