aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_curl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c
index a254d3ca8..514be8bb7 100644
--- a/funcs/func_curl.c
+++ b/funcs/func_curl.c
@@ -148,6 +148,8 @@ static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info,
AST_STANDARD_APP_ARGS(args, info);
+ ast_autoservice_start(chan);
+
if (!curl_internal(&chunk, args.url, args.postdata)) {
if (chunk.memory) {
chunk.memory[chunk.size] = '\0';
@@ -161,6 +163,8 @@ static int acf_curl_exec(struct ast_channel *chan, const char *cmd, char *info,
ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
}
+ ast_autoservice_stop(chan);
+
return 0;
}