[asterisk-dev] sipsock_read: Failed to grab lock, trying again...

Olle E Johansson olle at voop.com
Sun May 13 22:40:11 MST 2007


13 maj 2007 kl. 21.52 skrev Nour Omar:

> Hello all,
> I was working on asterisk 1.2(latest) doing some tests before  
> deployments when I saw the debug statement in the subject. I  
> decided to look into it further and what causing it. I found out it  
> was caused by slow cdr backend. To make sure this is the case, I  
> changed the sql in cdr_addon_mysql.c to make it stored procedure. I  
> called it "InsertCDR". Inside this stored proc. I slow down the  
> query using  mysql BENCHMARK() functions ( example: DECLARE result  
> int; SELECT BENCHMARK(10000,ENCODE('hello','goodbye')) into result; )
>

Enable CDR batching in cdr.conf if you have such a slow backend.

/O


More information about the asterisk-dev mailing list