Inbound post-call configuration hook

The user case is to to attach the recording of every call (incoming/outgoing) with the webhook data (from, to, extension, duration, billable seconds etc.). I am absolutely open to change this further if there’s a better way.

I initially tried using AMI but cdr would not include a recording filename among other issues. So I then tried output my own custom event (and switched to AGI). In the process, and looking at the forum (sorry I can’t find the reference), it was suggested that cdr may be called before the standard mixmonitor would finish, preventing a filename to be output. So I added one myself and it worked. It works well for outbound calls, and also allowed be to be in full control of filename etc.

Why, if Mixmonitor was not needed there would be an answer for a post-incoming-call hook?