? .tmp_versions ? zaptel.c.0xff.try1 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 17 Sep 2005 10:48:02 -0000 @@ -4970,9 +4970,9 @@ } bytes = 0; } 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); + /* Clear channels should idle with 0xff (ulaw) or 0x55 (alaw) + for the sake of silly PRIs that care about idle B channels */ + memset(txb, (ms->xlaw == __zt_alaw) ? 0x55 : 0xff, bytes); bytes = 0; } else { memset(txb, ZT_LIN2X(0, ms), bytes); /* Lastly we use silence on telephony channels */