mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Add ICE state to the call stats display.
This commit is contained in:
parent
0c146ef59d
commit
2a2c792cee
1 changed files with 9 additions and 0 deletions
|
|
@ -52,6 +52,14 @@ void usleep(int waitTime) {
|
|||
#define LICENCE_COMMERCIAL
|
||||
#endif
|
||||
|
||||
const char * const ice_state_str[] = {
|
||||
"Not activated", /* LinphoneIceStateNotActivated */
|
||||
"In progress", /* LinphoneIceStateInProgress */
|
||||
"Host connection", /* LinphoneIceStateHostConnection */
|
||||
"Reflexive connection", /* LinphoneIceStateReflexiveConnection */
|
||||
"Relayed connection" /* LinphoneIceStateRelayConnection */
|
||||
};
|
||||
|
||||
void *Daemon::iterateThread(void *arg) {
|
||||
Daemon *daemon = (Daemon *) arg;
|
||||
while (daemon->mRunning) {
|
||||
|
|
@ -102,6 +110,7 @@ CallStatsResponse::CallStatsResponse(Daemon *daemon, LinphoneCall *call, const L
|
|||
prefix = ((stats->type == LINPHONE_CALL_STATS_AUDIO) ? "Audio-" : "Video-");
|
||||
}
|
||||
|
||||
ostr << prefix << "ICE state: " << ice_state_str[stats->ice_state] << "\n";
|
||||
ostr << prefix << "RoundTripDelay: " << stats->round_trip_delay << "\n";
|
||||
ostr << prefix << "Jitter: " << stats->jitter_stats.jitter << "\n";
|
||||
// ostr << prefix << "MaxJitter: " << stats->jitter_stats.max_jitter << "\n";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue