Set timeout to curl function


I use curl in may dialplan to acess web system,
but when the comand fail , my call stop
asterisk still trying execute curl at my web system and not continue with out curl response

soo Iḿ loking for a comand that sets timeout to curl system
if curl don’t response at 10 second go to next dialplan line

some body can help-me ?


you can use PHPAGI and use work with URLS in PHP
then you can set different types of timeouts in your application .