fix bug with calls without ping not beeing identified by linphonec

This commit is contained in:
Simon Morlat 2010-08-23 15:15:51 +02:00
parent d32da0079d
commit 8a5c5626e3
2 changed files with 3 additions and 7 deletions

View file

@ -1245,15 +1245,11 @@ static int lpc_cmd_resume(LinphoneCore *lc, char *args){
if (n == 1){
LinphoneCall *call=linphonec_get_call (id);
if (call){
if(linphone_core_resume_call(lc,call)==-1)
{
if(linphone_core_resume_call(lc,call)==-1){
linphonec_out("There was a problem to resume the call check the remote address you gave %s\n",args);
return 1;
}
}else
{
return 1;
}
return 1;
}else return 0;
}
else

View file

@ -2031,11 +2031,11 @@ LinphoneCall * linphone_core_invite_address(LinphoneCore *lc, const LinphoneAddr
}
/* this call becomes now the current one*/
lc->current_call=call;
linphone_call_set_state (call,LinphoneCallOutgoingInit,"Starting outgoing call");
if (dest_proxy!=NULL || lc->sip_conf.ping_with_options==FALSE){
err=linphone_core_start_invite(lc,call,dest_proxy);
}else{
/*defer the start of the call after the OPTIONS ping*/
linphone_call_set_state (call,LinphoneCallOutgoingInit,"Starting outgoing call");
call->ping_op=sal_op_new(lc->sal);
sal_ping(call->ping_op,from,real_url);
sal_op_set_user_pointer(call->ping_op,call);