summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/app_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_system.c b/apps/app_system.c
index b840028a9..ded110cae 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;
}