mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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
This commit is contained in:
@@ -49,6 +49,8 @@ static int shell_helper(struct ast_channel *chan, const char *cmd, char *data,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ast_autoservice_start(chan);
|
||||||
|
|
||||||
if (len >= 1) {
|
if (len >= 1) {
|
||||||
FILE *ptr;
|
FILE *ptr;
|
||||||
char plbuff[4096];
|
char plbuff[4096];
|
||||||
@@ -60,6 +62,8 @@ static int shell_helper(struct ast_channel *chan, const char *cmd, char *data,
|
|||||||
pclose(ptr);
|
pclose(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ast_autoservice_stop(chan);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user