]> git.ipfire.org Git - thirdparty/asterisk.git/commit
This commit prevents cdr records with AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED...
authorMatthew Nicholson <mnicholson@digium.com>
Thu, 21 May 2009 15:25:50 +0000 (15:25 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Thu, 21 May 2009 15:25:50 +0000 (15:25 +0000)
commitdf4812c96e1a8e3e52c6f2b3d39e464ba866b3ab
tree4d2af9deb5fa41469ca3b01f39a334c026cea7bb
parent91843c8c583c293c7518440b4cbd74f85ee6dcc5
This commit prevents cdr records with AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED from being updated in certain cases.

This is accomplished by adding two functions to update the answer time and disposition of calls that checks for the proper lock flags.  These functions are used in the ast_bridge_call() function so that ForkCDR(A) calls are respected.

This patch also modifies the way ast_bridge_call() chooses the cdr record to base the bridged_cdr on.  Previously the first unlocked cdr record would be chosen, now instead the first cdr record is chosen and forked cdr records are moved to the bridge_cdr.  This allows the original cdr record and any forked cdr records to be properly updated with answer and end times.

(closes issue #13797)
Reported by: sh0t
Tested by: sh0t

(closes issue #14744)
Reported by: deepesh

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/cdr.h
main/cdr.c
res/res_features.c