📖
API Documentation
  • About
  • Version History
  • Introduction
    • Account Setup
    • Platform Features
    • Mid Call Divert/Mid Call Conference
    • Call Whisper
    • Conferencing
    • Percentage Distribution Algorthm
    • Call Queueing
    • Call Recording
    • Outbound Call
    • IVR Voicemail Retrieval Telephone Service
    • IVR Service Switcher Telephone Service
    • Web Service Security
    • Web Service Definition Language
      • Using a development environment other than the .NET Platform
    • Web Service Error Handling
    • Real-Time Multi-leg Call Data Records
      • Pseudo Code
      • Real-Time Multi-Leg CDR Call Types
    • Status Code Table
    • Default Audio
    • Development Guidelines
      • Development LAB Platform Test Harness
    • Post Call
    • DTMF Controlling Party
    • Data Rentention Policy
    • API Availability
    • Dynamic Call Agent (DCA)
      • Status Code Table
      • Call Outcome Table
      • Call Status Table
      • IVR Dynamic Call Agent Service
      • Apology Modes
    • JSON API
    • Emails
      • Custom Email Settings
      • Not Receiving Emails
      • Global Email Variables
      • Using Custom Service Variables within your emails
      • Email Content Type
      • Email Address HTML encoding
    • TimeZone Offset Setting
      • TimeZone Offset Table
      • Daylight Saving Time Changes
    • Public IP Addresses
    • Default Email Settings
    • Scheduled Call Feature
      • How to create a Scheduled Call request
      • What CLI be presented to the called parties
      • How to check the progress of a Scheduled Call request
      • How to retrieve the call statistics for my Scheduled Calls
      • How to delete a queued Scheduled Call request
      • How many simultaneous Scheduled Calls can be in progress
      • How many Scheduled Call requests can be created
  • Service Creation
    • Node XML structure
    • Service XML structure
    • Custom Service Variables
    • Variable Scope
    • Node Security
    • Graphical Representation of a Sample Service
    • Sample Service XML
    • Sub Plans
    • Sub Plan Example XML
  • Web Service Authentication
  • Service Audio
  • Node Reference
    • Start
    • Page 1
  • Security Methods
  • Service Management Methods
  • Audio Management Methods
  • General Methods
  • File Management Methods
  • Real-Time Data Methods
  • Service Number Activation Methods
  • Number Group Methods
  • Account Methods
  • Payphone Barring
  • Dynamic Call Agent Methods
  • Tiff to Fax Methods
  • Call Barring Methods
  • Platform Logging Methods
  • Platform Logging
  • Data Tables
  • Scheduled Call
  • External Number Management Methods
  • Phone Book Management Methods
  • Origin List Management Methods
  • Private SIP Management Methods
  • Bulk Configuration
  • Appendix
Powered by GitBook
On this page

Was this helpful?

  1. Introduction
  2. Real-Time Multi-leg Call Data Records

Pseudo Code

FOR EACH CallType 1 or 167 CDR

  IF ExpectedCount = ActualCount
      
    GET CallStart, CallEnd, ClearDown, TTA from CallType 1 or 167 record.

    IF CallType 7 Exists     
           
      GET ClearDown from the last CallType 2 CDR

	IF ROWCOUNT > 0

      IF ClearDown = 17 CallClearDownResult = Engaged
      ELSE IF ClearDown = 19 CallClearDownResult = Unanswered
      ELSE IF ClearDown = 16 CallClearDownResult = Unanswered
      ELSE CallClearDownResult = Other
ELSE
	CallClearDownResult = Unanswered

       Duration = (CallEnd - CallStart) – TTA from the CallType 1 or 167 CDR

    ELSE

      IF ClearDown <> 16

        IF ClearDown = 17 CallClearDownResult = Engaged
        ELSE IF ClearDown = 19 CallClearDownResult = Unanswered
        ELSE CallClearDownResult = Other
        
        Duration = (CallEnd - CallStart) – TTA from the CallType 1 or 167 CDR

      ELSE

        IF (TTA > 0) OR (CDR’s exist that are not CallType 1, 2, 167)

          Duration = (CallEnd - CallStart) – TTA from the CallType 1 or 167 CDR

          IF (CDR’s exist where CallType = 2 AND TTA > 0) OR Type IN (26, 27)
            CallClearDownResult = Answered
          ELSE
            CallClearDownResult = Unanswered

        ELSE

          IF CDR’s exists where CallType = 2 AND TTA > 0

CallClearDownResult = Answered

TTA = SUM(CallStart - CallEnd) CallType = 2 ClearDown = 19
TTA = TTA + TTA of the first CallType 2 WHERE TTA > 0
Duration = (CallEnd - CallStart) – TTA

          ELSE

CallClearDownResult = Unanswered
Duration = 0
TTA = 0
PreviousReal-Time Multi-leg Call Data RecordsNextReal-Time Multi-Leg CDR Call Types

Last updated 2 months ago

Was this helpful?