mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
add parameter
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@679 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
b23ca0cc02
commit
cc827eaa67
2 changed files with 9 additions and 5 deletions
|
|
@ -33,7 +33,8 @@ static bool_t linphone_call_matches_event(LinphoneCall *call, eXosip_event_t *ev
|
|||
|
||||
static void linphone_call_proceeding(LinphoneCore *lc, eXosip_event_t *ev){
|
||||
if (lc->call==NULL || (lc->call->cid!=-1 && !linphone_call_matches_event(lc->call,ev)) ) {
|
||||
ms_warning("This call has been canceled.");
|
||||
ms_warning("This call has been canceled: call=%p, call->cid=%i, ev->cid=%i",
|
||||
lc->call,lc->call->cid,ev->cid);
|
||||
eXosip_lock();
|
||||
eXosip_call_terminate(ev->cid,ev->did);
|
||||
eXosip_unlock();
|
||||
|
|
|
|||
|
|
@ -1360,8 +1360,10 @@ int linphone_core_invite(LinphoneCore *lc, const char *url)
|
|||
ms_warning("Could not build initial invite");
|
||||
goto end;
|
||||
}
|
||||
osip_message_set_header(invite, "Session-expires", "200");
|
||||
osip_message_set_supported(invite, "timer");
|
||||
if (lp_config_get_int(lc->config,"sip","use_session_timers",0)==1){
|
||||
osip_message_set_header(invite, "Session-expires", "200");
|
||||
osip_message_set_supported(invite, "timer");
|
||||
}
|
||||
/* make sdp message */
|
||||
|
||||
osip_from_init(&parsed_url2);
|
||||
|
|
@ -1747,8 +1749,9 @@ int linphone_core_accept_call(LinphoneCore *lc, const char *url)
|
|||
ms_error("Fail to build answer for call: err=%i",err);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (call->supports_session_timers) osip_message_set_supported(msg, "timer");
|
||||
if (lp_config_get_int(lc->config,"sip","use_session_timers",0)==1){
|
||||
if (call->supports_session_timers) osip_message_set_supported(msg, "timer");
|
||||
}
|
||||
/*try to be best-effort in giving real local or routable contact address,
|
||||
except when the user choosed to override the ipaddress */
|
||||
if (linphone_core_get_firewall_policy(lc)!=LINPHONE_POLICY_USE_NAT_ADDRESS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue