Customer Name on Recording File


I need a help that i want my customer name on my Recording file.

Like For Ex:

Customer Name : Criz
Phone number : 1234567890

I need Recording file like … criz-1234567890.wav

What i am gonna do is…

When the customer call comes… My agent will ask his name and his reference number it will stored in my web form. These informations are storing in my mysql. When the Customer call hang up my agent will save the details in MYSQL DB.

I tried ‘wv’ command for renaming the file.
But itz not working.
For Ex: exten => h,n,System(mv 1234567890.wav criz-1234567890.wav)

But itz not working…

Any possibility to do from the databases.