diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index f10214178..0f51a1f7c 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1641,7 +1641,7 @@ void linphone_core_iterate(LinphoneCore *lc){ if (lc->ecc->cb) lc->ecc->cb(lc,ecs,lc->ecc->delay,lc->ecc->cb_data); if (ecs==LinphoneEcCalibratorDone){ - lp_config_set_int(lc->config, "sound", "ec_delay",lc->ecc->delay); + lp_config_set_int(lc->config, "sound", "ec_delay",MAX(lc->ecc->delay-10,0)); } ec_calibrator_destroy(lc->ecc); lc->ecc=NULL;