<font face="verdana,sans-serif">Another note  look into the caller_profile and index. I think you have two indexes for this situation.In your logic insert the records for the multiple indexes.</font><div><font face="verdana, sans-serif"><br>

</font></div><div><font face="verdana, sans-serif">Lloyd<br></font><div><div><div><font face="verdana, sans-serif" color="#cc6600" size="1"><b><br></b></font></div><div><font face="verdana, sans-serif" color="#cc6600" size="1"><b> <a href="http://www.sunteltech.ca/blog/" target="_blank"></a></b></font></div>

</div>
<br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 12:44 PM, Lloyd Aloysius <span dir="ltr">&lt;<a href="mailto:lloyd.aloysius@sunteltech.ca" target="_blank">lloyd.aloysius@sunteltech.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<font face="verdana,sans-serif">With the default configuration switch only log a_leg. </font><div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">You need to enable b_leg in xml_cdr.conf.xml . Then you will see the two records in b_leg, with one get billsec &gt; 0 for the the answered call.</font><span class="HOEnZb"><font color="#888888"><div>


<font face="verdana,sans-serif"><br></font></div></font></span><div><span class="HOEnZb"><font color="#888888"><font face="verdana,sans-serif">Lloyd<br clear="all"></font></font></span><div><div class="h5"><div><font face="verdana, sans-serif"><br>

</font></div>
<br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 10:57 AM, Stuart Mills <span dir="ltr">&lt;<a href="mailto:stuart.mills3@btopenworld.com" target="_blank">stuart.mills3@btopenworld.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:&#39;Calibri&#39;">
<div>Hi Avi,</div>
<div> </div>
<div>Thanks for your reply.</div>
<div> </div>
<div>Yeah I&#39;m sure, I&#39;m using ESL and if I dial a single number it performs as 
expected, it’s literally only when I&#39;m making 2 or more calls at once it 
happens.</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>Stuart</div>
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:&#39;Calibri&#39;;font-weight:normal">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="avi@avimarcus.net" href="mailto:avi@avimarcus.net" target="_blank">Avi Marcus</a> </div>
<div><b>Sent:</b> Friday, August 02, 2013 3:24 PM</div>
<div><b>To:</b> <a title="freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">FreeSWITCH Users Help</a> 
</div>
<div><b>Subject:</b> Re: [Freeswitch-users] Call at once and 
XML-CDR</div></div></div>
<div> </div></div>
<div style="font-style:normal;font-size:small;display:inline;text-decoration:none;font-family:&#39;Calibri&#39;;font-weight:normal"><div><div>
<p>Are you sure these aren&#39;t b leg things?<br>Do you have an example of your 
dial plan and the logs?</p>
<p>-Avi</p>
<div class="gmail_quote">On Aug 2, 2013 5:09 PM, &quot;Stuart Mills&quot; &lt;<a href="mailto:stuart.mills3@btopenworld.com" target="_blank">stuart.mills3@btopenworld.com</a>&gt; 
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
  <div dir="ltr">
  <div dir="ltr">
  <div style="FONT-SIZE:12pt;FONT-FAMILY:&#39;Calibri&#39;">
  <div>Hi,</div>
  <div> </div>
  <div>Got a question regarding call at once combined with xml-cdr 
logging.</div>
  <div> </div>
  <div>The problem I seem to get is when I try sending calls to 2 destinations 
  and 1 call gets answered, so that wins the race, the xml-cdr logging seems to 
  be a little confused. In the app_log I’m getting logging up to the point of 
  the dial string, then nothing after that for the a-leg. What seems to happen 
  is the rest of the app_log gets written to the cdr file of the bleg that 
  answered the call first.</div>
  <div> </div>
  <div>Is this by design or a bug in the xml-cdr logging?</div>
  <div> </div>
  <div>Thanks,</div>
  <div><br>Stuart</div></div></div></div><br>_________________________________________________________________________<br>Professional 
  FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>


<br></blockquote></div>
</div></div><p>
</p><hr><div>
_________________________________________________________________________<br>Professional 
FreeSWITCH Consulting 
Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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><p></p></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>