From 3d2eb20a2830ed9b6847c8c17226d1ed88b22f1e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 23 May 2013 08:00:03 -0500 Subject: [PATCH] FS-5453 --resolve --- src/mod/endpoints/mod_loopback/mod_loopback.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index 103f22854e..9d5685dd79 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -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);