Monitor filename not working until channel is destroyed

I am using asterisk 15.5 and using Monitor command to record individual channels with a unique Id as the file name.

But when I see the monitor folder I don’t see the filename as unique Id but “test-in” and “test-out”. After I hang up the name of the file changes automatically to unique Id that it was supposed to be in the first place.

Is it supposed to work like that or am I doing something wrong?
I am using Monitor($(uid), wav) in dialplan.

it sounds like you are setting a filename somewhere else in your dialplan or in queues.conf that’s causing the files to be named ‘test’.

I’d grep for ‘test’ in /etc/asterisk and see what’s found.