<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Stas,<br>
      <br>
      I think the reply_route is triggered (by TM module) before running
      the TM callbacks used by dialog module to do the status update :(<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 28.01.2026 22:23, Stas Kobzar wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAB3fea=vJ46QVm8Xj=prYODM=Lv1sebEZDvvoUmkC7T5psT6Fg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>Variable <i>$DLG_status</i> returns "1" in the response
          route after provisional responses are received. </div>
        <div>Here is extraction of the logs:</div>
        <div><span style="font-family:monospace">//-------------------------------------------------------------</span></div>
        <div><font face="monospace">NOTICE:=====> incoming reply
            T_reply_code=100, DLG_status=1<br>
            NOTICE:=====> incoming reply T_reply_code=180,
            DLG_status=1<br>
            NOTICE:=====> incoming reply T_reply_code=200,
            DLG_status=2</font></div>
        <div><span style="font-family:monospace">//-------------------------------------------------------------</span></div>
        <div><br>
        </div>
        <div>Reply route code with log: </div>
        <div><font face="monospace">//-------------------------------------------------------------</font></div>
        <div><font face="monospace">onreply_route[main_reply] {<br>
                xlog("=====> incoming reply
            T_reply_code=$T_reply_code, DLG_status=$DLG_status\n");<br>
            }</font></div>
        <div><span style="font-family:monospace">//-------------------------------------------------------------</span></div>
        <div><br>
        </div>
        <div>Doc says:</div>
        <div>1 - Dialog unconfirmed (created but no reply received at
          all)</div>
        <div><br>
        </div>
        <div>So, I expect to see "DLG_status=2" when first 100 response
          received (Dialog in early state).</div>
        <div><br>
        </div>
        <div>The script is very simple and generated with "make
          menuconfig" (please, see attached)</div>
        <div><br>
        </div>
        <div>I have tried with ver 3.4 and 3.6</div>
        <div>My question: is it a bug or am I missing some
          configuration?</div>
        <div><br>
        </div>
        <div>Thank you!</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-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>