Usually some people have not only one DID, and they want to generate a report of each call or minutes on each of this DID’s.
I suggest a little modification to CORE to make it available.
Modification on file functions.inc.php of module core system.
Add:
$ext->add($context, $exten, '', new ext_setvar('CDR(userfield)','DID:${EXTEN}'));
After:
$ext->add($context, $exten, '', new ext_setvar('__FROM_DID','${EXTEN}'));
and a new CDR userfield is set with data about DID, then we can have this information on CDR.
I hope it can be added for a future upgrade, or maybe somethin similar.
Regards.