mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 00:29:21 +00:00
fix avpf attributes not set when SRTP-DTLS is used.
This commit is contained in:
parent
a17e74b6c6
commit
1dc50acfd1
2 changed files with 39 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ static void stream_description_to_sdp ( belle_sdp_session_description_t *session
|
|||
}
|
||||
}
|
||||
|
||||
if ((rtp_port != 0) && ((stream->proto == SalProtoRtpAvpf) || (stream->proto == SalProtoRtpSavpf))) {
|
||||
if ((rtp_port != 0) && sal_stream_description_has_avpf(stream)) {
|
||||
add_rtcp_fb_attributes(media_desc, md, stream);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -203,16 +203,51 @@ bool_t sal_stream_description_active(const SalStreamDescription *sd) {
|
|||
return (sd->rtp_port > 0);
|
||||
}
|
||||
|
||||
/*these are switch case, so that when a new proto is added we can't forget to modify this function*/
|
||||
bool_t sal_stream_description_has_avpf(const SalStreamDescription *sd) {
|
||||
return ((sd->proto == SalProtoRtpAvpf) || (sd->proto == SalProtoRtpSavpf) || (sd->proto == SalProtoUdpTlsRtpSavpf));
|
||||
switch (sd->proto){
|
||||
case SalProtoRtpAvpf:
|
||||
case SalProtoRtpSavpf:
|
||||
case SalProtoUdpTlsRtpSavpf:
|
||||
return TRUE;
|
||||
case SalProtoRtpAvp:
|
||||
case SalProtoRtpSavp:
|
||||
case SalProtoUdpTlsRtpSavp:
|
||||
case SalProtoOther:
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*these are switch case, so that when a new proto is added we can't forget to modify this function*/
|
||||
bool_t sal_stream_description_has_srtp(const SalStreamDescription *sd) {
|
||||
return ((sd->proto == SalProtoRtpSavp) || (sd->proto == SalProtoRtpSavpf));
|
||||
switch (sd->proto){
|
||||
case SalProtoRtpSavp:
|
||||
case SalProtoRtpSavpf:
|
||||
return TRUE;
|
||||
case SalProtoRtpAvp:
|
||||
case SalProtoRtpAvpf:
|
||||
case SalProtoUdpTlsRtpSavpf:
|
||||
case SalProtoUdpTlsRtpSavp:
|
||||
case SalProtoOther:
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool_t sal_stream_description_has_dtls(const SalStreamDescription *sd) {
|
||||
return ((sd->proto == SalProtoUdpTlsRtpSavp) || (sd->proto == SalProtoUdpTlsRtpSavpf));
|
||||
switch (sd->proto){
|
||||
case SalProtoUdpTlsRtpSavpf:
|
||||
case SalProtoUdpTlsRtpSavp:
|
||||
return TRUE;
|
||||
case SalProtoRtpSavp:
|
||||
case SalProtoRtpSavpf:
|
||||
case SalProtoRtpAvp:
|
||||
case SalProtoRtpAvpf:
|
||||
case SalProtoOther:
|
||||
return FALSE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool_t sal_media_description_has_avpf(const SalMediaDescription *md) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue