<html><head></head><body><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 <users@lists.opensips.org> 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">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div>
                </div>
            </div></div></body></html>