on the existence of a channel, with no real reason. This should make func_curl
once again work without a channel.
Reported by jmls.
Fixed by tilghman.
Closes issue #11090
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87120
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
AST_STANDARD_APP_ARGS(args, info);
- ast_autoservice_start(chan);
+ if (chan)
+ ast_autoservice_start(chan);
if (!curl_internal(&chunk, args.url, args.postdata)) {
if (chunk.memory) {
ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
}
- ast_autoservice_stop(chan);
+ if (chan)
+ ast_autoservice_stop(chan);
ast_module_user_remove(u);