From: Russell Bryant Date: Wed, 19 Sep 2007 19:54:58 +0000 (+0000) Subject: put the channel in autoservice when executing func_shell X-Git-Tag: 1.6.0-beta1~3^2~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2897a41de8ffed682a931adbda69a2e0195af584;p=thirdparty%2Fasterisk.git put the channel in autoservice when executing func_shell git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83181 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_shell.c b/funcs/func_shell.c index 668631aaa6..9653fcab09 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; }