Queue Recording file name

Hi,

We are using Asterisk 1.4.2, with Queue implementation. We want detailed recording file name which includes “AgentID-CallerIDNum-DateTime”. I got some idea to accomplish this by using "system(mv ${RECFILENAME} ${RECFILENAME}-${AGENTNAME}) " but don’t know the exact syntax using within queue. I am not sure how to pass this cammand to queue application, so that it execute as agent complet the call.

Can someone please help to resolve this issue.

Regards,

Shamid