[Asterisk-Dev] Bug in chan_zap.c

Joel Daniels joeld at invtools.com
Mon Nov 29 09:49:00 MST 2004


Line 1475 of chan_zap.c (Inside function zt_callwait) says:

   memset(p->cidspill, 0x7f, 2400 + 600 + READ_SIZE * 4)

I don't understand hardly any of the code in chan_zap.c very well, however it
seems odd to me that on this line there is a size of 2400 + 600 + READ_SIZE *
4, and every where else in this function there is a size of 2400 + 680.  Is
this a bug, or is there really a reason why the last 80 bytes of this buffer
are not being silenced?

Also why are we using READ_SIZE * 4.  Will this create problems if I change
READ_SIZE to be 16 instead of 160?

If this is a but I'll be glad to put into mantis, if that is the correct
protocol, but I want to be sure that it is a bug first.

   - Joel Daniels




More information about the asterisk-dev mailing list