<p>Kevin Harwell <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6782">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cdr.c: Fix setting dnid, callingsubaddr, and calledsubaddr<br><br>The string comparisons for setting these CDR variables was inverted.  We<br>were repeatedly setting these CDR variables only if the channel snapshots<br>had the same value.<br><br>ASTERISK-27335<br><br>Change-Id: I9482073524411e7ea6c03805b16de200cb1669ea<br>---<br>M main/cdr.c<br>1 file changed, 3 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/cdr.c b/main/cdr.c<br>index d34503d..fc125f2 100644<br>--- a/main/cdr.c<br>+++ b/main/cdr.c<br>@@ -1333,13 +1333,13 @@<br>          set_variable(&old_snapshot->variables, "calledsubaddr", new_snapshot->dialed_subaddr);<br>            return;<br>       }<br>-    if (!strcmp(old_snapshot->snapshot->caller_dnid, new_snapshot->caller_dnid)) {<br>+      if (strcmp(old_snapshot->snapshot->caller_dnid, new_snapshot->caller_dnid)) {<br>                set_variable(&old_snapshot->variables, "dnid", new_snapshot->caller_dnid);<br>        }<br>-    if (!strcmp(old_snapshot->snapshot->caller_subaddr, new_snapshot->caller_subaddr)) {<br>+        if (strcmp(old_snapshot->snapshot->caller_subaddr, new_snapshot->caller_subaddr)) {<br>          set_variable(&old_snapshot->variables, "callingsubaddr", new_snapshot->caller_subaddr);<br>   }<br>-    if (!strcmp(old_snapshot->snapshot->dialed_subaddr, new_snapshot->dialed_subaddr)) {<br>+        if (strcmp(old_snapshot->snapshot->dialed_subaddr, new_snapshot->dialed_subaddr)) {<br>          set_variable(&old_snapshot->variables, "calledsubaddr", new_snapshot->dialed_subaddr);<br>    }<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6782">change 6782</a>. To unsubscribe, 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/6782"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: I9482073524411e7ea6c03805b16de200cb1669ea </div>
<div style="display:none"> Gerrit-Change-Number: 6782 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>