]> sjero.net Git - linphone/blobdiff - coreapi/linphonecall.c
fix config storage for ptimes (was not consistent)
[linphone] / coreapi / linphonecall.c
index da2a461e0c352c6c0cd87eadd939fdcf3aba32fe..41b39cb8b904661620a68605fb2653b5b012eac1 100644 (file)
@@ -223,7 +223,7 @@ static SalMediaDescription *_create_local_media_description(LinphoneCore *lc, Li
        if (call->params.down_ptime)
                md->streams[0].ptime=call->params.down_ptime;
        else
-               md->streams[0].ptime=lc->net_conf.down_ptime;
+               md->streams[0].ptime=linphone_core_get_download_ptime(lc);
        l=make_codec_list(lc,lc->codecs_conf.audio_codecs,call->params.audio_bw,&md->streams[0].max_rate);
        pt=payload_type_clone(rtp_profile_get_payload_from_mime(&av_profile,"telephone-event"));
        l=ms_list_append(l,pt);