FS-5453 --resolve

This commit is contained in:
Anthony Minessale 2013-05-23 08:00:03 -05:00
parent 514fc941c0
commit 1b1bdf6816
1 changed files with 3 additions and 1 deletions

View File

@ -429,7 +429,7 @@ static switch_status_t channel_on_execute(switch_core_session_t *session)
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s CHANNEL EXECUTE\n", switch_channel_get_name(channel));
if ((exten = switch_channel_get_caller_extension(channel))) {
if (!switch_test_flag(tech_pvt, TFLAG_BOWOUT) && (exten = switch_channel_get_caller_extension(channel))) {
switch_caller_application_t *app_p;
for (app_p = exten->applications; app_p; app_p = app_p->next) {
@ -448,6 +448,8 @@ static switch_status_t channel_on_execute(switch_core_session_t *session)
switch_core_session_t *other_session = NULL;
const char *other_uuid = NULL;
switch_set_flag(tech_pvt, TFLAG_BOWOUT);
if ((find_non_loopback_bridge(tech_pvt->other_session, &other_session, &other_uuid) == SWITCH_STATUS_SUCCESS)) {
switch_caller_extension_t *extension;
switch_channel_t *other_channel = switch_core_session_get_channel(other_session);