<p>Funny, forkcdr.... Guess who made that ;)</p>
<p>That was my early solution to billing problems that I later solved by writing FS!  Yes ken is right, log the B legs too and you will see both ends of the call.  Also look at xml cdrs and custom cdr bindings. </p>
<div class="gmail_quote">On May 27, 2013 11:31 AM, &quot;Ken Rice&quot; &lt;<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if you are lusing xml cdr, set the logging to both not just a or b legs, this will generate cdrs for all legs individually<br>
<br>
Ken<br>
Sent from my iPad<br>
<br>
On May 27, 2013, at 11:01, Jon Schøpzinsky &lt;<a href="mailto:jos@firstcom.dk">jos@firstcom.dk</a>&gt; wrote:<br>
<br>
&gt; Hi List,<br>
&gt;<br>
&gt; I am implementing call forwarding on a multi tenant system, and therefore<br>
&gt; need to split CDR&#39;s when the call forward happens, so that if the<br>
&gt; receiving user also has his account call forwarded, he pays for his part<br>
&gt; of the call.<br>
&gt;<br>
&gt; A calls B<br>
&gt; B forwards to C<br>
&gt; C forwards to an external mobile phone.<br>
&gt;<br>
&gt; B has a free call from B to C, but C needs to pay for the forwarding to<br>
&gt; the mobile phone. Therefore i need a separate CDR for the C to Mobile<br>
&gt; phone call.<br>
&gt;<br>
&gt; Another example would be this<br>
&gt;<br>
&gt; A works in Company A, and B works in Company B<br>
&gt; They are both users on our system, and therefore is on the same freeswitch.<br>
&gt;<br>
&gt; A calls B<br>
&gt; B Forwards to an external mobile phone.<br>
&gt;<br>
&gt; Here A needs to pay for the call from A to B, and B needs to pay for the<br>
&gt; call being forwarded to his mobile phone.<br>
&gt;<br>
&gt; Do anybody have an idea as to how to implement this in freeswitch. Back in<br>
&gt; my Asterisk days, this would be done by the ForkCDR command.<br>
&gt;<br>
&gt;<br>
&gt; Venlig hilsen/kind regards<br>
&gt;<br>
&gt; Jon Leren Schøpzinsky<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>
<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>
</blockquote></div>