<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Did you try using instead
      api_reporting_hook instead ?  You really want to do your CDR
      logging in the CS_REPORTING state, not CS_HANGUP.<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Yossi Neiman

On 02/05/2015 08:29 PM, John Nash wrote:
</pre>
    </div>
    <blockquote
cite="mid:CAA4rGPyojcT6spwTJb0N8ckL3AQTN3Z90fJxskqXVOcS4iyMFQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>I am trying to insert CDR using a lua script.<br>
            </div>
          </div>
          <br>
           &lt;action application="export"
          data="nolocal:api_hangup_hook=luarun cdr2.lua  ${start_stamp}
          ${created_time} ${progress_time}  ${progress_media_time}
          ${answer_stamp} ${end_stamp} ${duration} ${billsec}....."<br>
          <br>
        </div>
        But when this executes many of the parameters passed to script
        as nil like billsec , How can I get all parameters related to
        CDR (Like other CDR modules)<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>