Vapi server side events after the call is transfer...
# support
k
When the call is forwarded from a vapi assistant, we are not receiving the status-update event of the forwarded call, like was the call completed or not after the tranfer. So basically the call is not completed as the call is transferred. So i wanted to know the total time including the call forwarding. so which events do i need to subscribe for it.
v
To track the call duration up to the point of transfer, subscribe to the
end-of-call-report
event on your server URL. This event includes the
endedReason
(such as
assistant-forwarded-call
) and the call's duration before transfer:
Copy code
json
{
  "message": {
    "type": "end-of-call-report",
    "endedReason": "assistant-forwarded-call",
    "call": { /* Call Object */ },
    "summary": "...",
    "transcript": "...",
    // other fields
  }
}
Note: Vapi does not send status or duration events for the forwarded (destination) call leg unless you have additional integration on that side. You'll only get the original call's data up to the transfer point. [See: Vapi Server Events Documentation](https://docs.vapi.ai/server-url/events) Sources: - [Vapi Server Events Documentation](https://docs.vapi.ai/server-url/events) - [Vapi Call Ended Reasons](https://docs.vapi.ai/calls/call-ended-reason) - [Vapi Call Forwarding](https://docs.vapi.ai/call-forwarding)
k
Subscribe to the in-progress, forwarding, and ended events, and ensure your server is set up to receive them via the Server URL settings.
v
I don't have any documentation or direct information available about which Vapi server-side events to subscribe to in order to get the total call time including the forwarded call leg. Based on previous responses in your conversation, it appears that Vapi only provides call duration data up to the point of transfer, and does not send status or duration events for the forwarded (destination) call leg unless you have additional integration on that side. If you need the total duration including both legs, you may need to implement additional tracking or integration for the forwarded call.
k
I'm subscribing to status-update events, but those events don't come once we forward the call.
v
Vapi does not send
status-update
or duration events for the forwarded (destination) call leg after a transfer.
You will only receive events (like
end-of-call-report
) for the original call up to the transfer point. If you need the total duration including both legs, you must implement additional tracking for the forwarded call, as Vapi's standard events do not provide this automatically. See: [Vapi Server Events Documentation](https://docs.vapi.ai/server-url/events) Sources: - [Vapi Server Events Documentation](https://docs.vapi.ai/server-url/events) - [Vapi Call Forwarding](https://docs.vapi.ai/call-forwarding)
k
Subscribe for transfer update webhook. You will get a detail about it. If you don't get it then send me the call_id.