Commit cc827eaa authored by smorlat's avatar smorlat
Browse files

add parameter

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@679 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent b23ca0cc
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment