Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv23200

Modified Files:
        zaptel.c 
Log Message:
don't try to use the table lookup when the function pointer has not been 
initialized yet


Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- zaptel.c    25 Sep 2005 21:35:37 -0000      1.116
+++ zaptel.c    26 Sep 2005 22:11:10 -0000      1.117
@@ -4975,9 +4975,9 @@
                           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 */

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to