{
  "id": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
  "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
  "number": "+381643515959",
  "direction": "outbound",
  "room": "node-a1e0df56-62fe-40da-9d6e-101cd73c617c",
  "status": "ended",
  "sipCallId": "SCL_LHaWtu6t2DaN",
  "sipStatus": "active",
  "createdAt": "2026-09-24T19:33:33.300Z",
  "updatedAt": "2026-09-24T19:33:44.774Z",
  "answeredAt": "2026-09-24T19:33:42.635Z",
  "endedAt": "2026-09-24T19:33:44.771Z",
  "endedReason": "Ended locally",
  "dialog": {
    "id": "0e9d1146-01bb-48ab-a705-c34990b099d1",
    "createdAt": "2026-09-24T19:33:33.300Z",
    "initialState": {
      "id": "0e9d1146-01bb-48ab-a705-c34990b099d1",
      "turns": [],
      "status": "created",
      "version": 1,
      "participants": [
        {
          "id": "callee",
          "kind": "human",
          "name": "Callee",
          "status": "disconnected"
        },
        {
          "id": "agent",
          "kind": "agent",
          "name": "Agent",
          "status": "disconnected",
          "template": {
            "id": "phone",
            "name": "Agent",
            "audios": {},
            "prompts": {
              "system": ""
            },
            "latencyCovers": []
          }
        }
      ],
      "currentSpeakerId": null,
      "awaitingParticipantId": null
    },
    "lastSequence": 14,
    "historyStartedAt": "2026-09-24T19:33:33.300Z",
    "events": [
      {
        "id": "4dbc1978-b243-4f08-8e69-ca7d474e569f",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 1,
        "layer": "CALL",
        "type": "call.created",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:33.284Z",
        "recordedAt": "2026-09-24T19:33:33.300Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "room": "node-a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "type": "call.created",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "number": "+381643515959",
          "direction": "outbound"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "fa8e42f0-3dd1-44ad-83c8-18cea8f9dc72",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 2,
        "layer": "CALL",
        "type": "call.connecting",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:33.284Z",
        "recordedAt": "2026-09-24T19:33:33.300Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connecting",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "531b2428-a1c6-4251-91de-2910449b11f0",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 3,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:33.553Z",
        "recordedAt": "2026-09-24T19:33:33.565Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "sipCallId": "SCL_LHaWtu6t2DaN"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "c850447d-0195-40d5-bbe5-4f8bcd364257",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 4,
        "layer": "CALL",
        "type": "call.participant_joined",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:33.572Z",
        "recordedAt": "2026-09-24T19:33:33.580Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_joined",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "1001e4e2-eba2-4994-be3b-e51bddd0ae98",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 5,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:33.572Z",
        "recordedAt": "2026-09-24T19:33:33.583Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "sipCallId": "SCL_LHaWtu6t2DaN",
          "sipStatus": "dialing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "8227ade8-7800-4adf-b85d-93e49720f720",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 6,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:34.591Z",
        "recordedAt": "2026-09-24T19:33:34.600Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "sipCallId": "SCL_LHaWtu6t2DaN",
          "sipStatus": "ringing"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "63a32f3f-1b3a-4237-adcd-6336386d61ad",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 7,
        "layer": "CALL",
        "type": "call.sip_status",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:42.635Z",
        "recordedAt": "2026-09-24T19:33:42.640Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.sip_status",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "sipCallId": "SCL_LHaWtu6t2DaN",
          "sipStatus": "active"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "66c9c7cc-aabd-4bd3-98d1-37da1d9418b9",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 8,
        "layer": "CALL",
        "type": "call.connected",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:42.635Z",
        "recordedAt": "2026-09-24T19:33:42.643Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.connected",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4fc8d563-cd2b-4d89-9ece-741c380211d8",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 9,
        "layer": "DIALOG",
        "type": "dialog.started",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:42.635Z",
        "recordedAt": "2026-09-24T19:33:42.646Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.started",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "fbd98097-78a3-4a10-9ef4-23391dfe391f",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 10,
        "layer": "L1",
        "type": "audio.playback.started",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:42.649Z",
        "recordedAt": "2026-09-24T19:33:42.662Z",
        "operationId": "ca0ae6d8-e8af-4b3d-8cbe-e524212ec626",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.started",
          "audio": {
            "text": "Zdravo ovo je test poziv",
            "asset": {
              "id": "2b06afca-164e-4fdf-b4ac-40e0df756222",
              "key": "precompiled/2b06afca-164e-4fdf-b4ac-40e0df756222.wav",
              "bucket": "livekit-node-stage",
              "objectSha256": "5353e7c155abff4572ecf1114a260721872af4fc153c1c594a1d73b5b96222eb"
            },
            "format": "pcm_s16le",
            "sha256": "1c525293576e62fdb86adc61afbf5097247753cb461d906e29b89081b6a4436c",
            "channels": 1,
            "byteLength": 76800,
            "durationMs": 1600,
            "sampleRate": 24000
          },
          "sessionId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
          "operationId": "ca0ae6d8-e8af-4b3d-8cbe-e524212ec626",
          "participantId": "agent"
        },
        "audioId": "2b06afca-164e-4fdf-b4ac-40e0df756222",
        "audio": {
          "id": "2b06afca-164e-4fdf-b4ac-40e0df756222",
          "name": "test-greeting",
          "text": "Zdravo ovo je test poziv",
          "format": "pcm_s16le",
          "sampleRate": 24000,
          "channels": 1,
          "sha256": "1c525293576e62fdb86adc61afbf5097247753cb461d906e29b89081b6a4436c",
          "byteLength": 76800,
          "durationMs": 1600,
          "bucket": "livekit-node-stage",
          "key": "precompiled/2b06afca-164e-4fdf-b4ac-40e0df756222.wav",
          "objectSha256": "5353e7c155abff4572ecf1114a260721872af4fc153c1c594a1d73b5b96222eb",
          "objectByteLength": 76844,
          "mimeType": "audio/wav",
          "createdAt": "2026-09-24T19:33:33.240Z"
        }
      },
      {
        "id": "42386f1c-9379-4583-ac6c-33579dc266bf",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 11,
        "layer": "L1",
        "type": "audio.playback.finished",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:44.749Z",
        "recordedAt": "2026-09-24T19:33:44.755Z",
        "operationId": "ca0ae6d8-e8af-4b3d-8cbe-e524212ec626",
        "turnId": null,
        "participantId": "agent",
        "payload": {
          "type": "audio.playback.finished",
          "sessionId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
          "operationId": "ca0ae6d8-e8af-4b3d-8cbe-e524212ec626",
          "participantId": "agent"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "58c52476-f21b-4ba7-91b0-c66c18ff44ea",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 12,
        "layer": "CALL",
        "type": "call.participant_left",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:44.772Z",
        "recordedAt": "2026-09-24T19:33:44.780Z",
        "operationId": null,
        "turnId": null,
        "participantId": "callee",
        "payload": {
          "type": "call.participant_left",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "reason": "Ended locally",
          "participantId": "callee"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "9a357bd5-726e-425e-90ad-aa5fae4edd12",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 13,
        "layer": "CALL",
        "type": "call.ended",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:44.772Z",
        "recordedAt": "2026-09-24T19:33:44.783Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "call.ended",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "reason": "Ended locally"
        },
        "audioId": null,
        "audio": null
      },
      {
        "id": "4ac63ec8-c2a4-42fd-988c-a756dfb3f1d7",
        "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1",
        "sequence": 14,
        "layer": "DIALOG",
        "type": "dialog.ended",
        "version": 1,
        "occurredAt": "2026-09-24T19:33:44.772Z",
        "recordedAt": "2026-09-24T19:33:44.785Z",
        "operationId": null,
        "turnId": null,
        "participantId": null,
        "payload": {
          "type": "dialog.ended",
          "callId": "a1e0df56-62fe-40da-9d6e-101cd73c617c",
          "reason": "Ended locally",
          "dialogId": "0e9d1146-01bb-48ab-a705-c34990b099d1"
        },
        "audioId": null,
        "audio": null
      }
    ]
  }
}