diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-09-19 19:36:34 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-09-19 19:36:34 +0000 |
commit | 3f26b8e8cf884f5207ddc108e6169f6d8aab286e (patch) | |
tree | 3443a5dc882502fa950a8dec8500e3028203cb44 /funcs | |
parent | 86e640bf77bc618f35185c407194db44ec0a3a3d (diff) |
Merged revisions 83177 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r83177 | russell | 2007-09-19 14:34:25 -0500 (Wed, 19 Sep 2007) | 4 lines
Using curl can take a substantial amount of time, so the channel should be
autoserviced while waiting for it to complete.
(closes issue #10725, reported by mnicholson)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83178 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_curl.c | 4 |
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; } |