{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-voice-portal/json-schema/cisco-voice-portal-active-call-detail-schema.json",
  "title": "ActiveCallDetail",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-voice-portal-call-management-api-openapi.yml#/components/schemas/ActiveCallDetail",
  "type": "object",
  "properties": {
    "callGuid": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "ringing",
        "connected",
        "queued",
        "self_service",
        "transferring",
        "on_hold"
      ]
    },
    "callingNumber": {
      "type": "string"
    },
    "calledNumber": {
      "type": "string"
    },
    "startTime": {
      "type": "string",
      "format": "date-time"
    },
    "duration": {
      "type": "integer"
    },
    "applicationName": {
      "type": "string"
    },
    "sipCallId": {
      "type": "string",
      "description": "SIP Call-ID"
    },
    "sipFromTag": {
      "type": "string"
    },
    "sipToTag": {
      "type": "string"
    },
    "icmRouteResult": {
      "type": "object",
      "properties": {
        "routeLabel": {
          "type": "string"
        },
        "skillGroup": {
          "type": "string"
        },
        "agentId": {
          "type": "string"
        }
      }
    },
    "vxmlServer": {
      "type": "string",
      "description": "VXML Server currently handling the call"
    },
    "callHistory": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "event": {
            "type": "string"
          },
          "details": {
            "type": "string"
          }
        }
      },
      "description": "Chronological list of call events"
    },
    "eccVariables": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}