[Pkg-voip-commits] r2450 - asterisk/trunk/debian/patches
Tzafrir Cohen
tzafrir-guest at costa.debian.org
Fri Sep 29 03:43:44 UTC 2006
Author: tzafrir-guest
Date: 2006-09-29 03:43:44 +0000 (Fri, 29 Sep 2006)
New Revision: 2450
Added:
asterisk/trunk/debian/patches/zapbri.dpatch
Log:
zapbri.dpatch: Hopefully it should be enough to work with BRI Zaptel devices
(qozap, zaphfc, and maybe to write a driver for the Digium card as well).
Added: asterisk/trunk/debian/patches/zapbri.dpatch
===================================================================
--- asterisk/trunk/debian/patches/zapbri.dpatch (rev 0)
+++ asterisk/trunk/debian/patches/zapbri.dpatch 2006-09-29 03:43:44 UTC (rev 2450)
@@ -0,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## zapbri.dpatch by Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Theoretically this should suffice to configure a ZapBRI device
+## DP: with standard libpri/chan_zap.
+
+ at DPATCH@
+diff -urNad asterisk-1.2.12.1.dfsg/channels/chan_zap.c /tmp/dpep.8e90kC/asterisk-1.2.12.1.dfsg/channels/chan_zap.c
+--- asterisk-1.2.12.1.dfsg/channels/chan_zap.c 2006-08-25 18:21:18.000000000 +0300
++++ /tmp/dpep.8e90kC/asterisk-1.2.12.1.dfsg/channels/chan_zap.c 2006-09-29 06:30:49.988574971 +0300
+@@ -6720,8 +6720,9 @@
+ } else {
+ if (si->totalchans == 31) { /* if it's an E1 */
+ pris[*span].dchannels[0] = 16 + offset;
+- } else {
+- pris[*span].dchannels[0] = 24 + offset;
++ } else { /* T1 or BRI: D Channel is the last Channel */
++ pris[*span].dchannels[0] =
++ si->totalchans + offset;
+ }
+ pris[*span].dchanavail[0] |= DCHAN_PROVISIONED;
+ pris[*span].offset = offset;
+@@ -10580,10 +10581,18 @@
+ cur_radio = 0;
+ cur_signalling = SIG_PRI;
+ pritype = PRI_NETWORK;
++ } else if (!strcasecmp(v->value, "bri_net")) {
++ cur_radio = 0;
++ cur_signalling = SIG_PRI;
++ pritype = PRI_NETWORK;
+ } else if (!strcasecmp(v->value, "pri_cpe")) {
+ cur_signalling = SIG_PRI;
+ cur_radio = 0;
+ pritype = PRI_CPE;
++ } else if (!strcasecmp(v->value, "bri_cpe")) {
++ cur_signalling = SIG_PRI;
++ cur_radio = 0;
++ pritype = PRI_CPE;
+ } else if (!strcasecmp(v->value, "gr303fxoks_net")) {
+ cur_signalling = SIG_GR303FXOKS;
+ cur_radio = 0;
Property changes on: asterisk/trunk/debian/patches/zapbri.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-voip-commits
mailing list