CDR entry for each EXT

Is it possible to generate CDR entries in a db for each extension visited in one call?

Example being if I called in on a did and went to a menu that asked me for an extension. I go to an extension that plays a audio file then takes me back to the main menu where I enter a new extension.

I’m hoping to generate CDR entries for each ext visited so I can see where the caller went.

Thanks

What version of Asterisk are you using? If it’s 1.8 or higher, you can use CEL for this:

wiki.asterisk.org/wiki/display/ … +%28CEL%29

CEL is the correct way to do non-trivial call logging.

However, you can use ResetCDR to force out and re-initialise CDRs. ForkCDR does something similar, but I never undertood how to make it work.