CDR Field Mappings

Overview.

The v2 API will show easier to understand names for returned CDR fields. This is a list of valid field names and their descriptions.

More info on its uses can be found in these APIs.

Table Mapping and Description

API v2API v1Description
call-account-code pacThe account code used by a user to make an outbound call. This will default to null unless otherwise configured. More information is available
Account Codes to Restrict Dialing
Unvalidated Account Codes
call-answer-datetimetime-answerThe date-time that this leg of a call was answered (ie. that a SIP 200 OK was sent or received in response to a SIP INVITE).
call-audio-codeccodecThe audio codec that was negotiated for this call, recorded from the call's SDP.

Note: individual phone vendors may use different names for the same codec. You may see "PCMU" or "G.711 u-law" as an example.
call-audio-relay-side-a-local-portrly_prt_0Of calls whose RTP was relayed through the Core Server, this is one of the two UDP ports that was used on the Core Server to relay RTP between the orig and term legs of a call.
call-audio-relay-side-a-packet-countrly_cnt_aOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "A" side of the call.
call-audio-relay-side-a-remote-iprly_prt_aThe IP address and UDP port that sent RTP on the "A" side of the call. This may be a remote IP or may be the IP of the Core Server.

This value will be null if the call was never successfully connected.
call-audio-relay-side-b-packet-countrly_cnt_bOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "B" side of the call.
call-audio-relay-side-b-remote-iprly_prt_bThe IP address and UDP port that sent RTP on the "B" side of the call. This may be a remote IP or may be the IP of the Core Server.

This value will be null if the call was never successfully connected.
call-batch-answer-datetimebatch_tim_ansFor all of the batched legs of a single call, this is the date and time that any of the legs was answered (i.e. that a SIP 200 OK was sent or received in response to a SIP INVITE).
call-batch-on-hold-duration-secondsbatch_holdFor all of the batched legs of a single call, this is the accumulated duration in seconds that the call was on hold. This hold duration may be the sum of one or more call legs.
call-batch-sequence-markerrelease_codeFor all of the batched legs of a single call, this indicates whether this specific leg was to :
- "begin" the batch
- "continue" the batch
- "end" the batch
call-batch-start-datetimebatch_tim_begFor all of the batched legs of a single call, this is the date and time that the original leg of the call was started on the system.
call-batch-total-duration-secondsbatch_duraFor all of the batched legs of a single call, this is the accumulated duration in seconds of the call, from the the time the call was first answered until the final leg of a call has disconnected.
call-directiontypeWhether the directionality of the call was:
- "Outbound"
- "Inbound"
- "Missed"
call-disconnect-datetimetime_releaseThe date-time that this leg of a call was disconnected (i.e. that a SIP BYE was sent).
call-disconnect-reason-textrelease_textThe text description of the reason this leg of a call was disconnected. Results may include:
"Call completed elsewhere"
"DTMF <3> entered"
"Incompatible Media"
"No Answer"
"Term: Bye" - the term leg of the call sent a SIP BYE
call-dispositiondispositionIf Call Dispositions and Reasons have been configured on the system, an agent was logged into one of the graphical interfaces of the system, and the agent completed the Disposition and Reason form after a call, this field will show the Disposition of the call.

More information can be found in this documentation article.

Defaults to null.
call-disposition-notesnotesIf Call Dispositions and Reasons have been configured on the system, an agent was logged into one of the graphical interfaces of the system, and the agent completed the Disposition and Reason form after a call, this field will show any notes the agent may have written for the call.

More information can be found in this documentation article.

Defaults to null.
call-disposition-reasonreasonIf Call Dispositions and Reasons have been configured on the system, an agent was logged into one of the graphical interfaces of the system, and the agent completed the Disposition and Reason form after a call, this field will show the Reason for the call's Disposition.

More information can be found in this documentation article.

Defaults to null
call-disposition-submitted-datetimetime_dispIf Call Dispositions and Reasons have been configured on the system, an agent was logged into one of the graphical interfaces of the system, and the agent completed the Disposition and Reason form after a call, this field will show the date-time that the disposition was submitted by the agent.

More information can be found in this documentation article.

Defaults to null
call-disposition-directiondisp_typeIf Call Dispositions and Reasons have been configured on the system, an agent was logged into one of the graphical interfaces of the system, and the agent completed the Disposition and Reason form after a call, this field will show whether the call was:

More information can be found in this documentation article.

Defaults to null
call-fax-codecimage_codecThe fax codec that was negotiated for this call, recorded from the call's SDP.

Note: through at least release v44.0, if a fax was transmitted through the system, this field will invariably show "Image" as the codec
call-fax-relay-side-a-local-portimage_prt_0Of calls whose RTP was relayed through the Core Server, this is one of the two UDP ports that was used on the Core Server to relay RTP between the orig and term legs of a call.
call-fax-relay-side-a-packet-countimage_cnt_aOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "A" side of the call.
call-fax-relay-side-a-remote-ipimage_prt_aThe IP address and UDP port that sent RTP on the "A" side of the call. This may be a remote IP or may be the IP of the Core Server.

