I am working on an iOS project that uses the PJSIP library for video and audio calls. I have an Objective-C wrapper that accesses the PJSIP C functions directly. Now, I want to get statistics for each SIP call.
I tried using pjsua_call_get_stream_stat, but it doesn’t return correct values. Currently, I am getting the stats in the on_call_state method when the call ends and the call state is disconnected.
What is the correct way to retrieve call stats, and at what point during the call should I do it?
Thank you!