Browse Source

allow for protocol renegotiation

pull/11/head
Richard Fuchs 12 years ago
parent
commit
9ecb7daf8d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      daemon/call.c

+ 6
- 1
daemon/call.c View File

@ -1903,8 +1903,13 @@ int monologue_offer_answer(struct call_monologue *monologue, GQueue *streams,
* offerer or WAS sent to the answerer. */
/* deduct protocol from stream parameters received */
if (!other_media->protocol)
if (other_media->protocol != sp->protocol) {
other_media->protocol = sp->protocol;
/* if the endpoint changes the protocol, we reset the other side's
* protocol as well. this lets us remember our previous overrides,
* but also lets endpoints re-negotiate. */
media->protocol = NULL;
}
/* allow override of outgoing protocol even if we know it already */
if (flags && flags->transport_protocol)
media->protocol = flags->transport_protocol;


Loading…
Cancel
Save