[asterisk-users] Playback / Background / Read choppy, but musiconhold fine, even with ztdummy

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Apr 25 10:32:32 CDT 2008


On Fri, Apr 25, 2008 at 03:02:14PM +0000, Tony Mountifield wrote:
> In article <475001.15893.qm at web46412.mail.sp1.yahoo.com>,
> Benjamin Jacob <ben4asterisk at yahoo.com> wrote:
> > 
> > Also,  I don't think my SIP gateway uses Silence suppression, because the same SIP gateway
> > connections work fine with another Asterisk server.
> 
> OK, I think you need to home in on the differences between the server(s)
> that work fine and the one that doesn't.
> 
> What version of kernel is it running? If it less than 2.6.13, make sure
> you change "#if 0" to "#if 1" in ztdummy.c so that USE_RTC still gets
> enabled.

RTC is available (and used) as of kernel 2.6.15 . The thing that has
changed in 2.6.13 is that the default of HZ became 250 (but still
tunable). So unless you build your own kernel, without using RTC you
would not really get a steady rate of 1000 interrupts per second.

And then again, on kernels >= 2.6.22 you have hi-resolution timers which
generally work better.

> 
> Try "watch -dn 1 cat /proc/interrupts" and check that the RTC interrupts
> are going up by 1024 per second. This is with ztdummy running.

And if using something other than RTC: 1000 interrupts per second.
Anyway, "close to 1000" is easy to spot there.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list