I didn&#39;t see anything obvious in the mod_curl.c code nor in switch_curl.c which is not a good sign. However, you could probably use a mod_lua or mod_perl script to have more control over a call to the system curl.<div>
<br></div><div>FWIW, I looked in libs/curl/include/curl/curl.h and there is a connect timeout hook but it does not look like switch_curl.c has an interface for it. A bounty, perhaps?</div><div><br></div><div>-MC<br><br><div class="gmail_quote">
2012/1/3 Yuriy Nasida <span dir="ltr">&lt;<a href="mailto:nasida@live.ru">nasida@live.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<div>Hello FS users,</div><div><br></div><div>I do some curl request from my dialplan. It looks like this:</div><div>&lt;action application=&quot;set&quot; data=&quot;lookup=${curl(<a href="http://mycnameprovider.com/cname.php?number=$%7Bmyvar%7D)" target="_blank">http://mycnameprovider.com/cname.php?number=${myvar})</a>}&quot; inline=&quot;true&quot;/&gt;</div>
<div>If cname provider doesn&#39;t answer for long time, I have issue because FS doesn&#39;t process a call.</div><div>whether there are any method to add some timeout for curl (3 sec for example) ? Thus, if cname provider doesn&#39;t answer for 3 sec,  FS must continue the logic of dialplan.</div>
<div><br></div><div>I read about  mod_cidlookup but it looks like that this module have same issue</div><div><a href="http://wiki.freeswitch.org/wiki/Mod_cidlookup" target="_blank">http://wiki.freeswitch.org/wiki/Mod_cidlookup</a> </div>
<div><br></div><div>Please advise</div><div><br></div><div>Thanks.</div>                                               </div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>