instead of initializing the curl library every time the CURL() function is invoked...
commit2f7d13d68fb1fd26eaefae5ad42ce4ff12c7a8f1
authorkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Sat, 16 Dec 2006 04:25:09 +0000 (16 04:25 +0000)
committerkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Sat, 16 Dec 2006 04:25:09 +0000 (16 04:25 +0000)
tree552c1ad3635c7b86410f6688df10090c9e0e7816
parent4c1f7e18e463a954dbfc5a65a017dbe243a6a583
instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48513 614ede4d-c843-0410-af14-a771ab80d22e
funcs/func_curl.c