This value will be null if the call was never successfully connected.
call-fax-relay-side-b-packet-countimage_cnt_bOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "B" side of the call.
call-fax-relay-side-b-remote-ipimage_prt_bThe IP address and UDP port that sent RTP on the "B" side of the call. This may be a remote IP or may be the IP of the Core Server.

This value will be null if the call was never successfully connected.
call-leg-ordinal-indexcdr_indexFor all of the batched legs of a single call, this represents what order a specific call leg took place in the batch.
call-on-hold-duration-secondstime_holdingThe duration in seconds that this leg of a call was on hold.
call-orig-call-idorig_callidThe value of the SIP Call-ID header received in the initial SIP INVITE that started a batch of call legs.

This value will typically be the same Call-ID for all legs in a batch of calls.
call-orig-caller-idorig_idThe Caller ID for the orig side of a call leg.
call-orig-departmentorig_groupThe department of the user that initiated the orig leg of a new call. This may be null for calls that originated through a SIP trunk or for users that are not assigned to a department.
call-orig-domainorig_domainThe domain of the user that initiated the orig leg of a new call. This may be null for calls that originated through a SIP trunk.
call-orig-from-hostorig_from_hostThe host portion of the SIP From URI, after passing through initial Dial Translations, just prior to passing through Call Routing.
call-orig-from-nameorig_from_nameThe name portion of the SIP From URI, after passing through initial dial translations, just prior to passing through Call Routing.
call-orig-from-uriorig_from_uriThe complete SIP From URI, after passing through initial Dial Translations, just prior to passing through Call Routing.
call-orig-from-userorig_from_userThe user portion of the SIP From URI, after passing through initial Dial Translations, just prior to passing through Call Routing.
call-orig-ip-addressorig_ipThe IP address the orig leg of the call was received from.

This may be a remote IP address or may be the IP of the Core Server.
call-orig-match-uriorig_matchFor origination calls (calls inbound to the system), this is the pattern that a SIP header positively matched against to allow the call to begin.

For calls that came in from extensions, this will be the SIP AOR (Address of Record)
(e.g. sip:1000wp@domain)

For calls that came in from SIP trunks, this will be the "Origination Match" pattern of the trunk (e.g. sip*@trunk-name). This includes calls that traversed geo servers in the same cluster.
call-orig-pre-routing-uriorig_logi_uriThe complete SIP Request URI for the orig leg of a call, prior to passing through initial Dial Translations, and prior to passing through Call Routing.
call-orig-request-hostorig_req_hostThe host portion of the SIP URI from the Request line of the SIP INVITE of the orig leg of a call.
call-orig-request-uriorig_req_uriThe complete SIP URI from the Request line of the SIP INVITE of the orig leg of a call.
call-orig-request-userorig_req_userThe user portion of the SIP URI from the Request line of the SIP INVITE of the orig leg of a call.
call-orig-resellerorig_territoryThe name of the reseller of the user that initiated the orig leg of a new call. This may be null for calls that originated through a SIP trunk.
call-orig-siteorig_siteThe site of the user that initiated the orig leg of a new call. This may be null for calls that originated through a SIP trunk or for users that are not assigned to a site.
call-orig-to-hostorig_to_hostThe host portion of the SIP to header of the SIP INVITE of the orig leg of a call.
call-orig-to-uriorig_to_uriThe complete SIP URI from the SIP To header of the SIP INVITE of the orig leg of a call.
call-orig-to-userorig_to_userThe user portion of the SIP to header of the SIP INVITE of the orig leg of a call.
call-orig-userorig_subThe extension number of the user that initiated the orig leg of a new call. This may be null for calls that originated through a SIP trunk.
call-parent-call-idservedCallIdThe Call-ID that started a new, unique call flow on the system. This field exists but will be empty prior to v44.0
call-parent-cdr-idcdr_idThe unique ID of this CDR.
call-record-creation-datetimetime_insertThe date-time that this record was inserted into the database.
call-ringing-datetimetime_ringingThe date-time that this leg of a call first started ringing (i.e. that a SIP 180 Ringing or SIP 183 Early Media was sent or received in response to a SIP INVITE).
call-routing-classroute_classThe configured routing class used when the call went through Call Routing. This is likely null in most cases.
call-routing-match-uriroute_toFor all calls on the system that successfully connected one party to another, this is the pattern that a SIP Request URI positively matched against in the system's Call Routing table.

For calls that terminated to extensions, this will be the wildcard Call Route that matches sip:*@*

