I didn'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.

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?

-MC

2012/1/3 Yuriy Nasida <nasida@live.ru>
Hello FS users,

I do some curl request from my dialplan. It looks like this:
<action application="set" data="lookup=${curl(http://mycnameprovider.com/cname.php?number=${myvar})}" inline="true"/>
If cname provider doesn't answer for long time, I have issue because FS doesn't process a call.
whether there are any method to add some timeout for curl (3 sec for example) ? Thus, if cname provider doesn't answer for 3 sec,  FS must continue the logic of dialplan.

I read about  mod_cidlookup but it looks like that this module have same issue

Please advise

Thanks.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org