Ticket #2885 (new Patches)

Opened 5 months ago

Last modified 4 months ago

PATCH - Add DID information into CDR.

Reported by: snocetti Assigned to: p_lindheimer
Priority: minor Milestone: Cut Line
Component: Core - Trunks/Routing Version: 2.4-branch
Keywords: Cc:
Confirmation: Need Feedback SVN Revision (if applicable):
Backend Engine: Asterisk 1.4.x Backend Engine Version:

Description

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.

Attachments

functions.inc.php.diff (0.6 kB) - added by snocetti on 07/09/08 06:48:15.

Change History

07/07/08 15:55:23 changed by snocetti

As a note, could be good that extension "s" does not exist anymore, instead, I suggest (I don't know how to do it) use _X.

Thanks

07/07/08 17:39:31 changed by p_lindheimer

  • confirmation changed from Unreviewed to Need Feedback.

snocetti,

thanks. However can you please add this as a patch so it can be reviewed. I get concerned setting the userfield since people tend to use that for various things (including this). But, if you can provide the patch so it can be easily reviewed we can determine if it would make sense to do or not (depends on where it puts in the code).

07/09/08 06:48:15 changed by snocetti

  • attachment functions.inc.php.diff added.

07/09/08 06:48:53 changed by snocetti

Added diff. file.

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads