function telecoms.calldata.detail.get

Use this function to fetch raw call data.

Some terminology (this is not a complete list):

In addition to custID, you must also supply at least one of callID, callID.min, callID.max.

Arguments:

argrequired?syntaxinfo
custIDNposintcustID of account containing the calldata you want to fetch (default is your own account)
callIDconditionallist:posintoptional filter to limit the results to specific calls
callID.minconditionalposintoptional filter; will only return calls with a callID greater or equal to this
callID.maxNposintoptional filter; will only return calls with a callID less or equal to this
dispositionNlist:enumoptional filter; limit results to calls with specific dispostions
is_chargeableNbooleanoptional filter; limit results to calls that are chargeable (if true) or not chargeable (if false)
date.minconditionalisodatespecifies the earliest date for which you want to retrieve call data
date.maxYisodatespecifies the latest date for which you want to retrieve call data
dniNlist:posintoptional filter; list of phone numbers for which to return call data
dni.minNposintoptional filter; smallest phone number (compared numerically) for which to return call data
dni.maxNposintoptional filter; largest phone number (compared numerically) for which to return call data
dni.startsNunsintoptional filter; limit results to numbers beginning with this
formatNenumspecify output format as "array" (default), "csv" or "tabdel"
fieldsNlist:enumsupply an array of field names if you want to limit the output to only contain certain fields
optfieldsNlist:enumlike "fields" except that this list is additive, not absolute.
startfromNunsintfirst matching call to return, counting from zero
numtoreturnNposintnumber of records to return (subject to a built in hard limit)
localiseNbooleanwhether to localise phone numbers into more familiar UK phone numbers (defaults to on)
sortNlist:enumdefines the sort order of the results; a comma separated list of output fields to sort by
countinfoNset:totmatches|more_rowscontrols what type of pagnination info to return (default=totmatches)

Further argument information

callID

Supply the value as a string of ID values separated by commas, or as an array of ID values.

disposition

Supply the value as a string of ID values separated by commas, or as an array of ID values. Values are:

If you are trying to fetch all call data, use the 'all' disposition value. This is the only way of picking up calls that were still in progress at the time the stats were gathered. You might want to later re-query these specfic calls.

fields

A specific list of fields to return. You can use this argument to specify a reduced list of fields to fetch; you can include any of the standard fields and any of the optional fields (see optfields below). Supply the value as a string of field names separated by commas, or as an array of field names.

optfields

A list of extra fields to fetch with the call data. Fields specified here will be returned as well as the fields that are returned by default. This differs from the "fields" argument, which causes only the specified fields to be returned.

Supply the value as a string of field names separated by commas, or as an array of field names. Values are:

countinfo

This argument controls which pagination info will be returned by the function. Supply either a comma separated list or an array of values. You can supply an empty list (for no info), or one (or both) of:

Note: specifying more_rows is potentially far more efficient than totmatches and is the recommended method. The argument defaults to totmatches for backward compatibility with older scripts.

Return values

Each call record contains a number of fields.