On demand recording that starts a new recording

Hi FreePBX Community,

I’m looking for a way to record all call and at the same time allow users to record parts of their call using the on demand feature code.
For now, I’ve been able to record calls but the on demand code simply stops the recording. I’m trying to have it create a new audio file. Is it actually possible?

Thanks a lot,