look in the xml cdr, it's in there for sure.<span></span><br><br>On Thursday, August 18, 2016, Victor Chukalovskiy <<a href="mailto:victor.chukalovskiy@gmail.com">victor.chukalovskiy@gmail.com</a>> 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 "last_bridge_to" allows to find last b-leg for any given a-leg as<br>
long as call was actually "bridged". However, if given a-leg had b-leg<br>
originated, but no actual media or ring-back happened, variable<br>
"last_bridge_to" remains empty. So I can't use that.<br>
<br>
So is there a single variable on a-leg CDR that contains UUID of the<br>
last "originated" leg?<br>
<br>
I know there are arrays e.g. "originated_legs" or "originate_causes", 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, 'cvml', 'consulting@freeswitch.org')">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, 'cvml', 'FreeSWITCH-users@lists.freeswitch.org')">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>