summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-26 22:11:10 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-26 22:11:10 +0000
commit68e58ef109a01aa9e77d0cceca6b05f9e0b42b67 (patch)
tree50efee73c16357b6bf7da21f2d04a63de735edd2
parent8080751796851bae724ce85b5525ae47b6245be7 (diff)
don't try to use the table lookup when the function pointer has not been initialized yet
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@778 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xzaptel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zaptel.c b/zaptel.c
index 48909a8..2161869 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -4975,9 +4975,9 @@ 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, ZT_LIN2X(0, ms), bytes);
+ memset(txb, ms->xlaw == __zt_alaw ? 0x55 : 0xFF, bytes);
} else {
- memset(txb, 0xff, bytes);
+ memset(txb, 0xFF, bytes);
}
} else {
memset(txb, ZT_LIN2X(0, ms), bytes); /* Lastly we use silence on telephony channels */