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.
| arg | required? | syntax | info |
|---|---|---|---|
custID | N | posint | custID of account containing the calldata you want to fetch (default is your own account) |
callID | conditional | list:posint | optional filter to limit the results to specific calls |
callID.min | conditional | posint | optional filter; will only return calls with a callID greater or equal to this |
callID.max | N | posint | optional filter; will only return calls with a callID less or equal to this |
disposition | N | list:enum | optional filter; limit results to calls with specific dispostions |
is_chargeable | N | boolean | optional filter; limit results to calls that are chargeable (if true) or not chargeable (if false) |
date.min | conditional | isodate | specifies the earliest date for which you want to retrieve call data |
date.max | Y | isodate | specifies the latest date for which you want to retrieve call data |
dni | N | list:posint | optional filter; list of phone numbers for which to return call data |
dni.min | N | posint | optional filter; smallest phone number (compared numerically) for which to return call data |
dni.max | N | posint | optional filter; largest phone number (compared numerically) for which to return call data |
dni.starts | N | unsint | optional filter; limit results to numbers beginning with this |
format | N | enum | specify output format as "array" (default), "csv" or "tabdel" |
fields | N | list:enum | supply an array of field names if you want to limit the output to only contain certain fields |
optfields | N | list:enum | like "fields" except that this list is additive, not absolute. |
startfrom | N | unsint | first matching call to return, counting from zero |
numtoreturn | N | posint | number of records to return (subject to a built in hard limit) |
localise | N | boolean | whether to localise phone numbers into more familiar UK phone numbers (defaults to on) |
sort | N | list:enum | defines the sort order of the results; a comma separated list of output fields to sort by |
countinfo | N | set:totmatches|more_rows | controls what type of pagnination info to return (default=totmatches) |
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.
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.
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:
telecoms.num.ref.set)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.
Each call record contains a number of fields.