diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway.c b/src/mod/endpoints/mod_media_gateway/media_gateway.c index 0eca234419..2d32568f6c 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway.c @@ -203,7 +203,7 @@ done: } switch_event_destroy(&var_event); - return SWITCH_STATUS_SUCCESS; + return status; } switch_status_t megaco_prepare_tdm_termination(mg_termination_t *term)