diff --git a/apps/app_system.c b/apps/app_system.c index b840028a9792cd99db87d9991b8696c2c44881b8..ded110caeabcfff1ad0cf5f105accd47b592de1c 100644 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -79,6 +79,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode return failmode; } + ast_autoservice_start(chan); + /* Do our thing here */ res = ast_safe_system((char *)data); if ((res < 0) && (errno != ECHILD)) { @@ -99,6 +101,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode res = 0; } + ast_autoservice_stop(chan); + return res; }