]> git.pld-linux.org Git - packages/callweaver.git/commitdiff
- rename spandsp.patch to upstream.patch
authorareq <areq@pld-linux.org>
Sun, 29 Jun 2008 21:42:28 +0000 (21:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- add fix for Native Zaptel HW HDLC Support
  http://www.callweaver.org/ticket/396
  Changeset 4774 - Added ZAP_SIG_HARDHDLC as a valid signaling type for an ISDN channel
  http://www.callweaver.org/changeset/4774

Changed files:
    callweaver-upstream.patch -> 1.1

callweaver-upstream.patch [new file with mode: 0644]

diff --git a/callweaver-upstream.patch b/callweaver-upstream.patch
new file mode 100644 (file)
index 0000000..afff3d3
--- /dev/null
@@ -0,0 +1,34 @@
+--- 1.2/channels/chan_zap.c    1999-01-21 00:28:13.000000000 +0000
++++ 1.2/channels/chan_zap.c    2008-06-29 21:30:51.487605750 +0000
+@@ -95,7 +95,7 @@
+ #define TRUE (!FALSE)
+ #endif
+-#ifndef ZT_SIG_EM_E1
++#if !defined(ZT_SIG_EM_E1) || (defined(HAVE_PRI) && !defined(ZT_SIG_HARDHDLC))
+ #error "Your zaptel is too old.  please update"
+ #endif
+@@ -8888,7 +8888,7 @@
+                       cw_log(LOG_ERROR, "Unable to get parameters for D-channel %d (%s)\n", x, strerror(errno));
+                       return -1;
+               }
+-              if (p.sigtype != ZT_SIG_HDLCFCS) {
++              if ((p.sigtype != ZT_SIG_HDLCFCS) && (p.sigtype != ZT_SIG_HARDHDLC)) {
+                       zt_close(pri->fds[i]);
+                       pri->fds[i] = -1;
+                       cw_log(LOG_ERROR, "D-channel %d is not in HDLC/FCS mode.  See /etc/zaptel.conf\n", x);
+--- callweaver-1.2.0.1/corelib/dsp.c.org       2008-06-24 21:01:07.696898500 +0000
++++ callweaver-1.2.0.1/corelib/dsp.c   2008-06-24 21:02:33.118237000 +0000
+@@ -898,9 +898,9 @@
+                                     NULL);
+     }
+     if ((digitmode & DSP_DIGITMODE_RELAXDTMF))
+-        dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 8);
++        dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 8, -99);
+     else
+-        dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 4);
++        dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 4, -99);
+     dsp->digitmode = digitmode;
+     return 0;
+ }
This page took 0.095092 seconds and 4 git commands to generate.