Account code per call

I am trying to implement a solution for a lawyer’s office. They want to enter an account code during a call that gets put into the CDR so they can charge their customers for the time spent on the call. Their existing pbx mutes the DTMF with a feature code and then stores the entry. Is there any way to do something like this?


Thanks, skyking! I would appreciate it if you would elaborate…

This can be done using asterbilling with freepbx. First when you create the extension, in the device options set accountcode in the respective field. Then set billingfield in /opt/asterisk/scripts/astercc/astercc.conf as described below:

billingfield= accountcode

then save and restart.

/etc/init.d/asterccd resstart

then loging to asterbilling and add clid with accountcode. You need to login as groupadmin or operator to do the testing.

CarolClark, so then the lawyers will all log into asterbilling during each phone call and fill in a field in the CDR for the call they are on?