<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m not positive you’ll find it in the variables. Just grep for the right uuid in one to confirm where you can find it. You should see similar info in the json cdr, but probably not in any of the flat formats.<div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 18, 2016, at 12:26 PM, Victor Chukalovskiy <<a href="mailto:victor.chukalovskiy@gmail.com" class="">victor.chukalovskiy@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
<div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Thanks Michale, which chan var do you refer by "it"? I imagine if
it's present in XML CDRs, it would be feasible via any other CDR
output method...<br class="">
</p>
<pre class="moz-signature" cols="72"></pre>
<div class="moz-cite-prefix">On 16-08-18 12:16 PM, Michael Jerris
wrote:<br class="">
</div>
<blockquote cite="mid:CAEwTsAhzOk5H1853uPcNsk9e8SF=cK=FTusODBgs6i8nOjng5g@mail.gmail.com" type="cite" class="">look in the xml cdr, it's in there for sure.<span class=""></span><br class="">
<br class="">
On Thursday, August 18, 2016, Victor Chukalovskiy <<a moz-do-not-send="true" href="mailto:victor.chukalovskiy@gmail.com" class="">victor.chukalovskiy@gmail.com</a>>
wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Good day,<br class="">
<br class="">
My ultimate goal is for any given a-leg CDR to find the very
last b-leg CDR.<br class="">
<br class="">
var "last_bridge_to" allows to find last b-leg for any given
a-leg as<br class="">
long as call was actually "bridged". However, if given a-leg had
b-leg<br class="">
originated, but no actual media or ring-back happened, variable<br class="">
"last_bridge_to" remains empty. So I can't use that.<br class="">
<br class="">
So is there a single variable on a-leg CDR that contains UUID of
the<br class="">
last "originated" leg?<br class="">
<br class="">
I know there are arrays e.g. "originated_legs" or
"originate_causes", so<br class="">
worst case scenario I can iterate and pick the last UUID in
either one<br class="">
of these arrays. But this means external code or fancy trigger
functions<br class="">
upon CDR SQL insert. Trying to avoid that.<br class="">
<br class="">
Many thanks!<br class="">
<br class="">
-Victor</blockquote></blockquote></div></div></blockquote></div></div></div></body></html>