Let me clarify this:<br><br>You have to choices of CDR modules.<br><br>mod_cdr_csv <br>
<br>mod_xml_cdr <br><br><br>cdr_csv is a template based module that was designed for back compat with the asterisk cdr format.<br>see config file conf/autoload_configs/cdr_csv.conf.xml<br><br>Here is the asterisk template that makes it possible for us to emulate asterisk it expands variables at the time the call ends.<br>
<br><template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","<br>
${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"<br>
</template><br><br>The default behavior is to log A legs meaning if you make an inbound call then the record will be generated when that leg goes away. This is why you see what you see, we are trying to emulate asterisk here for backward compat.<br>
<br>The param you want to look at is the legs param. This controls what legs are logged.<br>you can set it to a, b or ab to log a b or both legs.<br><br><br> <!-- may be a b or ab --><br> <param name="legs" value="a"/><br>
<br>if you set it to b, then you will get logs every time a leg that was dialed via an existing leg hangs up.<br>which will give you a new one every time a call is transfered.<br><br><br>Next comes mod_xml_cdr which is the more robust choice for important call details.<br>
conf/autoload_configs/xml_cdr.conf.xml<br><br>This module creates a single XML file per call leg with full detail of everything that happens including the time of each transfer etc. It always logs a legs but allows an option to also log b legs too:<br>
<param name="log-b-leg" value="true"/><br><br>In the XML report the <callflow> represents a single trip to the dialplan.<br>Every time a channel is transferred, a whole new callflow will be stacked into the xml so by the end<br>
you have a full path of every single thing that happened in the call.<br><br>See this url for an example of the xml_cdr reports.<br><br><a href="http://www.freeswitch.org/eg/xml_cdr/">http://www.freeswitch.org/eg/xml_cdr/</a><br>
<br><br><br><br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 8:53 AM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It can log a and b legs. Unlike Asterisk.<br>
<div class="Ih2E3d"><br>
On Jul 9, 2008, at 8:39 AM, Faraz R. Khan wrote:<br>
<br>
> mod_cdr_csv is from asterisk land- avoid at all costs :)<br>
<br>
</div><font color="#888888">Brian West<br>
<a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@freeswitch.org</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400