<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Hi Pasan,</tt></p>
    <p><tt>Yes, if you could move it over to GitHub [1], that would be
        great. Thanks!<br>
      </tt></p>
    <p><tt>[1]: <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues">https://github.com/OpenSIPS/opensips/issues</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 04.04.2018 13:29, Pasan Meemaduma
      via Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:732863507.1449735.1522837777560@mail.yahoo.com">
      <div style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:16px;">
        <div>Hi Guys,</div>
        <div><br>
        </div>
        <div>Should I open up a bug request for this ?<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div id="yahoo_quoted_2903066138" class="yahoo_quoted">
          <div style="font-family:'Helvetica Neue', Helvetica, Arial,
            sans-serif;font-size:13px;color:#26282a;">
            <div> On Tuesday, April 3, 2018, 2:33:34 PM GMT+5:30, Pasan
              Meemaduma via Users <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>
              wrote: </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>
              <div id="yiv3802855194">
                <div>
                  <div style="font-family:Helvetica Neue, Helvetica,
                    Arial, sans-serif;font-size:16px;">
                    <div>Hi Guys,</div>
                    <div><br>
                    </div>
                    <div>I'm testing ipv6 on opensips 2.3. and I'm using
                      the following script function to findout if the
                      requesting ip is already registered with that ip.</div>
                    <div>But the function is failing with following
                      error message.</div>
                    <div><br>
                    </div>
                    <div>script function call</div>
                    <div><span>is_ip_registered("location","$var(aor)","$si"));</span></div>
                    <div><span><br>
                      </span><br>
                    </div>
                    <div>error message from logs.<br>
                    </div>
                    <div><span><br>
                      </span></div>
                    <div><span>ERROR:permissions:check_addr_6: invalid
                        ip set <24xx:xxx:0:1:x000:0:0:2></span></div>
                    <div><br>
                    </div>
                    <div>There's an AOR already with that IP</div>
                    <div><br>
                    </div>
                    <div><span>0 [ 3/04 18:53:29] root@:/root>>
                        opensipsctl ul show<br>
                        Domain:: location table=512 records=1<br>
                                AOR:: 0xxxx<br>
                                        Contact:: sip: <span><span>0xxxx</span></span>@[24xx:xxx:0:1:x000::2];line=180c0d2da1b3e81
                        Q=<br>
                                                ContactID::
                        3275524303981917232<br>
                                                Expires:: 3495<br>
                                                Callid:: 490179714<br>
                                                Cseq:: 2<br>
                                                User-agent::
                        Linphone/3.6.1 (eXosip2/4.1.0)<br>
                                                Received::
                        sip:[2400:xxx:0:1:x000:0:0:2]:5060<br>
                                                State:: CS_SYNC<br>
                                                Flags:: 0<br>
                                                Cflags:: PING NAT<br>
                                                Socket::
                        udp:[24xx:xx0:1D:F0:0:0:1:88]:5060<br>
                                                Methods:: 4294967295<br>
                        <br>
                      </span></div>
                    <div>It appears to be failing at <span>/modules/permissions/address.c
                        line 517 . looks like <span><span
                            class="yiv3802855194ydp2c2d2970pl-c1">str2ip</span></span>
                        in line 515 doesn't return a valid ip.</span><br>
                    </div>
                  </div>
                </div>
              </div>
              _______________________________________________<br>
              Users mailing list<br>
              <a ymailto="mailto:Users@lists.opensips.org"
                href="mailto:Users@lists.opensips.org"
                moz-do-not-send="true">Users@lists.opensips.org</a><br>
              <a
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            </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>