[Asterisk-code-review] main/cdr: Fixed cdr start overwriting (asterisk[master])

Joshua Colp asteriskteam at digium.com
Thu Dec 6 05:35:41 CST 2018


Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/10747 )

Change subject: main/cdr: Fixed cdr start overwriting
......................................................................


Patch Set 2: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/#/c/10747/2/main/cdr.c
File main/cdr.c:

https://gerrit.asterisk.org/#/c/10747/2/main/cdr.c@1627
PS2, Line 1627: 	if ((!cdr->start.tv_sec) && (!cdr->start.tv_usec)) {
              : 		cdr->start = ast_tvnow();
              : 	}
I don't think doing this without exploring (and defining) the CDR state machine for the scenario is a good idea. Looking at the code there is at least one case where the code is explicitly doing this in dialed_pending_state_process_party_a. That code could be incorrect, or it could break this particular scenario (but work for another). Before this change can be accepted, that has to be explored.



-- 
To view, visit https://gerrit.asterisk.org/10747
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I921bc04064b6cff1deb2eea56a94d86489561cdc
Gerrit-Change-Number: 10747
Gerrit-PatchSet: 2
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Comment-Date: Thu, 06 Dec 2018 11:35:41 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181206/eb8cdbc1/attachment.html>


More information about the asterisk-code-review mailing list