<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">If I understand (possible I misread something) I think this will<br>break expectations. At least according to the documentation. Taking<br>a look at the https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CDR+Specification.<br>It states the following:</p><p style="white-space: pre-wrap; word-wrap: break-word;">"If a channel dials another channel and then continues on in the<br>dialplan, the CDR for the dial operation is finalized and a new CDR<br>is created.</p><p style="white-space: pre-wrap; word-wrap: break-word;">... <also> ...</p><p style="white-space: pre-wrap; word-wrap: break-word;">If the caller continues on in the dialplan, a new CDR is generated<br>for them."</p><p style="white-space: pre-wrap; word-wrap: break-word;">Basically I take this to mean that any time a channel enters the<br>dialplan (initially, through continue, returns to, etc...) a new<br>CDR is to be created. I've verified this using an AGI script at<br>least:</p><p style="white-space: pre-wrap; word-wrap: break-word;">1. Channel enters dialplan = new CDR<br>2. Channel enters AGI script = same CDR<br>3. Channel returns to dialplan from AGI = new CDR</p><p style="white-space: pre-wrap; word-wrap: break-word;">From what I can tell that's how it is working, and has been working<br>for quite a while. It seems that this change would break that. I<br>guess the question becomes has it been broken this whole time and<br>is the documentation wrong? Does transitioning from a channel from<br>a some context (ARI, AGI, etc..) warrant a new CDR?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Hi Kevin, I just have atest using the AGI. But for me, it was different. It didn't create new CDR for this. If the AGI is not creating a new CDR as I tested, I think we need to don't create new one.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I've tested with this dialplan.</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">exten => agi_test,1,NoOp(agi_test)<br> same => n,AGI(agi:async,agi_test)<br> same => n,Wait(10)<br> same => n,Hangup()</pre><p style="white-space: pre-wrap; word-wrap: break-word;"><br>And after the channel entered to the AGI, I sent these 2 command using AMI.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Action: AGI<br>Channel: PJSIP/sipp-uac-00000044<br>Command: Answer</p><p style="white-space: pre-wrap; word-wrap: break-word;">Action: AGI<br>Channel: PJSIP/sipp-uac-00000044<br>Command: asyncagi break </p><p style="white-space: pre-wrap; word-wrap: break-word;"><br>And here's my test log.<br>https://issues.asterisk.org/jira/browse/ASTERISK-28181?focusedCommentId=245987&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-245987</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 <pchero21@gmail.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 <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 16 Jan 2019 23:12:17 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>