<div dir="ltr"><div>Hmm, this is sort of hijacking.</div><div><br></div>Does json_cdr - and possibly all these others -- skip the app_log - the actual call<i>flow</i> -- it&#39;s in the xml_cdr.<div><br><div>I looked at a bunch of json_cdrs but I don&#39;t seem to see it. I just see variable and then a callflow that just has times and origination numbers and the like.</div>

<div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>
<br><br><div class="gmail_quote">On Mon, Dec 3, 2012 at 4:41 PM, Jose Fco. Irles Durá <span dir="ltr">&lt;<a href="mailto:josefu@gmail.com" target="_blank">josefu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I also sent a patch for the mod_cdr_mongodb module:<br>
<br>
<a href="http://jira.freeswitch.org/browse/FS-4902" target="_blank">http://jira.freeswitch.org/browse/FS-4902</a><br>
<br>
2012/12/3 Chad Engler &lt;<a href="mailto:Chad.Engler@patlive.com">Chad.Engler@patlive.com</a>&gt;:<br>
<div class="HOEnZb"><div class="h5">&gt; I submitted a patch that should fix this a while ago, but haven’t heard much<br>
&gt; back:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://jira.freeswitch.org/browse/FS-4830" target="_blank">http://jira.freeswitch.org/browse/FS-4830</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -Chad<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
&gt; [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Anthony<br>
&gt; Minessale<br>
&gt; Sent: Friday, November 30, 2012 5:29 PM<br>
&gt; To: FreeSWITCH Users Help<br>
&gt; Subject: Re: [Freeswitch-users] mod_cdr_mongodb follows json rfc4627?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; you are right, post the patch to JIRA please.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Nov 30, 2012 at 1:28 PM, Jose Fco. Irles Durá &lt;<a href="mailto:josefu@gmail.com">josefu@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; Hello everybody, first of all, sorry for my english.<br>
&gt;<br>
&gt; I have a test server with the mod_cdr_mongodb backend configured.<br>
&gt;<br>
&gt; I&#39;m trying to parse the cdrs with the mongodb driver for java, but i<br>
&gt; have a trouble with a part of the json that freeswitch sends (mongo<br>
&gt; saves the json document without errors). I haven&#39;t an API function to<br>
&gt; extract some data. Firstly I thought that the problem was in the java<br>
&gt; driver but I&#39;m not sure.<br>
&gt;<br>
&gt; The problem is in the &quot;callflow&quot; part, with the json standard[1], a<br>
&gt; json document can&#39;t have two keys with the same name, but<br>
&gt; mod_cdr_mongodb builds the json with a &#39;n&#39; callflow objects.<br>
&gt; Also it happends inside callflow object, with origination, originator<br>
&gt; and originatee objects.<br>
&gt;<br>
&gt; mod_cdr_mongodb saves the json with this format:<br>
&gt; <a href="http://pastebin.com/VRz6s0eb" target="_blank">http://pastebin.com/VRz6s0eb</a><br>
&gt;<br>
&gt; I modified the source of the backend adding json arrays around this<br>
&gt; objects and now I can parse without problems.<br>
&gt;<br>
&gt; The output with the modifications:<br>
&gt; <a href="http://pastebin.com/v05FN9Ta" target="_blank">http://pastebin.com/v05FN9Ta</a><br>
&gt;<br>
&gt; I&#39;m in the correct way or I&#39;m missing something?<br>
&gt;<br>
&gt; [1] <a href="http://www.ietf.org/rfc/rfc4627.txt" target="_blank">http://www.ietf.org/rfc/rfc4627.txt</a> Section 2.2<br>
&gt;<br>
&gt; Regards<br>
&gt; --<br>
&gt; Jose Fco. Irles Durá<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt; Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN:anthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL:anthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
&gt; IRC: <a href="http://irc.freenode.net/" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip:888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
&gt; <a href="mailto:googletalk:conf+888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
&gt; pstn:<a href="tel:+19193869900" value="+19193869900">+19193869900</a><br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Jose Fco. Irles Durá<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div></div>