[zaptel-commits] tzafrir: branch 1.2 r4465 - in /branches/1.2/xpp: card_fxs.c xbus-pcm.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Aug 7 07:04:55 CDT 2008


Author: tzafrir
Date: Thu Aug  7 07:04:54 2008
New Revision: 4465

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4465
Log:
xpp: debuggging parameter pcmtx_chan now refers to a zap channel number.

Also fix a typo in card_fxs.

(From r4461 in branches/1.4)

Modified:
    branches/1.2/xpp/card_fxs.c
    branches/1.2/xpp/xbus-pcm.c

Modified: branches/1.2/xpp/card_fxs.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/card_fxs.c?view=diff&rev=4465&r1=4464&r2=4465
==============================================================================
--- branches/1.2/xpp/card_fxs.c (original)
+++ branches/1.2/xpp/card_fxs.c Thu Aug  7 07:04:54 2008
@@ -1134,7 +1134,7 @@
 				update_line_status(xpd, i, 0);
 			}
 			/*
-			 * Must witch to low power. In high power, an ONHOOK
+			 * Must switch to low power. In high power, an ONHOOK
 			 * won't be detected.
 			 */
 			do_chan_power(xbus, xpd, i, 0);

Modified: branches/1.2/xpp/xbus-pcm.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/xpp/xbus-pcm.c?view=diff&rev=4465&r1=4464&r2=4465
==============================================================================
--- branches/1.2/xpp/xbus-pcm.c (original)
+++ branches/1.2/xpp/xbus-pcm.c Thu Aug  7 07:04:54 2008
@@ -839,7 +839,9 @@
 		if(IS_SET(lines, i)) {
 			if(SPAN_REGISTERED(xpd)) {
 #ifdef	DEBUG_PCMTX
-				if(pcmtx >= 0 && pcmtx_chan == i)
+				int     channo = xpd->span.chans[i].channo;
+
+				if(pcmtx >= 0 && pcmtx_chan == channo)
 					memset((u_char *)pcm, pcmtx, ZT_CHUNKSIZE);
 				else
 #endif




More information about the zaptel-commits mailing list