<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    OK, thanks for confirming with the docs, I was not sure about it
    anymore, although I wrote is_myself() function for config (too many
    functions to remember by heart, that's why I do open source, to
    check the code :-) ) -- knowing that works always with a sip
    address, I just wanted to point and try with sip uri in case is not
    working with address alone.<br>
    <br>
    It should not matter the version, there was no change to is_myself()
    in the recent releases....<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 25/01/16 09:32, Dmitri Savolainen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGYSiDj4mbz6vvnSpKj=SJAGZuTHXAUX8dv4QnzXg2iSrGwiYQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">according to docs it takes IP as well:
        <div><span class=""
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><em>uri</em></span><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"> -
            Valid SIP URI or IP address to check against the list of
            local IP addresses or domains.</span><br>
        </div>
        <div><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br>
          </span></div>
        <div style="text-align:justify"><font face="Helvetica, Arial"
            color="#000000"><span style="font-size:12px">In my instance
              it  works with domain only (version 4.2 checked)</span></font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-01-25 11:22 GMT+03:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
            <span class=""><br>
              On 22/01/16 17:10, Dirk Teurlings - SIGNET B.V. wrote:<br>
              > On 22-01-16 11:31, Daniel-Constantin Mierla wrote:<br>
              >> try with is_myself(<a class="moz-txt-link-rfc2396E" href="sip:$fU@fd">"sip:$fU@fd"</a>).<br>
              > Hi Daniel,<br>
              ><br>
              > Thanks for the quick response. Comparing the from_uri
              to myself should<br>
              > only compare IP or domain name correct? So wouldn't
              this be enough as a<br>
              > domain check?<br>
              ><br>
              > is_myself("$fd")<br>
            </span>I am not sure if it works with domain only, but
            should work with<br>
            <a class="moz-txt-link-freetext" href="sip:domain">sip:domain</a>, like is_myself(<a class="moz-txt-link-rfc2396E" href="sip:$fd">"sip:$fd"</a>) -- it might be that
            the function<br>
            requires a sip uri as aparameter, but indeed the user part
            doesn't<br>
            count, I provided the example more for showing how to get
            rid of<br>
            parameters from From header uri.<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <span class="im HOEnZb"><br>
              --<br>
              Daniel-Constantin Mierla<br>
              <a moz-do-not-send="true"
                href="http://twitter.com/#%21/miconda" rel="noreferrer"
                target="_blank">http://twitter.com/#!/miconda</a> - <a
                moz-do-not-send="true"
                href="http://www.linkedin.com/in/miconda"
                rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></a><br>
              Book: SIP Routing With Kamailio - <a
                moz-do-not-send="true" href="http://www.asipto.com"
                rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></a><br>
              <a moz-do-not-send="true" href="http://miconda.eu"
                rel="noreferrer" target="_blank">http://miconda.eu</a><br>
              <br>
              <br>
            </span>
            <div class="HOEnZb">
              <div class="h5">_______________________________________________<br>
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>Savolainen Dmitri</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>