For calls that terminated through SIP trunks, this will be the "Destination" pattern of the Call Route (e.g. sip:1??????????@*). This includes calls that traversed geo servers in the same cluster.
call-server-mac-addressmacThe MAC address of the Core Server that processed the call.
call-start-datetimetime_startThe date-time that this leg of a call began (i.e. that a SIP INVITE was sent or received).
call-tagtagThe tag of this leg of a call.
call-talking-duration-secondstime_talkingThe duration in seconds that this leg of a call was in a talking state (does not include the time prior to answer or while on hold).
call-term-call-idterm_callidThe value of the SIP Call-ID header sent in the SIP INVITE of the term leg of the call.
call-term-caller-idterm_idThe Caller ID for the term side of a call leg.
call-term-departmentterm_groupThe department of the user that received. the term leg of the call.
call-term-domainterm_domainThe domain of the user that received the term leg of the call. This may be null for calls that terminated through a SIP trunk .
call-term-ip-addressterm_ipThe IP address the term leg of the call was sent to.

This may be a remote IP address or may be the IP of the Core Server.
call-term-match-uriterm_matchFor all calls on the system that successfully connected one party to another, this is the pattern that a translated SIP Request URI positively matched against in the system's Connections (SIP Trunk) list or Extensions list.

For calls that terminated to extensions, this will be the AOR of the user sip:1000@domain

For calls that terminated through SIP trunks, this will be the "Termination Match" pattern of the Connection (e.g. sip*@sbc.company.com). This includes calls that traversed geo servers in the same cluster.
call-term-pre-reouting-uriterm_logi_uriThe complete SIP To URI for the term leg of a call, prior to passing through initial Dial Translations, and prior to passing through Call Routing.
call-term-resellerterm_territoryThe reseller-territory of the user that received the term leg of the call. This may be null for calls that terminated through a SIP trunk.
call-term-siteterm_siteThe site of the user that received the term leg of the call. This may be null for calls that terminated through a SIP trunk.
call-term-to-uriterm_to_uriThe complete SIP To URI for the term leg of a call, after passing through initial Dial Translations, and just prior to passing through Call Routing.
call-term-userterm_subThe extension number of the user that received the term leg of the call. This may be null for calls that terminated through a SIP trunk.
call-through-actionby_actionFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-action indicates what system event occurred that furthered the processing of a call. Examples include:

"Call retrieved"
"Forward always"
"Inter-server call leg"
"Queue dispatch"
"Supervised transfer"
call-through-call-idby_callidFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-call-id is the Call-ID of the call leg that furthered the processing of a call.
call-through-caller-idby_idFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-caller-id is the Caller ID of the user account of the call leg that furthered the processing of a call.
call-through-departmentby_groupFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-department is the department of the user account of the call leg that furthered the processing of a call.
call-through-domainby_domainFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-domain is the domain of the user account of the call leg that furthered the processing of a call
call-through-resellerby_territoryFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-reseller is the reseller-territory of the domain of the user account of the call leg that furthered the processing of a call.
call-through-siteby_siteFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-site is the site of the user account of the call leg that furthered the processing of a call.
call-through-uriby_uriFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-uri is the SIP URI of the call leg that furthered the processing of a call.
call-through-userby_subFor call flows more complex than one user calling another, "call-through-" fields identify an intermediary user account that was involved in directing a call from one destination to another.

call-through-user is the user account of the call leg that furthered the processing of a call.
call-total-duration-secondsdurationThe total duration in seconds of this leg of a call. Includes time ringing, talking, and on hold.
call-video-codecvideo_codecThe video codec that was negotiated for this call, recorded from the call's SDP.

Note: through at least release v44.0, if video was relayed through the system, this field will invariably show "Video" as the codec.
call-video-relay-side-a-local-portvideo_prt_0Of calls whose RTP was relayed through the Core Server, this is one of the two UDP ports that was used on the Core Server to relay RTP between the orig and term legs of a call.
call-video-relay-side-a-packet-countvideo_cnt_aOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "A" side of the call.
call-video-relay-side-a-remote-ipvideo_prt_aThe IP address and UDP port that sent RTP on the "A" side of the call. This may be a remote public IP (if video relay was successfully acquired) or a remote private IP (if video relay was not successfully acquired).

This value will be null if video was not negotiated during the call.
call-video-relay-side-b-packet-countvideo_cnt_bOf calls whose RTP was relayed through the Core Server, this is the number of packets that were received from the "B" side of the call.
call-video-relay-side-b-remote-ipvideo_prt_bThe IP address and UDP port that sent RTP on the "B" side of the call. This may be a remote public IP (if video relay was successfully acquired) or a remote private IP (if video relay was not successfully acquired).

This value will be null if video was not negotiated during the call.
core-serverhostnameThe FQDN of the Core Server that processed the call.
domaindomainThe domain in which this call leg took place.
hide-from-resultshideWhether this leg of a call should be hidden from the Call History of a user. Typically these are call legs created for internal system processes and not meaningful to an end user.
is-trace-expectedexpected_traceBased on the date the call took place and the Core Server's configured Event Keep Day duration, whether detailed call processing logs should still be available in order to retrieve a call trace (SIP ladder graph) via the API.
prefilled-trace-apitrace_apiA pre-filled v1 API call that can be used to retrieve a call trace. Should only be used if the is-trace-expected parameter is 'yes'.
resellerresellerThe reseller-territory of the domain in which this call leg took place.