summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzaptel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zaptel.c b/zaptel.c
index 2161869..c3096b1 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -4975,10 +4975,11 @@ out in the later versions, and is put back now. */
so stupid switches won't consider the channel active
*/
if (ms->flags & ZT_FLAG_AUDIO) {
- memset(txb, ms->xlaw == __zt_alaw ? 0x55 : 0xFF, bytes);
+ memset(txb, ZT_LIN2X(0, ms), bytes);
} else {
memset(txb, 0xFF, bytes);
}
+ bytes = 0;
} else {
memset(txb, ZT_LIN2X(0, ms), bytes); /* Lastly we use silence on telephony channels */
bytes = 0;