fix case for call_completed_elsewhere var set

This commit is contained in:
Michael Jerris 2013-04-15 16:45:12 -04:00
parent 2d0b24743f
commit 61ec4c0abb
1 changed files with 2 additions and 0 deletions

View File

@ -542,7 +542,9 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session)
switch_snprintf(reason, sizeof(reason), "SIP;cause=%d;text=\"%s\"", cause, switch_channel_cause2str(cause));
}
}
}
if (switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) {
switch_channel_set_variable(channel, "call_completed_elsewhere", "true");
}