The XML CDR contains a history of the call, which might be more suited to you. One CDR but it&#39;ll contain everything you need. You can then choose to create 2 DB records if that&#39;s what you wish to do.<br><br>Otherwise write all relevant variables to a CDR (if you&#39;re overwriting one in the dialplan set it to another variable first otherwise it won&#39;t be available any more when mod_cdr_csv writes it).<br>

<br>-Steve<br><br><br><div class="gmail_quote">On 19 May 2011 08:54, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
        It is the way I try to do manual redirect. May be I do it wrong,
    so may be somebody tell me another way. So... I use only A-leg
    accounting records. One of my users set the redirect from its phone
    to cellular phone (PAP2T device). So, when call is arrived from PBX<br>
    and redirected by user, in A-leg CDR record I see only _original_
    information: pbx_caller_id_number and local_destination_number. And
    this is wrong for billing. With help of CDR I want to emulate two
    calls scenario:<br>
    First CDR record - PBX -&gt; user number<br>
    Second CDR record - user number -&gt; redirected number<div><div></div><div class="h5"><br>
     <br>
    <blockquote type="cite">I don&#39;t understand why you would need this.<br>
      <br>
      What would the difference between the variables be?<br>
      <br>
      -Steve<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On 19 May 2011 04:12, Boris Kovalenko <span dir="ltr">&lt;<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hello!<br>
          <br>
              I know :) But with one call I get only one CDR record for
          A leg and<br>
          one record for B leg. I need to get 2 records for A leg with
          two<br>
          different sets of variables. Is this possible?<br>
          <div>
            <div><br>
              &gt; There&#39;s no &#39;standard&#39; CDR. The XML CDR will contain
              everything,<br>
              &gt; including all variables. If you mean the default
              mod_cdr_csv, you can<br>
              &gt; customise which variables are saved in its
              configuration.<br>
              &gt;<br>
              &gt; -Steve<br>
              &gt;<br>
              &gt;<br>
              &gt;<br>
              &gt; On 18 May 2011 09:34, Boris Kovalenko&lt;<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>&gt;
               wrote:<br>
              &gt;&gt; Hello!<br>
              &gt;&gt;<br>
              &gt;&gt; I don&#39;t know what is asterisk fork_cdr :) I want
              to bridge two calls and<br>
              &gt;&gt; get 2 cdr records for A leg: one the standard
              cdr, and another with<br>
              &gt;&gt; variables I need.<br>
              &gt;&gt;<br>
              &gt;&gt;&gt; I suppose he&#39;s asking for asterisk analog of
              fork_cdr<br>
              &gt;&gt;&gt;<br>
              &gt;&gt;&gt; 2011/5/17 Michael Collins&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;:<br>
              &gt;&gt;&gt;&gt; You want your Lua script to *send* an
              event? It most certainly can fire<br>
              &gt;&gt;&gt;&gt; events:<br>
              &gt;&gt;&gt;&gt; <a href="http://wiki.freeswitch.org/wiki/Lua#Sending_an_Event" target="_blank">http://wiki.freeswitch.org/wiki/Lua#Sending_an_Event</a><br>
              &gt;&gt;&gt;&gt; I suppose the question is: what do you
              want to have happen when you fire an<br>
              &gt;&gt;&gt;&gt; event? What will receive this event?<br>
              &gt;&gt;&gt;&gt; -MC<br>
              &gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt; On Sat, May 14, 2011 at 12:59 AM, Boris
              Kovalenko&lt;<a href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>&gt;  
               wrote:<br>
              &gt;&gt;&gt;&gt;&gt; Hello!<br>
              &gt;&gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;&gt;       May I fire custom cdr event for
              a LUA script? I&#39;ve read<br>
              &gt;&gt;&gt;&gt;&gt; <a href="http://wiki.freeswitch.org/wiki/Event_list" target="_blank">http://wiki.freeswitch.org/wiki/Event_list</a>
              but haven&#39;t found cdr events.<br>
              &gt;&gt;&gt;&gt;&gt; Would You please point me to proper
              documentation or give an example?<br>
              &gt;&gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;&gt; --<br>
              &gt;&gt;&gt;&gt;&gt; Regards,<br>
              &gt;&gt;&gt;&gt;&gt; Boris<br>
              &gt;&gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;&gt;
              _______________________________________________<br>
              &gt;&gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
              &gt;&gt;&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              &gt;&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              &gt;&gt;&gt;&gt;&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;&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              &gt;&gt;&gt;&gt;
              _______________________________________________<br>
              &gt;&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
              &gt;&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              &gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              &gt;&gt;&gt;&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;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              &gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;
              _______________________________________________<br>
              &gt;&gt;&gt; FreeSWITCH-users mailing list<br>
              &gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              &gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              &gt;&gt;&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;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              &gt;&gt;<br>
              &gt;&gt; --<br>
              &gt;&gt; С уважением,<br>
              &gt;&gt;    Борис Коваленко<br>
              &gt;&gt;    ЗАО &quot;Тагнет&quot;<br>
              &gt;&gt;    тел. +7 (3435) 230001<br>
              &gt;&gt;    факс +7 (3435) 230005<br>
              &gt;&gt;<br>
              &gt;&gt;<br>
              &gt;&gt; _______________________________________________<br>
              &gt;&gt; FreeSWITCH-users mailing list<br>
              &gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              &gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              &gt;&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;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              &gt;&gt;<br>
              &gt; _______________________________________________<br>
              &gt; FreeSWITCH-users mailing list<br>
              &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
              --<br>
              С уважением,<br>
                Борис Коваленко<br>
                ЗАО &quot;Тагнет&quot;<br>
                тел. +7 (3435) 230001<br>
                факс +7 (3435) 230005<br>
              <br>
              <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>
        </blockquote>
      </div>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
С уважением,
  Борис Коваленко
  ЗАО &quot;Тагнет&quot;
  тел. +7 (3435) 230001
  факс +7 (3435) 230005
</pre>
  </div></div></div>

<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><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>