<p style="white-space: pre-wrap; word-wrap: break-word;">Hi Joshua, here's my understanding.</p><p style="white-space: pre-wrap; word-wrap: break-word;"><br>The problem cdr state flow is this.<br>None -> Single -> Dial -> DialPending -> Single -> Fianalized</p><p style="white-space: pre-wrap; word-wrap: break-word;">And according the CDR description https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CDR+Specification</p><p style="white-space: pre-wrap; word-wrap: break-word;">It should be into 2 CDRs<br>None -> Single -> Dial -> Finalized.<br>None -> Single -> Fianalized</p><p style="white-space: pre-wrap; word-wrap: break-word;">or should be like this.<br>None -> Single -> Finalized.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But, because of the "DialPending" state, it was possible to go back to "Single" state.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I was wondering what is the "DialPedning" state, because it's not shown in the doc.<br>If I'm correct, it's very special state designed only for Stasis.<br>Anyways it allows to go to Single state with 'continue' ari action.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In this case, the cdr's start time must not be reset. Because it's not new cdr.<br>The "Single" state was designed for initiating CDR.<br>So, without initiating, it's working as it designed for.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I fixed code like this way(don't initiating).</p><p style="white-space: pre-wrap; word-wrap: break-word;">Plus, here's my answers.</p><ul><li>this explicitly reset it before, so was that on purpose?</li><li>> Yes, that was on pupose except this case.</li></ul><ul><li>what was that scenario?</li><li>> All the possible scenario for the go to Single(execute dialplan) from the DialPending state.</li></ul><ul><li>was that correct</li><li>> For this case, it was not correct.</li></ul><p><a href="https://gerrit.asterisk.org/10747">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><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: comment </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: 3 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 06 Dec 2018 23:17:10 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>