...well I analyzed your fjava Script and as I can see you used h323-disconnect-time - ft_time to calculate the time of talking between two numbers.
I am making a application with C# and SQL.I am, parsgin my csv files to a sql table and then in that table I am filtering with a store procedure and filktered data I am saving in another table in wich I save:
Call_ID,CallingNumber,CalledNumber,SetupTime(same as ft_time),ConnectTime.DisconnectTime...and from this table I will make something else(report or whatever).
All I need to know in wich row should I calculate h323-disconnect-time - ft_time (and are you sure that I shouldn`t use h323-disconnect-time - h323-connect-time ) , because as I mentioned in other replys, for onw TWC call there are two records(one answer record and one originate record, this is in CallOrigin field).
So...ft_time it` different (for some seconds) in answer record and in originate record.
Watch my CDR file atached if you have time, please.