[Freeswitch-users] JSON-based API calls

Vik Killa vipkilla at gmail.com
Thu Aug 27 18:36:53 MSD 2015


Hi David,
Apparently freeswitch's mod_verto offers a RESTful JSON interface to FS.
Please check out this page:
https://freeswitch.org/confluence/display/FREESWITCH/Restful
Thanks

On Wed, Aug 26, 2015 at 4:58 PM, David McNab <davidmcnabnz at gmail.com> wrote:

> Hi there,
>
> How do you do API calls in JSON? Or, how do I get a list of all the API
> calls which can receive JSON parameters and return JSON return values?
>
> For example, in the console, I tried 'show calls', and got a list of
> calls. I did the same call from via XML-RPC from a python script, and got a
> single string back, containing what would have been output to the console.
> But when I tried, from the console:
>
> *json {"command":"show calls", "format":"pretty", "data":{}}*
>
> I got an invalid response.
>
> I also tried:
>
> *json {"command":"show", "format":"pretty", "data":"calls"}*
>
> but got similar.
>
> Is there a general sceme for invoking all the console API commands (and
> receiving responses) in JSON format?
>
> If not, I guess I need to write some parsers to process each command's
> output string.
>
> Cheers
> David
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150827/b5918a2a/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list