[Pkg-voip-commits] r7195 - in /asterisk/trunk/debian: README.Debian changelog patches/dahdi_pri_debug_spannums patches/dahdi_ptmp_nt patches/series

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Sun May 10 09:17:18 UTC 2009


Author: tzafrir-guest
Date: Sun May 10 09:17:17 2009
New Revision: 7195

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7195
Log:
* Patch dahdi_ptmp_nt: (not really) chan_dahdi PtMP NT support 
  (wildzero-cw).
* Patch dahdi_pri_debug_spannums: add span number in PRI trace. 

Added:
    asterisk/trunk/debian/patches/dahdi_pri_debug_spannums
    asterisk/trunk/debian/patches/dahdi_ptmp_nt
Modified:
    asterisk/trunk/debian/README.Debian
    asterisk/trunk/debian/changelog
    asterisk/trunk/debian/patches/series

Modified: asterisk/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/README.Debian?rev=7195&op=diff
==============================================================================
--- asterisk/trunk/debian/README.Debian (original)
+++ asterisk/trunk/debian/README.Debian Sun May 10 09:17:17 2009
@@ -87,6 +87,24 @@
   unnecessary dependencies.
 
 
+DAHDI PtMP NT
+=============
+Short version: it doesn't work.
+
+This package includes an experimental patch to test the support for PtMP 
+NT in chan_dahdi. This is needed to e.g. connect ISDN phones. Originally
+the code merely printed out "How cool would it be if someone implemented
+this mode!" and bailed out. This patch merely overrides it.
+
+At the moment it seems to provide at least basic support of ISDN phones
+(that is: of dialing out from a single ISDN phone). Likewise, on a
+loopback connection you can call from a TE port to the NT port but not
+vice versa.
+
+I figure that this would still be useful enough for some people, though.
+But in any case, please see http://bugs.digium.com/view.php?id=15048 .
+
+
 Enjoy your PBX!
 
 Kilian Krause (for the pkg-voip team)

Modified: asterisk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/changelog?rev=7195&op=diff
==============================================================================
--- asterisk/trunk/debian/changelog (original)
+++ asterisk/trunk/debian/changelog Sun May 10 09:17:17 2009
@@ -11,8 +11,11 @@
   * Patch h323-make-fix dropped: merged upstream.
   * Use upstream's asterisk.conf rather than our bogus one.
   * Also add the version-specific release summary. 
-
- -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Wed, 29 Apr 2009 03:02:46 +0300
+  * Patch dahdi_ptmp_nt: (not really) chan_dahdi PtMP NT support 
+    (wildzero-cw).
+  * Patch dahdi_pri_debug_spannums: add span number in PRI trace. 
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Sun, 10 May 2009 12:14:36 +0300
 
 asterisk (1:1.6.1.0~dfsg~rc3-1) experimental; urgency=low
 

Added: asterisk/trunk/debian/patches/dahdi_pri_debug_spannums
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/dahdi_pri_debug_spannums?rev=7195&op=file
==============================================================================
--- asterisk/trunk/debian/patches/dahdi_pri_debug_spannums (added)
+++ asterisk/trunk/debian/patches/dahdi_pri_debug_spannums Sun May 10 09:17:17 2009
@@ -1,0 +1,26 @@
+Print span number (when available) on PRI trace messages.
+
+This allows tracing ("pri debug" / "pri set debug") more than one span at
+a time in a sane manner.
+
+Upstream issue: http://bugs.digium.com/view.php?id=15054
+--- a/channels/chan_dahdi.c
++++ b/channels/chan_dahdi.c
+@@ -10682,6 +10682,8 @@ static void dahdi_pri_message(struct pri
+ 		}
+ 		if (dchancount > 1 && (span > -1))
+ 			ast_verbose("[Span %d D-Channel %d]%s", span, dchan, s);
++		else if (span > -1)
++			ast_verbose("%d %s", span+1, s);
+ 		else
+ 			ast_verbose("%s", s);
+ 	} else
+@@ -10721,6 +10723,8 @@ static void dahdi_pri_error(struct pri *
+ 		}
+ 		if ((dchancount > 1) && (span > -1))
+ 			ast_log(LOG_ERROR, "[Span %d D-Channel %d] PRI: %s", span, dchan, s);
++		else if (span > -1)
++			ast_log(LOG_ERROR, "%d %s", span+1, s);
+ 		else
+ 			ast_log(LOG_ERROR, "%s", s);
+ 	} else

Added: asterisk/trunk/debian/patches/dahdi_ptmp_nt
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/dahdi_ptmp_nt?rev=7195&op=file
==============================================================================
--- asterisk/trunk/debian/patches/dahdi_ptmp_nt (added)
+++ asterisk/trunk/debian/patches/dahdi_ptmp_nt Sun May 10 09:17:17 2009
@@ -1,0 +1,18 @@
+Give DAHDI PtMP NT mode a shot.
+
+This basically sort-of works. But then again, implementing the whole mode
+in a three-liner patch is quite a feat ;-)
+
+http://bugs.digium.com/view.php?id=15048
+--- a/channels/chan_dahdi.c
++++ b/channels/chan_dahdi.c
+@@ -14582,7 +14582,8 @@ static int process_dahdi(struct dahdi_ch
+ 					confp->chan.sig = SIG_BRI_PTMP;
+ 					confp->pri.nodetype = PRI_CPE;
+ 				} else if (!strcasecmp(v->value, "bri_net_ptmp")) {
+-					ast_log(LOG_WARNING, "How cool would it be if someone implemented this mode!  For now, sucks for you. (line %d)\n", v->lineno);
++					confp->chan.sig = SIG_BRI_PTMP;
++					confp->pri.nodetype = PRI_NETWORK;
+ 				} else if (!strcasecmp(v->value, "gr303fxoks_net")) {
+ 					confp->chan.sig = SIG_GR303FXOKS;
+ 					confp->pri.nodetype = PRI_NETWORK;

Modified: asterisk/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/series?rev=7195&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/series (original)
+++ asterisk/trunk/debian/patches/series Sun May 10 09:17:17 2009
@@ -19,3 +19,5 @@
 # bugfixes on top of everything
 disable_moh
 dahdi-fxsks-hookstate
+dahdi_ptmp_nt
+dahdi_pri_debug_spannums




More information about the Pkg-voip-commits mailing list