diff options
Diffstat (limited to 'funcs/func_shell.c')
-rw-r--r-- | funcs/func_shell.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_shell.c b/funcs/func_shell.c index 668631aaa..9653fcab0 100644 --- a/funcs/func_shell.c +++ b/funcs/func_shell.c @@ -49,6 +49,8 @@ static int shell_helper(struct ast_channel *chan, const char *cmd, char *data, return -1; } + ast_autoservice_start(chan); + if (len >= 1) { FILE *ptr; char plbuff[4096]; @@ -60,6 +62,8 @@ static int shell_helper(struct ast_channel *chan, const char *cmd, char *data, pclose(ptr); } + ast_autoservice_stop(chan); + return 0; } |