<@U08CKJH7C12> How can I get the call data post th...
# agents
f
@refined-appointment-81829 How can I get the call data post the call, like: • call duration • call status [IMPORTANT] • call started at • call ended at
I know all this is in the telephony section but I want an API.
r
At you top of your entry point record the time. Then when the agent disconnects record that time and substract them. Here is an example that shows how to track call lifecycle https://github.com/livekit-examples/python-agents-examples/blob/main/telephony/sip_lifecycle.py