Browse Source

MT#55283 Reject OSRTP answer when not offered

Closes #1854

Change-Id: I3020166b67005b0ecf7970104dbecb36885b021e
rfuchs/fixes
Morten Tryfoss 1 year ago
committed by Richard Fuchs
parent
commit
42e52fd1d6
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      daemon/call.c

+ 6
- 2
daemon/call.c View File

@ -2359,8 +2359,12 @@ static void __update_media_protocol(struct call_media *media, struct call_media
media->protocol = NULL; // reject
}
// pass through any other protocol change?
else if (!flags->protocol_accept)
;
else if (!flags->protocol_accept) {
if (media->protocol && sp->protocol && !media->protocol->osrtp && sp->protocol->osrtp) {
ilog(LOG_WARNING, "Ignore OSRTP answer since this was not offered");
other_media->protocol = media->protocol;
}
}
else
media->protocol = NULL;
}


Loading…
Cancel
Save