FreePBX Paid Support


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


DID variable for billing

snocetti's picture

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.


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Posting this here will just

fskrotzki's picture

Posting this here will just get lost and not addressed. Please on he left hand side select development, report a bug and place your request there as a feature request.

That way the developers will see it and it might happen. Leaving it here, it will just scroll off and if they see it, it probably be forgotten.


Thanks, I will do it... I am

snocetti's picture

Thanks, I will do it... I am new on this..