<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Andreas,<br>
      <br>
      To account both the UAC and UAS type request, you should also use
      the local route - to give you access (and accounting) for the
      outbound call legs generated by the B2B.<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 03/07/2017 02:48 PM, Andreas
      Bøckmann wrote:<br>
    </div>
    <blockquote
cite="mid:CAN1RbiCCVT+nSKG0BS+O8vCdSLM0edF0syL_T=s7ygBBz-pYeQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am trying to generate acc records for the marketing
          scenario example (B2BUA) and execute it as such:</div>
        <div><br>
        </div>
        <div>opensipsctl fifo b2b_trigger_scenario marketing
          <a class="moz-txt-link-abbreviated" href="mailto:sip:+12345@external.domain1">sip:+12345@external.domain1</a> <a class="moz-txt-link-abbreviated" href="mailto:sip:+23456@external.domain2">sip:+23456@external.domain2</a>
          <a class="moz-txt-link-abbreviated" href="mailto:sip:+23456@external.domain1">sip:+23456@external.domain1</a></div>
        <div><br>
        </div>
        <div>The only records I get in the database on the
          OpenSIPS-B2BUA is "BYE" records; without an initial INVITE so
          there is no duration etc.</div>
        <div><br>
        </div>
        <div>How do you properly handle accounting for the B2B-module;
          and in my specific case how do I generate records on UAC
          generated INVITE in OpenSIPS?</div>
        <div><br>
        </div>
        <div>
          <div>route[b2b_request] {</div>
          <div>   do_accounting("db");<br>
          </div>
        </div>
        <div>   #do_accounting("db|log", "cdr|missed", "acc");</div>
        <div>}</div>
        <div><br>
        </div>
        <div>//Andy</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <br>
  </body>
</html>