<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>yeah I can do that, although I've never used pastebin, do I need to 
register to use that?</DIV>
<DIV 
style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=msc@freeswitch.org 
href="mailto:msc@freeswitch.org">Michael Collins</A> </DIV>
<DIV><B>Sent:</B> Sunday, August 04, 2013 12:50 AM</DIV>
<DIV><B>To:</B> <A title=freeswitch-users@lists.freeswitch.org 
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A> 
</DIV>
<DIV><B>Subject:</B> Re: [Freeswitch-users] Call at once and 
XML-CDR</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
<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="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: 'Calibri'">
  <DIV>Hi,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks for your reply.</DIV>
  <DIV>&nbsp;</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>&nbsp;</DIV>
  <DIV>Am I making sense?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Stuart </DIV>
  <DIV 
  style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
  <DIV style="FONT: 10pt tahoma">
  <DIV>&nbsp;</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>&nbsp;</DIV></DIV>
  <DIV 
  style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline"><FONT 
  face=verdana,sans-serif>Another note&nbsp; 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 size=1 
  face="verdana, sans-serif"><B><BR></B></FONT></DIV>
  <DIV><FONT color=#cc6600 size=1 
  face="verdana, sans-serif"><B></B></FONT>&nbsp;</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: 'Calibri'">
      <DIV>Hi Avi,</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Thanks for your reply.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Yeah I'm sure, I'm using ESL and if I dial a single number it 
      performs as expected, it’s literally only when I'm making 2 or more calls 
      at once it happens.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Cheers,</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>Stuart</DIV>
      <DIV 
      style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
      <DIV style="FONT: 10pt tahoma">
      <DIV>&nbsp;</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>&nbsp;</DIV></DIV>
      <DIV 
      style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline">
      <DIV>
      <DIV>
      <P>Are you sure these aren'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, "Stuart Mills" &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: 'Calibri'">
        <DIV>Hi,</DIV>
        <DIV>&nbsp;</DIV>
        <DIV>Got a question regarding call at once combined with xml-cdr 
        logging.</DIV>
        <DIV>&nbsp;</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>&nbsp;</DIV>
        <DIV>Is this by design or a bug in the xml-cdr logging?</DIV>
        <DIV>&nbsp;</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>&nbsp;</DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
  <DIV>&nbsp;</DIV></DIV></DIV>
  <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></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>
<P>
<HR>
_________________________________________________________________________<BR>Professional 
FreeSWITCH Consulting 
Services:<BR>consulting@freeswitch.org<BR>http://www.freeswitchsolutions.com<BR><BR>FreeSWITCH-powered 
IP PBX: The CudaTel Communication 
Server<BR>http://www.cudatel.com<BR><BR>Official FreeSWITCH 
Sites<BR>http://www.freeswitch.org<BR>http://wiki.freeswitch.org<BR>http://www.cluecon.com<BR><BR>FreeSWITCH-users 
mailing 
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></DIV></DIV></DIV></BODY></HTML>