[zaptel-commits] kpfleming: branch 1.2 r2752 - /branches/1.2/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jul 18 20:02:54 CDT 2007


Author: kpfleming
Date: Wed Jul 18 20:02:53 2007
New Revision: 2752

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2752
Log:
don't try to timeslot-interchange channels that are being bridged (DACS) if either channel has a txgain or rxgain specified, since that gain won't be applied any longer if the DACS is put into effect

Modified:
    branches/1.2/zaptel-base.c

Modified: branches/1.2/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel-base.c?view=diff&rev=2752&r1=2751&r2=2752
==============================================================================
--- branches/1.2/zaptel-base.c (original)
+++ branches/1.2/zaptel-base.c Wed Jul 18 20:02:53 2007
@@ -3853,8 +3853,13 @@
 		zt_check_conf(j);
 		zt_check_conf(stack.conf.confno);
 		if (chans[i]->span && chans[i]->span->dacs) {
-			if (((stack.conf.confmode & ZT_CONF_MODE_MASK) == ZT_CONF_DIGITALMON) && chans[stack.conf.confno]->span &&
-					(chans[stack.conf.confno]->span->dacs == chans[i]->span->dacs)) {
+			if (((stack.conf.confmode & ZT_CONF_MODE_MASK) == ZT_CONF_DIGITALMON) &&
+			    chans[stack.conf.confno]->span &&
+			    chans[stack.conf.confno]->span->dacs == chans[i]->span->dacs &&
+			    chans[i]->txgain == defgain &&
+			    chans[i]->rxgain == defgain &&
+			    chans[stack.conf.confno]->txgain == defgain &&
+			    chans[stack.conf.confno]->rxgain == defgain) {
 				chans[i]->span->dacs(chans[i], chans[stack.conf.confno]);
 			} else {
 				chans[i]->span->dacs(chans[i], NULL);




More information about the zaptel-commits mailing list