aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-19 19:54:58 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-19 19:54:58 +0000
commit6a99f529be136a6c26ce4252c13e924d6c9d591c (patch)
treeab5d32517fb895448fc505e450a16faa08dbbb70 /funcs
parent50579ca209ebe78f963911c6c83e748fb2930777 (diff)
put the channel in autoservice when executing func_shell
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83181 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_shell.c4
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;
}