<p>sungtae kim has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10747">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fixed cdr start overwriting<br><br>The CDR was overwriting the start time when the call continued the<br>dialplan from the ARI stasis. Fixed to set the start time if the start<br>time is not set.<br><br>ASTERISK-28181<br><br>Change-Id: I921bc04064b6cff1deb2eea56a94d86489561cdc<br>---<br>M main/cdr.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/10747/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/cdr.c b/main/cdr.c</span><br><span>index 462c3e6..d3782ad 100644</span><br><span>--- a/main/cdr.c</span><br><span>+++ b/main/cdr.c</span><br><span>@@ -1623,7 +1623,10 @@</span><br><span> </span><br><span> static void single_state_init_function(struct cdr_object *cdr)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-   cdr->start = ast_tvnow();</span><br><span style="color: hsl(120, 100%, 40%);">+  /* reset the start time only when it does not set */</span><br><span style="color: hsl(120, 100%, 40%);">+  if ((!cdr->start.tv_sec) && (!cdr->start.tv_usec)) {</span><br><span style="color: hsl(120, 100%, 40%);">+            cdr->start = ast_tvnow();</span><br><span style="color: hsl(120, 100%, 40%);">+  }</span><br><span>    cdr_object_check_party_a_answer(cdr);</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10747">change 10747</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10747"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I921bc04064b6cff1deb2eea56a94d86489561cdc </div>
<div style="display:none"> Gerrit-Change-Number: 10747 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>