[Freeswitch-users] mod_cdr_mongodb follows json rfc4627?
Avi Marcus
avi at avimarcus.net
Tue Dec 4 01:50:02 MSK 2012
Hmm, this is sort of hijacking.
Does json_cdr - and possibly all these others -- skip the app_log - the
actual call*flow* -- it's in the xml_cdr.
I looked at a bunch of json_cdrs but I don't seem to see it. I just see
variable and then a callflow that just has times and origination numbers
and the like.
-Avi
On Mon, Dec 3, 2012 at 4:41 PM, Jose Fco. Irles Durá <josefu at gmail.com>wrote:
> I also sent a patch for the mod_cdr_mongodb module:
>
> http://jira.freeswitch.org/browse/FS-4902
>
> 2012/12/3 Chad Engler <Chad.Engler at patlive.com>:
> > I submitted a patch that should fix this a while ago, but haven’t heard
> much
> > back:
> >
> >
> >
> > http://jira.freeswitch.org/browse/FS-4830
> >
> >
> >
> > -Chad
> >
> >
> >
> > From: freeswitch-users-bounces at lists.freeswitch.org
> > [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
> Anthony
> > Minessale
> > Sent: Friday, November 30, 2012 5:29 PM
> > To: FreeSWITCH Users Help
> > Subject: Re: [Freeswitch-users] mod_cdr_mongodb follows json rfc4627?
> >
> >
> >
> > you are right, post the patch to JIRA please.
> >
> >
> >
> >
> >
> > On Fri, Nov 30, 2012 at 1:28 PM, Jose Fco. Irles Durá <josefu at gmail.com>
> > wrote:
> >
> > Hello everybody, first of all, sorry for my english.
> >
> > I have a test server with the mod_cdr_mongodb backend configured.
> >
> > I'm trying to parse the cdrs with the mongodb driver for java, but i
> > have a trouble with a part of the json that freeswitch sends (mongo
> > saves the json document without errors). I haven't an API function to
> > extract some data. Firstly I thought that the problem was in the java
> > driver but I'm not sure.
> >
> > The problem is in the "callflow" part, with the json standard[1], a
> > json document can't have two keys with the same name, but
> > mod_cdr_mongodb builds the json with a 'n' callflow objects.
> > Also it happends inside callflow object, with origination, originator
> > and originatee objects.
> >
> > mod_cdr_mongodb saves the json with this format:
> > http://pastebin.com/VRz6s0eb
> >
> > I modified the source of the backend adding json arrays around this
> > objects and now I can parse without problems.
> >
> > The output with the modifications:
> > http://pastebin.com/v05FN9Ta
> >
> > I'm in the correct way or I'm missing something?
> >
> > [1] http://www.ietf.org/rfc/rfc4627.txt Section 2.2
> >
> > Regards
> > --
> > Jose Fco. Irles Durá
> >
> > _________________________________________________________________________
> > 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
> >
> >
> >
> >
> >
> > --
> > Anthony Minessale II
> >
> > FreeSWITCH http://www.freeswitch.org/
> > ClueCon http://www.cluecon.com/
> > Twitter: http://twitter.com/FreeSWITCH_wire
> >
> > AIM: anthm
> > MSN:anthony_minessale at hotmail.com
> > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:888 at conference.freeswitch.org
> > googletalk:conf+888 at conference.freeswitch.org
> > pstn:+19193869900
> >
> >
> > _________________________________________________________________________
> > 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
> >
>
>
>
> --
> Jose Fco. Irles Durá
>
> _________________________________________________________________________
> 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/20121204/c72d7f91/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list