[Freeswitch-users] mod_xml_cdr and mod_json_cdr - docs/code

Cal Leeming [Simplicity Media Ltd] cal.leeming at simplicitymedialtd.co.uk
Wed Jan 2 16:03:42 MSK 2013


lmao - that is a pretty funny thread.

Just realised JIRA is the best place for this - ticket raised;
http://jira.freeswitch.org/browse/FS-4983

Thanks

Cal

On Wed, Jan 2, 2013 at 12:47 PM, Andrew Cassidy <
andrew at cassidywebservices.co.uk> wrote:

> I'm not a core dev, but my guess would be to reduce the risk of breaking
> current installations while mod_json_cdr was being developed. I do see you
> point but it does make more sense to move it out. perhaps the common code
> could be librarified or they could be merged later on, but not breaking
> current installations is a pretty high priority. This is what happened last
> time a Linux kernel dev broke something big: http://goo.gl/u8GWl
>
> On 2 January 2013 12:19, Cal Leeming [Simplicity Media Ltd] <
> cal.leeming at simplicitymedialtd.co.uk> wrote:
>
>> Hello,
>>
>> Looking at the source code for xml_cdr and json_cdr:
>>
>>
>> https://github.com/FreeSWITCH/FreeSWITCH/blob/master/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c
>>
>> https://github.com/FreeSWITCH/FreeSWITCH/blob/master/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
>>
>> Based on the commit messages and file contents, it looks like this code
>> is maintained in two different places, and is mostly copy/paste.
>>
>> Looking at the documentation, all the relevant channel information is
>> inside the xml_cdr docs, with very little inside json_cdr, despite them
>> having nearly the same code base.
>>
>> Could a core dev comment on;
>>
>> * Why this code is maintained in two different places - are there any
>> plans to merge it into a single lib/file?
>> * Is there functionally any difference between the two, other than the
>> fact one outputs XML and another outputs JSON (my C is very poor, so I find
>> it difficult to interpret the code logic - sorry)
>>
>> Many thanks
>>
>> Cal
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
>
> --
> *Andrew Cassidy BSc (Hons) MBCS SSCA*
> Managing Director
>
>
> *T <info at cassidywebservices.co.uk> *03300 100 960  *F<info at cassidywebservices.co.uk>
>  *03300 100 961
> *E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
> *W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
>
> _________________________________________________________________________
> 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/20130102/38970b3a/attachment.html 


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