fix ortp initiale ref count. Remove abusive traces

This commit is contained in:
Jehan Monnier 2013-05-21 11:16:45 +02:00
parent bfe2437bbe
commit 23967d8ca8
5 changed files with 11 additions and 6 deletions

View file

@ -127,7 +127,8 @@ static void process_io_error(void *user_ctx, const belle_sip_io_error_event_t *e
op->callbacks.process_io_error(op,event);
}
} else {
ms_error("sal process_io_error not implemented yet for non transaction");
/*ms_error("sal process_io_error not implemented yet for non transaction");*/
/*nop, because already handle at transaction layer*/
}
}

View file

@ -247,7 +247,11 @@ static void call_response_event(void *op_base, const belle_sip_response_event_t
} else {
/*nop error*/
}
ms_error("call op [%p] receive an unexpected answer [%i]",op,code);
if (code >= 100 && code < 180) {
ms_message("call op [%p] receive [%i]",op,code);
} else {
ms_error("call op [%p] receive an unexpected answer [%i]",op,code);
}
}
case BELLE_SIP_DIALOG_CONFIRMED: {
switch (op->state) {

View file

@ -223,8 +223,7 @@ void linphone_call_make_local_media_description(LinphoneCore *lc, LinphoneCall *
SalMediaDescription *md=sal_media_description_new();
LinphoneAddress *addr;
bool_t keep_srtp_keys=lp_config_get_int(lc->config,"sip","keep_srtp_keys",0);
char local_ip[256];
linphone_core_get_local_ip_for( AF_INET,"linphone.org",local_ip);
char* local_ip=call->localip;
linphone_core_adapt_to_network(lc,call->ping_time,&call->params);

View file

@ -2799,7 +2799,8 @@ void linphone_core_notify_incoming_call(LinphoneCore *lc, LinphoneCall *call){
if (md){
if (sal_media_description_empty(md) || linphone_core_incompatible_security(lc,md)){
sal_call_decline(call->op,SalReasonMedia,NULL);
linphone_call_unref(call);
linphone_core_del_call(lc,call);
linphone_call_ref(call);
return;
}
}

2
oRTP

@ -1 +1 @@
Subproject commit 2d8a82247fbebbd690ae2fc8300522ab9b71a542
Subproject commit 1a103971b84d39510ad14f327bd6834b3d88063f