look in the xml cdr, it&#39;s in there for sure.<span></span><br><br>On Thursday, August 18, 2016, Victor Chukalovskiy &lt;<a href="mailto:victor.chukalovskiy@gmail.com">victor.chukalovskiy@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good day,<br>
<br>
My ultimate goal is for any given a-leg CDR to find the very last b-leg CDR.<br>
<br>
var &quot;last_bridge_to&quot; allows to find last b-leg for any given a-leg as<br>
long as call was actually &quot;bridged&quot;. However, if given a-leg had b-leg<br>
originated, but no actual media or ring-back happened, variable<br>
&quot;last_bridge_to&quot; remains empty. So I can&#39;t use that.<br>
<br>
So is there a single variable on a-leg CDR that contains UUID of the<br>
last &quot;originated&quot; leg?<br>
<br>
I know there are arrays e.g. &quot;originated_legs&quot; or &quot;originate_causes&quot;, so<br>
worst case scenario I can iterate and pick the last UUID in either one<br>
of these arrays. But this means external code or fancy trigger functions<br>
upon CDR SQL insert. Trying to avoid that.<br>
<br>
Many thanks!<br>
<br>
-Victor<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;consulting@freeswitch.org&#39;)">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;FreeSWITCH-users@lists.freeswitch.org&#39;)">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>