Remote rtp family in CallSideMenuView

This commit is contained in:
REIS Benjamin 2016-10-17 11:49:44 +02:00
parent 96d33a13b8
commit 9fbf331468

View file

@ -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);