mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
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:
parent
99a9537cd4
commit
507bc265bd
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user