diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-26 23:30:24 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-26 23:30:24 +0000 |
commit | be22da9f894210e41a79733e4e45d76aff56bb34 (patch) | |
tree | a49c88be3380f3e29e745864b6dcc8fab01cfc89 | |
parent | 68e58ef109a01aa9e77d0cceca6b05f9e0b42b67 (diff) |
_really_ fix the zaptel hang problem
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@779 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | zaptel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |