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

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jun 25 08:15:15 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:                     feedback
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:             06-23-2008 16:12 CDT
Last Modified:              06-25-2008 08:15 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.
====================================================================== 

---------------------------------------------------------------------- 
 sohosys - 06-25-08 08:15  
---------------------------------------------------------------------- 
Fair enough, I will hold off on making the patches for 1.2 and 1.4
publically available until we see where this goes, and if you do decide to
use the proposed CURLOPT() structure we would try and back port at least
the CURLOPT(timeout) syntax to 1.2 and 1.4 to maintain forward dialplan
compatibility. A couple of other users have expressed interest in the
simple patch, presumably because they have had the same issues we have had,
and 1.2 and 1.4 seem to be prevalent in my circle. We use a large national
CNAM provider that many others use as well, and they recently had an outage
that allowed connections, returned no data, and didnot drop the connection,
resulting in failed calls for anyone using Asterisk CURL to do the queries.
Our concern has been resolved, but we fully support the greater good. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-25-08 08:15  sohosys        Note Added: 0089207                          
======================================================================




More information about the asterisk-bugs mailing list