I'm not sure exactly what you are asking, but the lua is actually using the API call anyway.  mod_curl also exposes APP calls (for use in the dialplans), so you also have that method.  Functionally and performance wise, there's really no difference between what method you choose to execute 'curl' or 'curl_sendfile'.

-Yossi

On 02/11/2015 12:58 PM, Aqs Younas wrote:
Hi, users.

I have ivr based lua script which uses mod_curl of freeswitch to get response from an API. Just curious which method is more preferable to get response from API mod_curl of freeswitch or lua on curl.?

Thanks


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

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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