Hi All,
I’m new to the whole Asterisk/FreePBX/VoIP world, but I’ve built a fully working prototype system (as a replacement for our soon to be retired Siemens box). I’ve got pretty much everything working now (including reflashing our existing Openstage phones but have one tiny gripe left.
In the CDR reports, I’d really like to be able to see who was being called by name in the Destination field. So, basically a caller ID lookup on the destination number for an outbound call?
I’ve put most of numbers we regularly call into the phonebook, but can’t see any way to bring this together?
Any clues?
It’s a PHP script stored in the /var/www/html/admin directory tree.
If you make it do that, be sure to submit it back to the team through the issues page so they can add it to the system. Failing that, you can use the asteriskcdrdb database table and cdr table and write your own report generator. The system (asterisk) maintains a local version of the CID data that you should be able to query.
Well, the winning answer comes from Lorne, in the super Outbound_CNAM module.
Didn’t even need to go to the console. Downloaded it, uploaded via the web gui, installed, picked some boxes in the settings, and made an outbound call. Ran the CDR report and there was my name in the Account column! Epic!
Just one more query if I may? I noticed this in the log while making the call -
[2017-03-30 12:02:28] WARNING[10764]: func_cdr.c:395 cdr_write_callback: Using the CDR function to set ‘accountcode’ is deprecated. Please use the CHANNEL function instead.
I guess I can ignore this for now, but wondered if anyone knew how to amend the code to fix it. I’ve looked at the module but it’s beyond me…
I’ve patched that file (/var/www/html/admin/modules/outcnam/functions.inc.php), checked it twice, restarted Asterisk, but it’s still giving the warning and putting the CID into the accountcode.
What obvious thing am I missing here?
Hi,
I am using latest Freepbx and contact manager as CID Loookup.
I have exactly the same issue.
Unfortunately the provided solution is not valid for latest Freepbx.
Can not find
$ext->splice($context, $exten, ‘customtrunk’, new ext_setvar(‘CDR(accountcode,r)’, ‘${lookupcid}’),"",$spice_position);
in functions.inc.php
Many Thanks
What do you mean by ‘install the module’ ?
Cdr Module is installed but cdr destination field is not showing the CIDName.
Only showing the CIDnumber.
Also Double checked that the entry exists in Contact Manager.