Index: zaptel.c =================================================================== RCS file: /usr/cvsroot/zaptel/zaptel.c,v retrieving revision 1.115 diff -u -r1.115 zaptel.c --- zaptel.c 8 Sep 2005 17:22:39 -0000 1.115 +++ zaptel.c 11 Sep 2005 05:02:39 -0000 @@ -4969,11 +4969,20 @@ *(txb++) = fasthdlc_tx_run_nocheck(&ms->txhdlc); } bytes = 0; +#if 0 + /* SLD: We don't need to and in fact mustn't do this. + If we rather just pass along to the "silence" code below, + then we get a proper silence whether alaw or ulaw. + To further help you relax: ulaw coding for silence is 0xff anyway, + so for ulaw channels the behaviour remains the same anyway. + But with this code included, we send 0xff on alaw channels when + nothing else is being sent, and 0xff is NOT silence for alaw */ } else if (ms->flags & ZT_FLAG_CLEAR) { /* Clear channels should idle with 0xff for the sake of silly PRI's that care about idle B channels */ memset(txb, 0xff, bytes); bytes = 0; +#endif } else { memset(txb, ZT_LIN2X(0, ms), bytes); /* Lastly we use silence on telephony channels */ bytes = 0;