diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index 9d3371ef3d..105b96564a 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -24,6 +24,7 @@ * Contributor(s): * * Anthony Minessale II + * Emmanuel Schmidbauer * * * mod_loopback.c -- Loopback Endpoint Module @@ -534,6 +535,7 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session) channel = switch_core_session_get_channel(session); switch_assert(channel != NULL); + switch_channel_set_variable(channel, "is_loopback", "1"); tech_pvt = switch_core_session_get_private(session); switch_assert(tech_pvt != NULL);