From 9fbf331468769afe20a148595fcaaabbe4a53857 Mon Sep 17 00:00:00 2001 From: REIS Benjamin Date: Mon, 17 Oct 2016 11:49:44 +0200 Subject: [PATCH] Remote rtp family in CallSideMenuView --- Classes/CallSideMenuView.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classes/CallSideMenuView.m b/Classes/CallSideMenuView.m index 7d641180d..29ecbc382 100644 --- a/Classes/CallSideMenuView.m +++ b/Classes/CallSideMenuView.m @@ -68,6 +68,10 @@ } } ++ (NSString*)afinetToString:(int)remote_family { + return (remote_family == UNSPEC) ? @"Unspecified":(remote_family == INET) ? @"IPv4" : @"IPv6"; +} + + (NSString *)mediaEncryptionToString:(LinphoneMediaEncryption)enc { switch (enc) { case LinphoneMediaEncryptionDTLS: @@ -142,6 +146,9 @@ [result appendString:@"\n"]; [result appendString:[NSString stringWithFormat:@"ICE state: %@", [self.class iceToString:stats->ice_state]]]; [result appendString:@"\n"]; + + [result appendString:[NSString stringWithFormat:@"Afinet: %@", [self.class afinetToString:stats->rtp_remote_family]]]; + [result appendString:@"\n"]; // RTP stats section (packet loss count, etc) rtp_stats_t rtp_stats = linphone_call_stats_get_rtp_stats(stats);