<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Dragomir,<br>
      <br>
      Please move the dialog creation and setflag() before the async
      jump. Let's see if this does the trick.<br>
      <br>
      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></pre>
    <div class="moz-cite-prefix">On 18.02.2016 10:21, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote
cite="mid:CADzurO+2KB_0mqVxH4a49SdFChwEyrPAz8LCWUaGVjfFr79+AQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I user latest Opensips 2.2 from git.</div>
        <div><br>
        </div>
        <div>When use Async radius Opensips not generate CDR.</div>
        <div>Here is example:<br>
          <br>
          -----------------------<br>
          <div>route {</div>
          <div><span class="" style="white-space:pre">        </span>......</div>
          <div><span class="" style="white-space:pre">        </span>if (
            is_method("INVITE") ) {</div>
          <div><span class="" style="white-space:pre">                </span>.....</div>
          <div><span class="" style="white-space:pre">                </span>async(
            radius_send_auth("invite","invrespons"), return_invite );</div>
          <div><span class="" style="white-space:pre">        </span>}</div>
          <div><br>
          </div>
          <div>}</div>
          <div><br>
          </div>
          <div>route[return_invite] {</div>
          <div><span class="" style="white-space:pre">        </span>.....</div>
          <div><span class="" style="white-space:pre">        </span>create_dialog("PB");</div>
          <div><span class="" style="white-space:pre">        </span>setflag(MAKE_CDR);</div>
          <div><span class="" style="white-space:pre">        </span>.....</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>----------------------</div>
        <div><br>
        </div>
        <div>when change :<br>
          <span class="" style="white-space:pre">                </span>async(
          radius_send_auth("invite","invrespons"), return_invite );<br>
        </div>
        <div>with </div>
        <div>
          <div><span class="" style="white-space:pre">                </span>radius_send_auth("invite","invrespons");</div>
          <div><span class="" style="white-space:pre">                </span>route(return_invite);</div>
        </div>
        <div>all working fine.</div>
        <div><br>
        </div>
        <div>I will open issues in github.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Dragomir</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </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>