<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Pasan,<br>
      <br>
      It should be fine if $tu would translate to NULL. The script
      handles this case. But I'm afraid you have something else there,
      like another deeper error that prevents the $tu variable to be
      evaluated.<br>
      <br>
      Do you see any other errors before the mentioned ones ? what is
      the type of route where you do the test ?<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>
OpenSIPS Bootcamp 2018
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
    <div class="moz-cite-prefix">On 11/13/2018 10:56 AM, Pasan Meemaduma
      via Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1506752889.1453845.1542099402376@mail.yahoo.com">
      <div class="ydp1ea07ddayahoo-style-wrap"
        style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:16px;">
        <div>Hey,</div>
        <div><br>
        </div>
        <div>Anyone have a suggestion for this?<br>
        </div>
        <div><br>
        </div>
      </div>
      <div id="yahoo_quoted_2106585655" class="yahoo_quoted">
        <div style="font-family:'Helvetica Neue', Helvetica, Arial,
          sans-serif;font-size:13px;color:#26282a;">
          <div> On Thursday, 8 November 2018, 8:09:50 AM GMT+5:30, Pasan
            Meemaduma <a class="moz-txt-link-rfc2396E" href="mailto:pasandev@ymail.com"><pasandev@ymail.com></a> wrote: </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div id="yiv2949630680">
              <div>
                <div class="yiv2949630680ydp12152f82yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:16px;">Hi Guys,</div>
                <div class="yiv2949630680ydp12152f82yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:16px;"><br>
                </div>
                <div class="yiv2949630680ydp12152f82yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:16px;">I have a check for NULL
                  for $tu var in the script, But when the value is
                  missing I'm getting the following error.</div>
                <div class="yiv2949630680ydp12152f82yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:16px;"><br>
                </div>
                <div class="yiv2949630680ydp12152f82yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:16px;"><span>ERROR:core:comp_scriptvar:
                    cannot get left var value<br>
                    <br>
                  </span>
                  <div><span>WARNING:core:do_action: error in expression
                      at /etc/opensips/opensips.cfg:806</span></div>
                  <div><span><br>
                    </span></div>
                  <div><span>and line 806 contains following.</span></div>
                  <div><span><br>
                    </span></div>
                  <div><span><span>    if ( $tu != NULL ) {<br>
                                remove("location","$tu");<br>
                            }<br>
                        <br>
                      </span></span>
                    <div><span>any suggestion on how to test for NULL
                        values without getting above error. I'm using
                        opensips 2.3.5</span></div>
                    <div><span><br>
                      </span></div>
                    <div><span></span><br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </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>