Mimiko,
I've re-read your posts a few times but your English is not great and I'm having a difficult time understanding the problem. From what I can tell, you initially had a question about recording both call queues, for which Regis then gave you an answer.
Then your next post stated you want to stop recording if 'cc_record_filename' contains a non empty value, you posted some code, but didn't tell us the result of using that code.
You need to try and make your posts a bit more concise and clearer, otherwise it will mostly get ignored for poor presentation.
Have a read over the following guidelines, this will greatly increase your chances of getting a better response;
I'd suggest starting a new thread, with concise questions in the form of a question.
Hope this helps
Cal