From: Raphael Lechner Date: Mon, 4 Jan 2016 20:33:24 +0000 (+0100) Subject: FS-8679: [mod_sofia] no missed call if call is anwered by someone else X-Git-Tag: v1.6.6~1^2~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=507bc265bd9bc1aec2fe77fe34d4ca1050c84243;p=thirdparty%2Ffreeswitch.git 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 --- 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));