The Flowroute CDR API returns a large amount of data. This article will describe what data is returned and the format of the data file.
Once the CDR job is complete and you have downloaded the generated data file, see Query CDRs for how to initiate this process, you will need to un-compress the data file. The resulting file is a 'CSV' file, with the first line being a list of the fields in the report. To process this file you could use a Python Solution or any other programming language to parse the file.
The fields are returned as follows: (see the Glossary for more information about these fields.)
- direction
- start_time
- end_time
- destination
- number_alias
- callerid
- total_cost
- destination_name
- callerid_country
- line_information
- result
- call_fail_sip_code
- call_fail_reason
- duration
- billed_duration
- rate
- first_increment
- subsequent_increment
- cost_subtotal
- connect_fee
- usf_fee
- ccrf
- cnam_lookup_fee
- custom_x_tag
- customer_ip
Example Data
direction,start_time,end_time,destination,number_alias,callerid,total_cost,destination_name,callerid_country,line_information,result,call_fail_sip_code,call_fail_reason,duration,billed_duration,rate,first_increment,subsequent_increment,cost_subtotal,connect_fee,usf_fee,ccrf,cnam_lookup_fee,custom_x_tag,customer_ip
Outbound,2019-06-25 18:18:54+00,2019-06-25 18:19:31+00,18774551500,Office Line 2,+12063389999,0.00000000,UNITED STATES - TOLL FREE,N/A,,completed,200,OK,37,42,0.000000,6,6,0.00000000,0.0000,0.00000000,0.00000000,0.00000000,,53.186.152.52:5080
Inbound,2019-06-25 18:18:00+00,2019-06-25 18:18:29+00,12063389999,Office Line 2,+12069928999,0.00474784,UNITED STATES,UNITED STATES,61,completed,200,OK,29,30,0.001500,6,6,0.00075000,0.0000,0.00000000,0.00009784,0.00390000,,53.186.152.52
Outbound,2019-06-25 18:15:38+00,2019-06-25 18:17:24+00,12069928999,Office Line 1,+12063389998,0.01994112,UNITED STATES,N/A,,completed,200,OK,106,108,0.009800,6,6,0.01764000,0.0000,0.00000000,0.00230112,0.00000000,,53.186.151.52:5080