Save dnid to cdr

Hi Guys

Im hoping somebody can help me.

I want to save the from_did to a new colomn (dnid) in mysql cdr.
where would the correct place be to add it to the dial plan?

thanks

This feature is done in version 2.10, upgrade your FreePBX