<p style="white-space: pre-wrap; word-wrap: break-word;">Hi, here's more detail and more understandable log regarding AGI. I've tested with the same scenario like before.</p><p style="white-space: pre-wrap; word-wrap: break-word;">[Jan 17 22:29:59] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Created CDR for channel PJSIP/sipp-uac-00000005<br>[Jan 17 22:29:59] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Transitioning CDR for PJSIP/sipp-uac-00000005 from state NONE to Single<br>[Jan 17 22:30:14] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Set answered time to 1547760614.046547<br>[Jan 17 22:30:34] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Transitioning CDR for PJSIP/sipp-uac-00000005 from state Single to Finalized<br>[Jan 17 22:30:34] DEBUG[108602] cdr.c: Finalized CDR for PJSIP/sipp-uac-00000005 - start 1547760599.490740 answer 1547760614.046547 end 1547760634.084737 dispo ANSWERED<br>[Jan 17 22:30:34] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Beginning finalize/dispatch for PJSIP/sipp-uac-00000005<br>[Jan 17 22:30:34] VERBOSE[108602] cdr.c: 0x7f0fa0001400 - Dispatching CDR for Party A PJSIP/sipp-uac-00000005, Party B <none></p><p style="white-space: pre-wrap; word-wrap: break-word;"><br>The cdr's status changing is, <br>NONE -> Single -> Finalized<br>which is OK to create only 1 CDR for this.</p><p style="white-space: pre-wrap; word-wrap: break-word;">And, I've tested another scenario which is includeing queue(). The issue what you mention above thing, the reason of creating more than 2 cdrs, was queue().<br>Because queue generated call to the other endpoit, it makes more cdrs.<br>------------------------------------------------</p><p style="white-space: pre-wrap; word-wrap: break-word;">Anyways, unlike the AGI, when the channel entered to the ARI, the cdr status changed to the Dial and then changed to DialPending.</p><p style="white-space: pre-wrap; word-wrap: break-word;">None -> Single -> Dial -> DialPending -> Single -> Fianalized</p><p style="white-space: pre-wrap; word-wrap: break-word;">So, at this point, I don't get it why cdr status changed to the Dial even it doesn't dialing. Just entered to the ARI.<br>It should not change the status.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But I couldn't make sure I'm right or not at the moment.<br>However, I think the entering ARI must not change the status to the Dial now.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I was focused on to fix the time-overwrting problem. But it was not the real problem.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If you guys agreed with this, I would like to change it to make the entering ARI can not change the status to DIAL.</p><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: 5 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <sungtae@messagebird.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: sungtae kim <sungtae@messagebird.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 17 Jan 2019 22:00:16 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>