<div dir="ltr"><div>Hi Daniel,</div><div><br></div><div>Thank you, good tip.<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 11, 2021 at 2:54 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>You should also add {<a href="http://s.int" target="_blank">s.int</a>} if you want to compare with an
      integer value -- there is some auto-conversion, but it is better
      to be explicit.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 11.03.21 12:53, Jurijs Ivolga wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>This seems to work for me:</div>
        <div><br>
        </div>
        <div>if ($(hdr(X-myheader){s.trim})==0) {<br>
          ......<br>
          };</div>
        <div><br>
        </div>
        <div>Seems in the body I got "0 " and maybe because of this <span><span>automatic
              string to int conversion didn't work.</span></span>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr">
              <div dir="ltr">Jurijs<br>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Mar 11, 2021 at 1:33
          PM Jurijs Ivolga <<a href="mailto:jurijs.ivolga@gmail.com" target="_blank">jurijs.ivolga@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div>Hi,</div>
            <div><br>
            </div>
            <div>I'm running Kamailio 5.3.5</div>
            <div><br>
            </div>
            <div>I have following header "X-myheader: 0"</div>
            <div><br>
            </div>
            <div>Nevertheless it seems this is not working for me:<br>
            </div>
            <div><br>
            </div>
            <div>if ($hdr(X-myheader)==0) {<br>
              .....<br>
               };</div>
            <div><br>
            </div>
            <div>What I'm doing wrong?<br>
            </div>
            <div><br>
            </div>
            <div>
              <div dir="ltr">
                <div dir="ltr">Jurijs<br>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a></pre>
  </div>

</blockquote></div>