Skip to content

Commit

Permalink
fix case for call_completed_elsewhere var set
Browse files Browse the repository at this point in the history
  • Loading branch information
mjerris committed Apr 15, 2013
1 parent 2d0b247 commit 61ec4c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mod/endpoints/mod_sofia/mod_sofia.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 61ec4c0

Please sign in to comment.