[zaptel-commits] tilghman: branch 1.4 r2986 - in /branches/1.4: zaptel-base.c zaptel.h

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Aug 30 17:47:42 CDT 2007


Author: tilghman
Date: Thu Aug 30 17:47:42 2007
New Revision: 2986

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2986
Log:
Add two fields to the spanconfig struct (at the bottom, as suggested by tzafrir), with a define to let modules know that it's there

Modified:
    branches/1.4/zaptel-base.c
    branches/1.4/zaptel.h

Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=2986&r1=2985&r2=2986
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Thu Aug 30 17:47:42 2007
@@ -3165,6 +3165,8 @@
 		stack.span.irqmisses = spans[i]->irqmisses;	/* get IRQ miss count */
 		stack.span.syncsrc = spans[i]->syncsrc;	/* get active sync source */
 		stack.span.totalchans = spans[i]->channels;
+		stack.span.lbo = spans[i]->lbo;
+		stack.span.lineconfig = spans[i]->lineconfig;
 		stack.span.numchans = 0;
 		for (j=0; j < spans[i]->channels; j++)
 			if (spans[i]->chans[j].sig)

Modified: branches/1.4/zaptel.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel.h?view=diff&rev=2986&r1=2985&r2=2986
==============================================================================
--- branches/1.4/zaptel.h (original)
+++ branches/1.4/zaptel.h Thu Aug 30 17:47:42 2007
@@ -176,6 +176,9 @@
 #define	RING_DEBOUNCE_TIME	2000	/* 2000 ms ring debounce time */
 
 #define ZT_GET_PARAMS_RETURN_MASTER 0x40000000
+
+/* Extended attributes in lineconfig structure */
+#define ZT_SPANINFO_HAS_LINECONFIG
 
 typedef struct zt_params
 {
@@ -222,6 +225,8 @@
 int	numchans;	/* number of configured channels on this span */
 int	totalchans;	/* total number of channels on the span */
 int	totalspans;	/* total number of zaptel spans in entire system */
+int	lbo;        /* line build out */
+int	lineconfig; /* framing/coding */
 } ZT_SPANINFO;
 
 typedef struct zt_maintinfo




More information about the zaptel-commits mailing list