<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>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="ydp2c2d2970pl-c1">str2ip</span></span> in line 515 doesn't return a valid ip.</span><br></div></div></body></html>