mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix for srtp when retrying in unencrypted mode
This commit is contained in:
parent
4cfa97e9ed
commit
7f849dc29f
3 changed files with 2 additions and 2 deletions
|
|
@ -537,6 +537,7 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
|
|||
!linphone_core_is_media_encryption_mandatory(lc)) {
|
||||
int i;
|
||||
ms_message("Outgoing call failed with SRTP (SAVP) enabled - retrying with AVP");
|
||||
linphone_call_stop_media_streams(call);
|
||||
/* clear SRTP local params */
|
||||
call->params.media_encryption = LinphoneMediaEncryptionNone;
|
||||
for(i=0; i<call->localdesc->nstreams; i++) {
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr
|
|||
linphone_core_run_stun_tests(call->core,call);
|
||||
discover_mtu(lc,linphone_address_get_domain (to));
|
||||
if (params->referer){
|
||||
sal_call_set_referer (call->op,params->referer->op);
|
||||
sal_call_set_referer(call->op,params->referer->op);
|
||||
}
|
||||
return call;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -515,7 +515,6 @@ static void sdp_process(SalOp *h){
|
|||
strcpy(h->result->addr,h->base.remote_media->addr);
|
||||
h->result->bandwidth=h->base.remote_media->bandwidth;
|
||||
|
||||
//remplacer la cle
|
||||
for(i=0;i<h->result->nstreams;++i){
|
||||
if (h->result->streams[i].port>0){
|
||||
strcpy(h->result->streams[i].addr,h->base.remote_media->streams[i].addr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue