You can use: https://wiki.freeswitch.org/wiki/FetchUrl On Tue, Jun 24, 2014 at 1:02 PM, Miguel Oyarzo <miguelaustro@gmail.com> wrote:
Hi,
Is there is a way to call an external API (HTTPS/GET), to validate a phone number from the dialplan?
<extension> <condition https://domain/api?par1=value, $ret-val> ?? <action application="bridge" .....> </condition> </<extension>
I'm looking at mod_curl but not sure if I can use it in dialplan and/or how to retrieve the response.
Any idea?
Thanks
-- "Efficiency is doing things right; effectiveness is doing the right things (Peter Drucker)"
Miguel Oyarzo DevOps & VoIP Engineer Linux User: # 483188 - counter.li.org http://au.linkedin.com/in/mikeaustralia Melbourne, Australia
_________________________________________________________________________ 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
-- Thanks and Regards, Ashwin Jain MetroGuild