Page 1 of 1

channel_find_locked

PostPosted: Thu Feb 01, 2007 11:08 am
by dlapitan
Hi,

How do i get rid the error channel.c:787 channel_find_locked: Avoid deadlock.

im using centos 4.4
ztdummy
full recording-SCSI drive
p4 2.8 dualcore
2gig RAM


It was working fine for 2 days and then error start appearing to the CLI asterisk. I already disable the recording but the error still there.


thank you
denis

PostPosted: Thu Feb 01, 2007 10:19 pm
by mflorell
What is the "loadavg" when this happens?

How many channels are active?

How many agents?

PostPosted: Thu Feb 01, 2007 10:41 pm
by dlapitan
Hi matt,

Thanks for your quick reply...here it is

1. 12.0 loadavg
2. 12 simultaneous active calls
3. 20 agents

i have 1 server for apache/mysql and separate server for vicidial/asterisk.

When im getting this error from the asterisk CLI all outgoing calls will have static or scratch sound and the called party cannot no longer hear us or understand us. I have notice also that the server was starting to slow.

I was able to used the server for 2days without any problem with recordings.


thanks matt..hoping for your reply.

PostPosted: Sat Feb 03, 2007 5:34 pm
by mflorell
a loadavg of 12.0 is way to high. What exactly is running on this server?

You have 20 agents with only 12 calls going on?

How many asterisk channels(Asterisk CLI "show channels concise")

PostPosted: Sat Feb 03, 2007 7:20 pm
by dlapitan
hi matt,

I tried yesterday and the loadavg was drop to 0.7 with full recordings.I dont know what happen, i didnt modify anything.the 12 active channels was from the CLI command "show channels", yesterday i have 15 active channels. the server was running asterisk/vicidial only nothing more. As what i remember tried to configure and mount the samba to transfer the recording files from the file server but i was doing after office hours.

What is the best way to transfer the recordings files?

Thanks for your reply matt.

PostPosted: Sun Feb 04, 2007 9:14 am
by mflorell
Heavy drive activity can cause a spike in loadavg. I usually run the AST_CRON_mix_recordings.pl script after hours and configure that script to FTP the recordings to an FTP server. All you need to do is edit that script's settings to go to your FTP server.

Do you have an FTP server installed on your local network?

PostPosted: Sun Feb 04, 2007 11:27 pm
by dlapitan
Hi matt,

Ok, i will try to setup that this week. Im planning to use my existing web server as my ftp server. so i need to remove the AST_CRON_mix_recordings.pl from the crontab?

thanks matt....

PostPosted: Mon Feb 05, 2007 1:31 am
by mflorell
You need one of the mix_recordings scripts to move your recordings after they are made, and mix the recordings that are in separate in and out files.

If you are using the same server as your Asterisk server then you need to setup a virtual directory in Apache.

If your web server is another different machine from your Asterisk server then you will need to setup an FTP server on it to move these recordings automatically.