[Freeswitch-users] HTTP API call from dialplan
Ashwin Jain
ashwinrkjain at gmail.com
Tue Jun 24 11:49:19 MSD 2014
You can use: https://wiki.freeswitch.org/wiki/FetchUrl
On Tue, Jun 24, 2014 at 1:02 PM, Miguel Oyarzo <miguelaustro at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140624/fd97a793/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list