Commit 7e126739 authored by Simon Morlat's avatar Simon Morlat
Browse files

add setting to reject duplicate calls

parent f13744a7
......@@ -148,6 +148,7 @@ static void call_received(SalOp *h){
LinphoneAddress *from_addr, *to_addr;
SalMediaDescription *md;
bool_t propose_early_media=lp_config_get_int(lc->config,"sip","incoming_calls_early_media",FALSE);
bool_t prevent_colliding_calls=lp_config_get_int(lc->config,"sip","prevent_colliding_calls",TRUE);
const char *ringback_tone=linphone_core_get_remote_ringback_tone (lc);
/* first check if we can answer successfully to this invite */
......@@ -176,7 +177,7 @@ static void call_received(SalOp *h){
if (already_a_call_with_remote_address(lc,from_addr) || already_a_call_pending(lc)){
if ((already_a_call_with_remote_address(lc,from_addr) && prevent_colliding_calls) || already_a_call_pending(lc)){
ms_warning("Receiving another call while one is ringing or initiated, refusing this one with busy message.");
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