<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 02.09.2020 13:35, johan wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9bea3d63-75c6-50bd-1ae2-dda7be9ea7e2@democon.be"><br>
      I seem to get strange and incomprehensible results :
    </blockquote>
    <p><tt>Hi, johan!</tt></p>
    <p><tt>This behavior is clearly stated in the $var() documentation
        [1].  The idea is that the $var() variables are <b>super</b>-optimized,
        to the point where the OpenSIPS workers perform <b>no cleanup </b>of
        the previous state of their $var() variables when beginning to
        process a new SIP request.  This immediately explains why your
        $var(fU) contains the random value of "</tt><tt>+3246020570",
        despite the dp_translate(33757935187) produces "false" (it does
        not match against any dp rule).</tt></p>
    <p><tt>TL;DR: this is a feature, not a bug.  If you really need
        $var(fU) to be initialized, then do "$var(fU) = NULL;" before
        you use it.</tt></p>
    <p><tt>Best regards,<br>
      </tt></p>
    <p><tt>[1]: </tt><tt><a
          href="https://www.opensips.org/Documentation/Script-CoreVar-3-2#toc1">https://www.opensips.org/Documentation/Script-CoreVar-3-2#toc1</a></tt></p>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>

OpenSIPS Summit 2020 Distributed
  <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/events/Summit-2020Distributed">www.opensips.org/events/Summit-2020Distributed</a></pre>
  </body>
</html>