mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
fix bug with calls without ping not beeing identified by linphonec
This commit is contained in:
parent
d32da0079d
commit
8a5c5626e3
2 changed files with 3 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue