From cc3f3cb16e698072ee6bd22166acec6382c269a3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 20 Jul 2009 15:13:14 +0000 Subject: [PATCH] add patch git-svn-id: http://svn.openzap.org/svn/openzap/trunk@778 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/patches/droptest.diff | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 libs/freetdm/patches/droptest.diff diff --git a/libs/freetdm/patches/droptest.diff b/libs/freetdm/patches/droptest.diff new file mode 100644 index 0000000000..5f73a2d42e --- /dev/null +++ b/libs/freetdm/patches/droptest.diff @@ -0,0 +1,51 @@ +Index: src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c +=================================================================== +--- src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c (revision 776) ++++ src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c (working copy) +@@ -604,6 +604,8 @@ + return ZAP_SUCCESS; + } + ++ zap_log(ZAP_LOG_ERROR, "FAIL %d\n", bsent); ++ + return ZAP_FAIL; + } + +Index: mod_openzap/mod_openzap.c +=================================================================== +--- mod_openzap/mod_openzap.c (revision 776) ++++ mod_openzap/mod_openzap.c (working copy) +@@ -674,6 +674,7 @@ + assert(tech_pvt->zchan != NULL); + + if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { ++ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "DEAD\n"); + return SWITCH_STATUS_FALSE; + } + +@@ -682,6 +683,7 @@ + } + + if (!switch_test_flag(tech_pvt, TFLAG_IO)) { ++ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "NO FLAG IO\n"); + goto fail; + } + +@@ -689,6 +691,7 @@ + frame->data = data; + frame->buflen = sizeof(data); + if ((frame->datalen = tech_pvt->write_codec.implementation->encoded_bytes_per_packet) > frame->buflen) { ++ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "BUF ERR\n"); + goto fail; + } + memset(data, 255, frame->datalen); +@@ -697,7 +700,9 @@ + + len = frame->datalen; + if (zap_channel_write(tech_pvt->zchan, frame->data, frame->buflen, &len) != ZAP_SUCCESS) { ++ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "WR ERR\n"); + if (++tech_pvt->wr_error > 10) { ++ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "10 WR ERR\n"); + goto fail; + } + } else {