Don't select telephone-event for audio stream even if it appears first in the list.

This commit is contained in:
Simon Morlat 2017-05-23 12:24:43 +02:00
parent 6ded32bfff
commit 3a850c1a03

View file

@ -3081,9 +3081,15 @@ static RtpProfile *make_profile(LinphoneCall *call, const SalMediaDescription *m
up_ptime=params->up_ptime;
else up_ptime=linphone_core_get_upload_ptime(lc);
}
*used_pt=payload_type_get_number(pt);
first=FALSE;
}
if (*used_pt == -1){
/*don't select telephone-event as a payload type*/
if (strcasecmp(pt->mime_type, "telephone-event") != 0){
*used_pt = payload_type_get_number(pt);
}
}
if (pt->flags & PAYLOAD_TYPE_BITRATE_OVERRIDE){
ms_message("Payload type [%s/%i] has explicit bitrate [%i] kbit/s", pt->mime_type, pt->clock_rate, pt->normal_bitrate/1000);
pt->normal_bitrate=get_min_bandwidth(pt->normal_bitrate,bw*1000);