Use the Service Cloud Voice Toolkit API
Configure the Service Cloud Voice Toolkit APIs to listen to telephony events and
perform telephony actions.
To learn more about the Service Cloud Voice Toolkit API, see the Toolkit API documentation in the Service Cloud Voice Implementation Guide. The following examples in GitHub show a Lightning Web Component and an Aura component that can subscribe to and handle call events (such as CALL_STARTED, CALL_CONNECTED).