Update Asterisk's CDRs for the new bridging framework
authorMatthew Jordan <mjordan@digium.com>
Mon, 17 Jun 2013 03:00:38 +0000 (03:00 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 17 Jun 2013 03:00:38 +0000 (03:00 +0000)
commit6258bbe7bd1885ac5dec095ed0c4490c83a99f44
treeff2794f730ca55903a09b9fe7f73f45169a71386
parent67e35c7b4748c3cef954820a2b182e2a5edf8d98
Update Asterisk's CDRs for the new bridging framework

This patch is the initial push to update Asterisk's CDR engine for the new
bridging framework. This patch guts the existing CDR engine and builds the new
on top of messages coming across Stasis. As changes in channel state and bridge
state are detected, CDRs are built and dispatched accordingly. This
fundamentally changes CDRs in a few ways.
(1) CDRs are now *very* reflective of the actual state of channels and bridges.
    This means CDRs track well with what an actual channel is doing - which
    is useful in transfer scenarios (which were previously difficult to pin
    down). It does, however, mean that CDRs cannot be 'fooled'. Previous
    behavior in Asterisk allowed for CDR applications, channels, and other
    properties to be spoofed in parts of the code - this no longer works.
(2) CDRs have defined behavior in multi-party scenarios. This behavior will not
    be what everyone wants, but it is a defined behavior and as such, it is
    predictable.
(3) The CDR manipulation functions and applications have been overhauled. Major
    changes have been made to ResetCDR and ForkCDR in particular. Many of the
    options for these two applications no longer made any sense with the new
    framework and the (slightly) more immutable nature of CDRs.

There are a plethora of other changes. For a full description of CDR behavior,
see the CDR specification on the Asterisk wiki.

(closes issue ASTERISK-21196)

Review: https://reviewboard.asterisk.org/r/2486/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
68 files changed:
CHANGES
UPGRADE.txt
addons/cdr_mysql.c
addons/chan_ooh323.c
apps/app_authenticate.c
apps/app_cdr.c
apps/app_dial.c
apps/app_disa.c
apps/app_dumpchan.c
apps/app_followme.c
apps/app_forkcdr.c
apps/app_osplookup.c
apps/app_queue.c
cdr/cdr_adaptive_odbc.c
cdr/cdr_csv.c
cdr/cdr_custom.c
cdr/cdr_manager.c
cdr/cdr_odbc.c
cdr/cdr_pgsql.c
cdr/cdr_radius.c
cdr/cdr_syslog.c
cdr/cdr_tds.c
cel/cel_manager.c
cel/cel_radius.c
cel/cel_tds.c
channels/chan_agent.c
channels/chan_dahdi.c
channels/chan_h323.c
channels/chan_iax2.c
channels/chan_mgcp.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
funcs/func_callerid.c
funcs/func_cdr.c
funcs/func_channel.c
include/asterisk/bridging.h
include/asterisk/cdr.h
include/asterisk/cel.h
include/asterisk/channel.h
include/asterisk/channel_internal.h
include/asterisk/stasis_channels.h
include/asterisk/stasis_internal.h [new file with mode: 0644]
include/asterisk/test.h
include/asterisk/time.h
main/asterisk.c
main/bridging.c
main/bridging_basic.c
main/cdr.c
main/cel.c
main/channel.c
main/channel_internal_api.c
main/cli.c
main/dial.c
main/features.c
main/manager.c
main/manager_channels.c
main/pbx.c
main/stasis.c
main/stasis_cache.c
main/stasis_channels.c
main/test.c
main/utils.c
res/res_agi.c
res/res_config_sqlite.c
res/res_monitor.c
res/res_stasis_answer.c
tests/test_cdr.c [new file with mode: 0644]