<div dir="ltr"><div>It might be best of you posted those on pastebin with explanations and console logs of the calls.<br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 3:24 PM, 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,</div>
<div> </div>
<div>Thanks for your reply.</div>
<div> </div>
<div>I have already changed the parameter log-b-leg to true in xml_cdr.conf and 
I am getting 2 records for the outbound calls and 1 for inbound. The issue is 
that the app_log section in the a_leg cdr seems to be split across the a_leg cdr 
and the b_leg cdr that “won” the race to be answered first. The second b_leg has 
no duration as expected.</div>
<div> </div>
<div>Am I making sense?</div>
<div> </div>
<div>Regards,</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="lloyd.aloysius@sunteltech.ca" href="mailto:lloyd.aloysius@sunteltech.ca" target="_blank">Lloyd Aloysius</a> </div>
<div><b>Sent:</b> Friday, August 02, 2013 5:45 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"><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 color="#cc6600" face="verdana, sans-serif" size="1"><b><br></b></font></div>
<div><font color="#cc6600" face="verdana, sans-serif" size="1"><b></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="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><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><font color="#888888"> 
  <div><font face="verdana,sans-serif"><br></font></div></font></span>
  <div><span><font color="#888888"><font face="verdana,sans-serif">Lloyd<br clear="all"></font></font></span>
  <div>
  <div>
  <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="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 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-SIZE:small;FONT-FAMILY:&#39;Calibri&#39;;FONT-WEIGHT:normal;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
    <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-SIZE:small;FONT-FAMILY:&#39;Calibri&#39;;FONT-WEIGHT:normal;FONT-STYLE:normal;TEXT-DECORATION:none;DISPLAY:inline">
    <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>
    <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></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></div></div></div></div></blockquote></div>
<div> </div></div></div>
<p>
</p><hr>
_________________________________________________________________________<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>
<p></p></div></div></div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>