[Freeswitch-users] Just curious, is there any standard for FS API command output?

Rafal Gwizdala rafal.gwizdala at gmail.com
Thu Aug 1 09:44:34 MSD 2013


I'll check this. thanks.
R


On Thu, Aug 1, 2013 at 12:00 AM, Avi Marcus <avi at avimarcus.net> wrote:

> Most commands with lists you can specify "as json" or "as xml" just like
> from fs_cli...
>
> -Avi
>
> On Thu, Aug 1, 2013 at 12:50 AM, Rafal Gwizdala <rafal.gwizdala at gmail.com>wrote:
>
>> Michael, there's no real issue here, I was just trying to parse the
>> output of several commands and was a little surprised that there's no
>> common, automatically-parsable format like json or xml (some commands
>> support xml, some csv only and there are totally custom formats too). But
>> you're right, there are much worse data formats than plain text so i won't
>> complain about it anymore.
>>  R
>>
>>
>>
>> On Wed, Jul 31, 2013 at 11:07 PM, Michael Collins <msc at freeswitch.org>wrote:
>>
>>> Not sure what the real issue is here. In all programming langs you have
>>> functions that return various formats - you simply learn to use them. In FS
>>> the APIs are easy to use. Many of them support different output formats
>>> which gives you choices. You even have ESL which abstracts away a lot of
>>> the boring and tedious work.
>>>
>>> Are you facing a particularly difficult programming challenge? The gang
>>> here loves to solve problems, so ask away.
>>>
>>> -MC
>>> On Jul 31, 2013 1:03 PM, "Rafal Gwizdala" <rafal.gwizdala at gmail.com>
>>> wrote:
>>>
>>>> Guys, I'm communicating with FS through an inbound event socket and
>>>> almost every command has some different standard for output data structure.
>>>> Some responses are CSV, some (like 'sofia status profile internal reg') use
>>>> a  'vertical name:value format , i've seen also different formats I don't
>>>> remember now. What's worse, the event returned after executing a command
>>>> (SOCKET_DATA api/response) doesn't indicate if the command succeeded or
>>>> not. Some commands are nice enough to return +OK for success but not all of
>>>> them.
>>>> Am I missing something here? Are there more programmer-friendly methods
>>>> of getting command results from FS?
>>>> Thanks
>>>> RG
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>>
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130801/800ce1b8/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list