From 507bc265bd9bc1aec2fe77fe34d4ca1050c84243 Mon Sep 17 00:00:00 2001 From: Raphael Lechner Date: Mon, 4 Jan 2016 21:33:24 +0100 Subject: [PATCH] FS-8679: [mod_sofia] no missed call if call is anwered by someone else sofia is sending Call completed elsewhere to the other involved phones if not disabled by the option ignore_completed_elsewhere --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 27b3375420..d5d72012ad 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -463,7 +463,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) switch_snprintf(reason, sizeof(reason), "%s", val); } else { if ((switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) - && switch_false(switch_channel_get_variable(channel, "ignore_completed_elsewhere"))) { + && !switch_true(switch_channel_get_variable(channel, "ignore_completed_elsewhere"))) { switch_snprintf(reason, sizeof(reason), "SIP;cause=200;text=\"Call completed elsewhere\""); } else if (cause > 0 && cause < 128) { switch_snprintf(reason, sizeof(reason), "Q.850;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));