[asterisk-commits] tilghman: trunk r87121 - in /trunk: ./ funcs/func_curl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 26 09:00:48 CDT 2007


Author: tilghman
Date: Fri Oct 26 09:00:48 2007
New Revision: 87121

URL: http://svn.digium.com/view/asterisk?view=rev&rev=87121
Log:
Merged revisions 87120 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87120 | tilghman | 2007-10-26 08:54:30 -0500 (Fri, 26 Oct 2007) | 7 lines

The addition of autoservice to func_curl additionally made func_curl dependent
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

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_curl.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_curl.c?view=diff&rev=87121&r1=87120&r2=87121
==============================================================================
--- trunk/funcs/func_curl.c (original)
+++ trunk/funcs/func_curl.c Fri Oct 26 09:00:48 2007
@@ -148,7 +148,8 @@
 
 	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) {
@@ -163,7 +164,8 @@
 		ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
 	}
 
-	ast_autoservice_stop(chan);
+	if (chan)
+		ast_autoservice_stop(chan);
 	
 	return 0;
 }




More information about the asterisk-commits mailing list