[Asterisk-cvs] zaptel zaptel.c,1.117,1.118
kpfleming
kpfleming
Mon Sep 26 19:33:33 CDT 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv23726
Modified Files:
zaptel.c
Log Message:
_really_ fix the zaptel hang problem
Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- zaptel.c 26 Sep 2005 22:11:10 -0000 1.117
+++ zaptel.c 26 Sep 2005 23:30:24 -0000 1.118
@@ -4975,10 +4975,11 @@
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;
More information about the svn-commits
mailing list