Browse Source

reset other side's crypto params only in passthru mode

fixes #63
pull/69/head
Richard Fuchs 11 years ago
parent
commit
43cd3f520a
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      daemon/call.c

+ 9
- 5
daemon/call.c View File

@ -1921,11 +1921,15 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
MEDIA_CLEAR(this, SDES);
MEDIA_CLEAR(this, SETUP_PASSIVE);
MEDIA_CLEAR(this, SETUP_ACTIVE);
/* clear crypto for the other leg as well b/c passthrough only works if it is done for both legs */
MEDIA_CLEAR(other, DTLS);
MEDIA_CLEAR(other, SDES);
MEDIA_CLEAR(other, SETUP_PASSIVE);
MEDIA_CLEAR(other, SETUP_ACTIVE);
if (MEDIA_ISSET(this, PASSTHRU)) {
/* clear crypto for the other leg as well b/c passthrough only
* works if it is done for both legs */
MEDIA_CLEAR(other, DTLS);
MEDIA_CLEAR(other, SDES);
MEDIA_CLEAR(other, SETUP_PASSIVE);
MEDIA_CLEAR(other, SETUP_ACTIVE);
}
return;
}


Loading…
Cancel
Save