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
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';
ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
}
+ ast_autoservice_stop(chan);
+
return 0;
}