<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12848">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ChanIsAvail() generates a CDR when unanswered=yes in cdr.conf.<br><br>ChanIsAvail() creates a temporary channel with ast_request() to test<br>resource availability. It should not generate a CDR when it hangs up<br>this temporary channel.<br><br>This patch disables CDR generation for the temporary channel with<br>ast_cdr_set_property().<br><br>ASTERISK-28527<br><br>Change-Id: I7b0555c6909c7d322e452dde97c9ea5b111552d1<br>---<br>M apps/app_chanisavail.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c</span><br><span>index 70325b3..446bce1 100644</span><br><span>--- a/apps/app_chanisavail.c</span><br><span>+++ b/apps/app_chanisavail.c</span><br><span>@@ -178,6 +178,9 @@</span><br><span> snprintf(tmp, sizeof(tmp), "%d", status);</span><br><span> ast_str_append(&tmp_availcause, 0, "%s%s", ast_str_strlen(tmp_availcause) ? "&" : "", tmp);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Disable CDR for this temporary channel. */</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_cdr_set_property(ast_channel_name(tempchan), AST_CDR_FLAG_DISABLE_ALL);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> ast_hangup(tempchan);</span><br><span> tempchan = NULL;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12848">change 12848</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/c/asterisk/+/12848"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I7b0555c6909c7d322e452dde97c9ea5b111552d1 </div>
<div style="display:none"> Gerrit-Change-Number: 12848 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Frederic LE FOLL <frederic.lefoll@c-s.fr> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>