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
This commit is contained in:
Raphael Lechner 2016-01-04 21:33:24 +01:00
parent 99a9537cd4
commit 507bc265bd
1 changed files with 1 additions and 1 deletions

View File

@ -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));