switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),SWITCH_LOG_DEBUG,"BERT Test Window=%ums/%u, MaxErr=%f%%, Timeout=%dms\n",bert.window_ms,bert.window_samples,bert.max_err,timeout_ms);
if(bert.window_samples<=0){
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),SWITCH_LOG_ERROR,"Failed to compute BERT window samples!\n");
* Note core_session_read_frame is a blocking operation, we should probably do reathing in another thread like playback() does using switch_core_service_session() */
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),SWITCH_LOG_DEBUG,"BERT Test Completed. MaxErr=%f%%\n",synced?bert.max_err_hit:bert.max_err_ever);