]> sjero.net Git - linphone/commitdiff
Improve Call Bandwidth Statistics
authorSamuel Jero <sj323707@ohio.edu>
Sun, 3 Feb 2013 02:48:02 +0000 (21:48 -0500)
committerSamuel Jero <sj323707@ohio.edu>
Sun, 3 Feb 2013 02:48:02 +0000 (21:48 -0500)
coreapi/linphonecall.c
mediastreamer2
oRTP

index f5c13251b78a30abd38e940c48734c69d05baed3..e94c18f199bb10f8202c16d56af91c8a7d973be3 100644 (file)
@@ -1928,6 +1928,20 @@ static void report_bandwidth(LinphoneCall *call, RtpSession *as, RtpSession *vs)
                call->stats[LINPHONE_CALL_STATS_VIDEO].download_bandwidth,
                call->stats[LINPHONE_CALL_STATS_VIDEO].upload_bandwidth
        );
+
+       struct timeval now;
+       gettimeofday(&now,NULL);
+       struct tm *timeinfo;
+       char buffer[80];
+       timeinfo=localtime(&now.tv_sec);
+       strftime(buffer,80,"%Y-%m-%d_%H:%M:%S",timeinfo);
+       ms_message("sjero-bandwidth: time=%s.%06d audio=[d=%.1f,u=%.1f] video=[d=%.1f,u=%.1f] kbit/sec"
+                       ,buffer, (int)now.tv_usec,
+                       call->stats[LINPHONE_CALL_STATS_AUDIO].download_bandwidth,
+                       call->stats[LINPHONE_CALL_STATS_AUDIO].upload_bandwidth ,
+                       call->stats[LINPHONE_CALL_STATS_VIDEO].download_bandwidth,
+                       call->stats[LINPHONE_CALL_STATS_VIDEO].upload_bandwidth
+       );
 }
 
 static void linphone_core_disconnected(LinphoneCore *lc, LinphoneCall *call){
index a15b4c24e8a1e45595f92273675c3cfb860b732e..a4f4846d32eb4b766cd56cbe2824bd86d3e6d2e5 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a15b4c24e8a1e45595f92273675c3cfb860b732e
+Subproject commit a4f4846d32eb4b766cd56cbe2824bd86d3e6d2e5
diff --git a/oRTP b/oRTP
index 848b4c95b969dd8ee903d53648ce35904d8082ea..5f8ff6e187cb93afc2d33faeb5671ec50be49660 160000 (submodule)
--- a/oRTP
+++ b/oRTP
@@ -1 +1 @@
-Subproject commit 848b4c95b969dd8ee903d53648ce35904d8082ea
+Subproject commit 5f8ff6e187cb93afc2d33faeb5671ec50be49660