[asterisk-users] Zaptel timer on Intel Dual Core servers

Tony Mountifield tony at softins.clara.co.uk
Tue Feb 5 03:58:54 CST 2008


Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Sat, Feb 02, 2008 at 09:46:42AM +0100, Johansson Olle E wrote:
> > Friends,
> > 
> > I'm having severe problems with zaptel timers on Intel Dual Core  
> > systems with SMP code enabled. Ztdummy, zaptel connected to Digium TDM  
> > or PRI cards - all ends up with large timer probems - zttest going  
> > down to 50% accuracy on some systems, even to -1 on ztdummy systems  
> > and voice quality is no more.  A restart is the only way to get back  
> > to a working system.
> 
> A restart of asterisk? Not touhcing the kernel modules? 
> 
> What CPU is it, exactly? /proc/cpuinfo would help.
> 
> What version of Zaptel? Asterisk? Kernel? distribution?

Olle,

Specifically, what kernel version? If you are using 2.6.9 (e.g. Centos 4),
then by default when you build ztdummy, it does NOT use USE_RTC (although
IMHO it should do). You should make the following change to ztdummy.c:

 #if LINUX_VERSION_CODE >= VERSION_CODE(2,6,13)
 #define USE_RTC
 #else
-#if 0
+#if 1
 #define USE_RTC
 #endif
 #endif

And then recompile. This will make ztdummy use the RTC instead of kernel
jiffies.

If that's not it, then I hope you discover the cause, and would be
interested to know what it is.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list