[Freeswitch-users] xml_cdr call flow

Michael Collins msc at freeswitch.org
Thu Feb 12 15:00:32 PST 2009


Pastebin the whole file so that we can see it in context...
-MC

On Thu, Feb 12, 2009 at 2:50 PM, Luis F Urrea <lfurrea at gmail.com> wrote:
> On our test calls we haven't been able to correlate times from the A leg
> with times from the B leg.
>
> I would expect something as A-leg(duration)=
> B-leg1(duration)+B-leg2(duration)
>
> 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.
>
> Here's an example of the <times> tag for a test call on the A-Leg:
>
> <times>
>       <created_time>1233942283835696</created_time>
>       <profile_created_time>1233942283835696</profile_created_time>
>       <progress_time>1233942283999716</progress_time>
>       <progress_media_time>1233942283999716</progress_media_time>
>       <answered_time>1233942287291931</answered_time>
>       <hangup_time>0</hangup_time>
>       <transfer_time>1233942303240916</transfer_time>
>     </times>
>
> any hint is appreciated
>
>
> On Thu, Feb 12, 2009 at 3:46 PM, Luis F Urrea <lfurrea at gmail.com> wrote:
>>
>> Hi all,
>>
>> 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
>>
>> 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.
>>
>> Is this right or maybe someone could suggest a better way to do it.
>>
>> TIA
>>
>> Luis
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>




More information about the FreeSWITCH-users mailing list