<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Hi Dragomir,</tt></p>
    <p><tt>You can either set a $dlg_val [1] or a dialog flag [2] during
        the initial INVITE,<br>
        then read it during mid-dialog requests.  Be careful with
        $dlg_val: it converts<br>
        any integers to strings, so make sure that your comparison
        syntax is accurate!<br>
      </tt></p>
    <p><tt>Best regards,<br>
      </tt></p>
    <p><tt>[1]: </tt><tt><a
href="https://opensips.org/html/docs/modules/3.1.x/dialog.html#pv_dlg_val">https://opensips.org/html/docs/modules/3.1.x/dialog.html#pv_dlg_val</a><br>
        [2]: </tt><tt><a
href="https://opensips.org/html/docs/modules/3.1.x/dialog.html#func_set_dlg_flag">https://opensips.org/html/docs/modules/3.1.x/dialog.html#func_set_dlg_flag</a></tt><br>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS 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 02.09.2019 19:03, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADzurO+QTjNDxT14Kz35+6aJxsMVEcaFwexFpXWtcYAZWtZWiQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>What I do to check flag after has_totag() ?</div>
        <div><br>
        </div>
        <div>Here is example:</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>route {<br>
               ....<br>
               if (has_totag()) {<br>
                   .....<br>
                   if ( isflagset(BLA_BLA) ) { <br>
                      xlog("L_ERR", "Flag is active \n");<br>
                   };<br>
                   ....<br>
               }<br>
          <br>
                if ( is_method("INVITE") ) {<br>
                   ....<br>
                    setflag(BLA_BLA);<br>
                    ....<br>
                 }<br>
          ....<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Dragomir</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></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>
  </body>
</html>