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){