Recording Incoming Calls, manipulating filename

Hi,

How can I append the number of the extension that answers a call to the mixmonitor filename?

If I put mixmonitor statement AFTER dial statement it does not record.

If I put mixmonitor statement before dial statement it does not know who will answer the call.

Am I missing something obvious?

Thanks,

seabro