[asterisk-commits] russell: branch 1.4 r83177 -	/branches/1.4/funcs/func_curl.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Sep 19 14:34:26 CDT 2007
    
    
  
Author: russell
Date: Wed Sep 19 14:34:25 2007
New Revision: 83177
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83177
Log:
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)
Modified:
    branches/1.4/funcs/func_curl.c
Modified: branches/1.4/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_curl.c?view=diff&rev=83177&r1=83176&r2=83177
==============================================================================
--- branches/1.4/funcs/func_curl.c (original)
+++ branches/1.4/funcs/func_curl.c Wed Sep 19 14:34:25 2007
@@ -145,6 +145,8 @@
 
 	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';
@@ -157,6 +159,8 @@
 	} else {
 		ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
 	}
+
+	ast_autoservice_stop(chan);
 
 	ast_module_user_remove(u);
 
    
    
More information about the asterisk-commits
mailing list