On our test calls we haven't been able to correlate times from the A leg with times from the B leg.<br><br>I would expect something as A-leg(duration)= B-leg1(duration)+B-leg2(duration)<br><br>Also the <times> tag within <callflow> tag does not seem to be in epoch microseconds. so it does not seem that's where i should be looking for that info.<br>
<br>Here's an example of the <times> tag for a test call on the A-Leg:<br><br><ol><li class="li2"><div class="de2"> <span class="sc3"><span class="re1"><times<span class="re2">></span></span></span></div></li>
<li class="li1"><div class="de1"> <span class="sc3"><span class="re1"><created_time<span class="re2">></span></span></span>1233942283835696<span class="sc3"><span class="re1"></created_time<span class="re2">></span></span></span></div>
</li><li class="li2"><div class="de2"> <span class="sc3"><span class="re1"><profile_created_time<span class="re2">></span></span></span>1233942283835696<span class="sc3"><span class="re1"></profile_created_time<span class="re2">></span></span></span></div>
</li><li class="li1"><div class="de1"> <span class="sc3"><span class="re1"><progress_time<span class="re2">></span></span></span>1233942283999716<span class="sc3"><span class="re1"></progress_time<span class="re2">></span></span></span></div>
</li><li class="li2"><div class="de2"> <span class="sc3"><span class="re1"><progress_media_time<span class="re2">></span></span></span>1233942283999716<span class="sc3"><span class="re1"></progress_media_time<span class="re2">></span></span></span></div>
</li><li class="li1"><div class="de1"> <span class="sc3"><span class="re1"><answered_time<span class="re2">></span></span></span>1233942287291931<span class="sc3"><span class="re1"></answered_time<span class="re2">></span></span></span></div>
</li><li class="li2"><div class="de2"> <span class="sc3"><span class="re1"><hangup_time<span class="re2">></span></span></span>0<span class="sc3"><span class="re1"></hangup_time<span class="re2">></span></span></span></div>
</li><li class="li1"><div class="de1"> <span class="sc3"><span class="re1"><transfer_time<span class="re2">></span></span></span>1233942303240916<span class="sc3"><span class="re1"></transfer_time<span class="re2">></span></span></span></div>
</li><li class="li2"><div class="de2"> <span class="sc3"><span class="re1"></times<span class="re2">></span></span></span></div></li></ol><br>any hint is appreciated<br> <br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 3:46 PM, Luis F Urrea <span dir="ltr"><<a href="mailto:lfurrea@gmail.com">lfurrea@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all, <br><br>We are writing a xml_cdr parser to load CDRs in SQLite. We are interested in logging times for both A leg and B leg so that transfers are reported as individual calls with accurate timing. eg Inboud call to AA lasted 14 seconds then call to operator 20s and then call to actual extension 5min<br>
<br>As of now we are using the <callflow> tag with the "number" attribute to find out who did the A leg talk to, then we open the B leg files and get the times from each jump from the <times> tag within the <callflow> tag on the B leg file.<br>
<br>Is this right or maybe someone could suggest a better way to do it.<br><br>TIA<br><font color="#888888"><br>Luis<br>
</font></blockquote></div><br>