polite-furniture-24847
07/23/2025, 9:24 AMtall-airline-16756
07/23/2025, 9:24 AMtall-airline-16756
07/23/2025, 9:25 AMSIPCallInfo structure. This structure provides:
• Start Time: started_at_ns (call start time in nanoseconds)
• End Time: ended_at_ns (call end time in nanoseconds)
• Call Duration: Calculate by subtracting start time from end time:
duration = ended_at_ns - started_at_ns
These fields are available in the Python, Rust, and Go SDKs. For example, in Python:
started_at_ns: int
ended_at_ns: int
created_at_ns: int
In Go, you can use getter methods like GetStartedAtNs() and GetEndedAtNs().
It's recommended to use the nanosecond fields for better precision. The exact way to access SIPCallInfo depends on your SDK and how you handle SIP call data in your application.
Sources: livekit/livekit_analytics.pb.go | livekit-protocol/livekit/protocol/analytics.pyi | livekit-protocol/src/livekit.rspolite-furniture-24847
07/23/2025, 9:30 AMtall-airline-16756
07/23/2025, 9:30 AM