We subscribe to webhooks for each extension and log all incoming/outgoing calls along with the call recording.
In case of warm transfer/conference calls, each call is treated as a separate call as the session ids are different, but logically from the customer perspective, it is just one call. Based on the webhook data and also from the call log API, I could not find a reliable way to link these calls.
We are currently subscribed to the below webhook event:
/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true
and using the below API endpoint to fetch call log
/restapi/v1.0/account/~/call-log?sessionId={1}&view=Detailed
Please let us know if there is a way to acheive this.