<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Akib,<br>
    <br>
    In order to get the call duration, you will have to use the new cdr
    accounting, found in both OpenSIPS 1.7 and trunk.<br>
    To do that, you will only have to set the 'cdr_flag' on all the
    initial Invites and the duration will be automatically inserted into
    the database. Therefore the extra field should no longer be present
    into the db_extra list.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer</pre>
    <br>
    On 09/16/2011 05:56 PM, Akib Sayyed wrote:
    <blockquote
cite="mid:CAMG-S93m_b6Oga8tKYsZVikqTCF589drKfUyNY6aox4knYGiVw@mail.gmail.com"
      type="cite">hello guys please tell me what parameter to add in
      modparam of acc to get duration <br>
      modparam("acc", "db_extra","caller_id=$fu; callee_id=$tu; \<br>
                                              rpid=$avp(s:rpid); \<br>
                                              duration=$avp(s:duration)\<br>
                                              src_ip=$avp(s:source_ip);
      \<br>
                                             
      src_port=$avp(s:source_port); \<br>
                                             
      sip_proxy_ip=$avp(s:sip_proxy_ip); \<br>
                                             
      user_agent=$hdr(user-agent); \<br>
                                              contact=$hdr(contact)<br>
                                              ") <br>
      <br>
      is it correct<br clear="all">
      <br>
      -- <br>
      Akib Sayyed<br>
      Matrix-Shell<br>
      <a moz-do-not-send="true" href="mailto:akibsayyed@gmail.com"
        target="_blank">akibsayyed@gmail.com</a><br>
      <a moz-do-not-send="true" href="mailto:akibsayyed@matrixshell.com"
        target="_blank">akibsayyed@matrixshell.com</a><br>
      Mob:- +91-966-514-2243<br>
      <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>