From 7d1d0aa73e6c57e758e37ca94a1390e233de8fab Mon Sep 17 00:00:00 2001 From: tzafrir Date: Mon, 11 Aug 2008 13:47:45 +0000 Subject: * pcmtx_chan debugging parameter now refers to a zaptel channel number. * Do initialize xsp. Closes issue #13276 . * xbus_core_shutdown can't be __exit as it is used in initilization as well. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4473 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/card_bri.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xpp/card_bri.c') diff --git a/xpp/card_bri.c b/xpp/card_bri.c index 086dbea..ea78ea6 100644 --- a/xpp/card_bri.c +++ b/xpp/card_bri.c @@ -1092,12 +1092,13 @@ static void BRI_card_pcm_fromspan(xbus_t *xbus, xpd_t *xpd, xpp_line_t wanted_li if(IS_SET(wanted_lines, i)) { if(SPAN_REGISTERED(tmp_xpd)) { #ifdef DEBUG_PCMTX - if(pcmtx >= 0 && pcmtx_chan == i) + int channo = tmp_xpd->span.chans[i].channo; + + if(pcmtx >= 0 && pcmtx_chan == channo) memset((u_char *)pcm, pcmtx, ZT_CHUNKSIZE); else #endif memcpy((u_char *)pcm, chans[i].writechunk, ZT_CHUNKSIZE); - // fill_beep((u_char *)pcm, tmp_xpd->addr.subunit, 2); } else memset((u_char *)pcm, 0x7F, ZT_CHUNKSIZE); pcm += ZT_CHUNKSIZE; @@ -1143,7 +1144,6 @@ static void BRI_card_pcm_tospan(xbus_t *xbus, xpd_t *xpd, xpacket_t *pack) if(IS_SET(tmp_mask, i)) { r = tmp_xpd->span.chans[i].readchunk; // memset((u_char *)r, 0x5A, ZT_CHUNKSIZE); // DEBUG - // fill_beep((u_char *)r, 1, 1); // DEBUG: BEEP memcpy((u_char *)r, pcm, ZT_CHUNKSIZE); pcm += ZT_CHUNKSIZE; } -- cgit v1.2.3