mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 02:18:31 +00:00
Merge "res_pjsip_sdp_rtp: Reject offer of required SRTP without res_srtp." into 13
This commit is contained in:
@@ -896,9 +896,11 @@ static int negotiate_incoming_sdp_stream(struct ast_sip_session *session, struct
|
|||||||
|
|
||||||
res = setup_media_encryption(session, session_media, sdp, stream);
|
res = setup_media_encryption(session, session_media, sdp, stream);
|
||||||
if (res) {
|
if (res) {
|
||||||
if (!session->endpoint->media.rtp.encryption_optimistic) {
|
if (!session->endpoint->media.rtp.encryption_optimistic ||
|
||||||
|
!pj_strncmp2(&stream->desc.transport, "RTP/SAVP", 8)) {
|
||||||
/* If optimistic encryption is disabled and crypto should have been enabled
|
/* If optimistic encryption is disabled and crypto should have been enabled
|
||||||
* but was not this session must fail.
|
* but was not this session must fail. This must also fail if crypto was
|
||||||
|
* required in the offer but could not be set up.
|
||||||
*/
|
*/
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user