diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 00dcda3c08..5a1b8c5d14 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -2818,6 +2818,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, myflags |= SOF_NOBLOCK; } + switch_snprintf(stupid, sizeof(stupid), "user/%s", user); if (switch_stristr(stupid, d_dest)) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Waddya Daft? You almost called '%s' in an infinate loop!\n", @@ -2829,6 +2830,11 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, const char *context; switch_caller_profile_t *cp; + if (var_event) { + switch_event_del_header(var_event, "origination_uuid"); + } + + new_channel = switch_core_session_get_channel(*new_session); if ((context = switch_channel_get_variable(new_channel, "user_context"))) {