{
  "id": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
  "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
  "number": "+381603022591",
  "direction": "outbound",
  "room": "node-07b44bb4-03ab-496f-b4d5-38d33a0f31af",
  "status": "ended",
  "sipCallId": "SCL_TFXRDtoEyPWf",
  "sipStatus": "active",
  "createdAt": "2026-10-02T12:31:14.083Z",
  "updatedAt": "2026-10-02T12:31:24.172Z",
  "answeredAt": "2026-10-02T12:31:21.429Z",
  "endedAt": "2026-10-02T12:31:24.170Z",
  "endedReason": "Ended locally",
  "dialog": {
    "id": "106b65be-382a-451a-b71b-2faf95691c31",
    "createdAt": "2026-10-02T12:31:14.083Z",
    "initialState": {
      "id": "106b65be-382a-451a-b71b-2faf95691c31",
      "turns": [],
      "inputs": {},
      "status": "created",
      "version": 2,
      "collected": {},
      "agentState": null,
      "participants": [
        {
          "id": "callee",
          "kind": "human",
          "name": "Callee",
          "status": "disconnected"
        },
        {
          "id": "agent",
          "kind": "agent",
          "name": "Agent",
          "status": "disconnected",
          "behavior": {
            "turns": "submissive",
            "greeting": {
              "initiative": "submissive",
              "interruptible": true
            }
          },
          "template": {
            "id": "phone",
            "name": "Agent",
            "audios": {},
            "prompts": {
              "system": ""
            },
            "latencyCovers": []
          }
        }
      ],
      "currentSpeakerId": null,
      "awaitingParticipantId": null
    },
    "lastSequence": 14,
    "historyStartedAt": "2026-10-02T12:31:14.083Z",
    "events": [
      {
        "id": "ab2b7c82-e942-4d47-9980-d80f289da8d4",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 1,
        "layer": "CALL",
        "type": "call.created",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.066Z",
        "recordedAt": "2026-10-02T12:31:14.083Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "room": "node-07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "type": "call.created",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "number": "+381603022591",
          "direction": "outbound"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1980deaf-def7-4922-8af6-819a83f793ab",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 2,
        "layer": "CALL",
        "type": "call.connecting",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.066Z",
        "recordedAt": "2026-10-02T12:31:14.083Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connecting",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "ad9457de-3def-416d-9ded-b27be8e86319",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 3,
        "layer": "DIALOG",
        "type": "dialog.started",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.066Z",
        "recordedAt": "2026-10-02T12:31:14.083Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.started",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "dialogId": "106b65be-382a-451a-b71b-2faf95691c31"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "050e522b-96a4-45fe-8201-612becfaf442",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 4,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.343Z",
        "recordedAt": "2026-10-02T12:31:14.361Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "sipCallId": "SCL_TFXRDtoEyPWf"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "487bdcca-4d75-48d0-b7d0-75514bda3836",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 5,
        "layer": "CALL",
        "type": "call.participant_joined",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.372Z",
        "recordedAt": "2026-10-02T12:31:14.382Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_joined",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "f4368531-fd5f-4e18-91bd-d16d553b1b35",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 6,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:14.372Z",
        "recordedAt": "2026-10-02T12:31:14.385Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "sipCallId": "SCL_TFXRDtoEyPWf",
          "sipStatus": "dialing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c6abdd74-5356-44ca-9cee-e057c3a8c9b0",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 7,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:18.406Z",
        "recordedAt": "2026-10-02T12:31:18.411Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "sipCallId": "SCL_TFXRDtoEyPWf",
          "sipStatus": "ringing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "a33f1fd8-0f0b-4ebe-ae25-d05feb4fc0ab",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 8,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:21.429Z",
        "recordedAt": "2026-10-02T12:31:21.434Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "sipCallId": "SCL_TFXRDtoEyPWf",
          "sipStatus": "active"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "3a811106-f7c3-43e6-8b9e-e185f77e3c94",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 9,
        "layer": "CALL",
        "type": "call.connected",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:21.429Z",
        "recordedAt": "2026-10-02T12:31:21.436Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connected",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "d95e1fa0-fc0d-4476-b67b-9bef57d833d0",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 10,
        "layer": "L1",
        "type": "audio.playback.started",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:21.439Z",
        "recordedAt": "2026-10-02T12:31:21.452Z",
        "operationId": "d025d8b2-9281-4e0f-bbdb-945429ee6622",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.started",
          "audio": {
            "text": "Zdravo ovo je test poziv",
            "asset": {
              "id": "769b9c97-d802-4b64-90de-9b2eb8079771",
              "key": "test-samples/phone-greeting/769b9c97-d802-4b64-90de-9b2eb8079771.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "b3d9f36d08fe05e2fbb18f8f062a7f28098eb7c0e3022c22bc81406afebd3726"
            },
            "format": "pcm_s16le",
            "sha256": "f2a2cc063fb15bb32542f88aa03eeddb4cac3028fccfd2cf25d23dc207309d44",
            "channels": 1,
            "byteLength": 96000,
            "durationMs": 2000,
            "sampleRate": 24000
          },
          "sessionId": "106b65be-382a-451a-b71b-2faf95691c31",
          "operationId": "d025d8b2-9281-4e0f-bbdb-945429ee6622",
          "participantId": "agent"
        },
        "audioId": "769b9c97-d802-4b64-90de-9b2eb8079771",
        "audio": {
          "id": "769b9c97-d802-4b64-90de-9b2eb8079771",
          "name": "test-greeting",
          "text": "Zdravo ovo je test poziv",
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "f2a2cc063fb15bb32542f88aa03eeddb4cac3028fccfd2cf25d23dc207309d44",
          "byteLength": 96000,
          "durationMs": 2000,
          "bucket": "livekit-node-stage",
          "key": "test-samples/phone-greeting/769b9c97-d802-4b64-90de-9b2eb8079771.wav",
          "objectSha256": "b3d9f36d08fe05e2fbb18f8f062a7f28098eb7c0e3022c22bc81406afebd3726",
          "objectByteLength": 96044,
          "mimeType": "audio/wav",
          "createdAt": "2026-10-02T12:31:13.848Z"
        }
      },
      {
        "id": "def94203-04ce-43e2-9e41-5db6860aa1e9",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 11,
        "layer": "L1",
        "type": "audio.playback.finished",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:24.148Z",
        "recordedAt": "2026-10-02T12:31:24.154Z",
        "operationId": "d025d8b2-9281-4e0f-bbdb-945429ee6622",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.finished",
          "sessionId": "106b65be-382a-451a-b71b-2faf95691c31",
          "operationId": "d025d8b2-9281-4e0f-bbdb-945429ee6622",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "849f6796-a467-4847-ad44-71c0cfecf2cc",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 12,
        "layer": "CALL",
        "type": "call.participant_left",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:24.170Z",
        "recordedAt": "2026-10-02T12:31:24.175Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_left",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "reason": "Ended locally",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "173cc4ea-368a-4d46-938c-20da32fa045f",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 13,
        "layer": "CALL",
        "type": "call.ended",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:24.171Z",
        "recordedAt": "2026-10-02T12:31:24.177Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.ended",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "reason": "Ended locally"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "fc2ca3a1-5034-46b9-98fa-45b10388833d",
        "dialogId": "106b65be-382a-451a-b71b-2faf95691c31",
        "sequence": 14,
        "layer": "DIALOG",
        "type": "dialog.ended",
        "version": 1,
        "occurredAt": "2026-10-02T12:31:24.171Z",
        "recordedAt": "2026-10-02T12:31:24.181Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ended",
          "callId": "07b44bb4-03ab-496f-b4d5-38d33a0f31af",
          "reason": "Ended locally",
          "dialogId": "106b65be-382a-451a-b71b-2faf95691c31"
        },
        "audioId": null,
        "audio": null
      }
    ]
  }
}