[asterisk-bugs] [Asterisk 0012920]: [patch] Added CURL() Function Timeout Argument

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Sep 5 14:02:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12920 
====================================================================== 
Reported By:                davevg
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12920
Category:                   Functions/func_curl
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 124707 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-06-23 16:12 CDT
Last Modified:              2008-09-05 14:02 CDT
====================================================================== 
Summary:                    [patch] Added CURL() Function Timeout Argument
Description: 
If you have a long running web script the CURL function is currently hard
coded to timeout after 180 seconds.  This patch adds a 3rd parameter to the
function which when set overrides the 180 second default.

Example usage:
exten => 1,1,Set(foo=${CURL(http://127.0.0.1/test.pl,,3)})
Which will set a timeout of 3 seconds on the CURL call.
====================================================================== 

---------------------------------------------------------------------- 
 (0092121) svnbot (reporter) - 2008-09-05 14:02
 http://bugs.digium.com/view.php?id=12920#c92121 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 141328

U   trunk/CHANGES
U   trunk/funcs/func_curl.c

------------------------------------------------------------------------
r141328 | tilghman | 2008-09-05 14:02:46 -0500 (Fri, 05 Sep 2008) | 8
lines

Add the CURLOPT dialplan function, which permits setting various options
for
use with the CURL dialplan function.
(closes issue http://bugs.digium.com/view.php?id=12920)
 Reported by: davevg
 Patches: 
       20080904__bug12920.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, davevg

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=141328 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-05 14:02 svnbot         Checkin                                      
2008-09-05 14:02 svnbot         Note Added: 0092121                          
======================================================================




More information about the asterisk-bugs mailing list