[Asterisk-code-review] main/cdr: Allow modules to modify CDR fields before dispatch... (asterisk[master])

Joshua Colp asteriskteam at digium.com
Tue Oct 20 12:12:50 CDT 2015


Hello Anonymous Coward #1000019, Matt Jordan,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/1450

to look at the new patch set (#3).

Change subject: main/cdr: Allow modules to modify CDR fields before dispatching them
......................................................................

main/cdr: Allow modules to modify CDR fields before dispatching them

This patch adds the functions

	ast_cdr_modifier_register()
	ast_cdr_modifier_unregister()

That work much like ast_cdr_register() and ast_cdr_unregister().

Modules registered will be given a chance to modify (or to do whatever
they want) CDR fields just before they are passed to registered engines.

Thus, for instance, if a module change the "userfield" field of a CDR,
the modified value will be passed to every registered CDR backend for
logging.

ASTERISK-25479 #close

Change-Id: If11d8fd19ef89b1a66ecacf1201e10fcf86ccd56
---
M include/asterisk/cdr.h
M main/cdr.c
2 files changed, 73 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/50/1450/3
-- 
To view, visit https://gerrit.asterisk.org/1450
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If11d8fd19ef89b1a66ecacf1201e10fcf86ccd56
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Jonh Wendell <jonh.wendell at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list