From e0ea30c5da4ee83b6f26c6d3ff5541b189d23fb4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 23 Jul 2009 21:38:42 +0000 Subject: [PATCH] add patch git-svn-id: http://svn.openzap.org/svn/openzap/trunk@781 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/patches/droptest2.diff | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libs/freetdm/patches/droptest2.diff diff --git a/libs/freetdm/patches/droptest2.diff b/libs/freetdm/patches/droptest2.diff new file mode 100644 index 0000000000..9af97b75d0 --- /dev/null +++ b/libs/freetdm/patches/droptest2.diff @@ -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) {