CDR "Userfield" information is missing, no callerid names is provided in Freepbx 2.10 CDR

If you use FreePBX 2.10, you will quickly discover that the CDR reports have some welcome additions. Unfortunately, one of the key pieces of information on the old reports has vanished, i.e. CallerID Names. Here’s a not-very-graceful way to add it back by replacing the existing (blank) UserField with the full CallerID Name and Number:

Code:

cp /var/www/html/admin/modules/cdr/page.cdr.php /var/www/html/admin/modules/cdr/page.cdr.orig.php
sed -i “s/w[‘userfield’]);/w[‘clid’]);/” /var/www/html/admin/modules/cdr/page.cdr.php

Be sure to make a copy of the file first!

The above was taken from:
http://www.pbxinaflash.com/community/index.php?threads/adding-callerid-name-to-cdr-reports-in-freepbx-2-10.13305/

I had to run these lines of code again this morning to restore the date to UserField after upgrading Freepbx this morning.