Asterisk 1.2.37 ChanSpy Problem

Hello

I have Asterisk 1.2.37 and I got some problems with ChanSpy. Basically what happens is that I cannot hear the operator or the client for some seconds … and after that it’s coming back to normal. What I saw in logs is:

Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames
Mar 23 13:30:41 DEBUG[13621] channel.c: Spy 'ChanSpy' on channel 'SIP/5800101-08deab10' write queue too long, dropping frames

Is there a timming problem ?

I saw in channel.c a limit…

#define SPY_QUEUE_SAMPLE_LIMIT 4000                     /* half of one second */

Any suggestions? I cannot upgrade to asterisk 1.4 or later…

Hard to say, 1.2 went EOL last year:

wiki.asterisk.org/wiki/display/ … k+Versions

:frowning:

I solved the problem. It was indeed related to timing due to the fact that my asterisk was running on a xen guest. Recompiled kernel with HZ=1000 and zaptel without RTC and now it’s fine.