Re: [OpenSIPS-Users] ipv6 address check

2018-04-11 Thread Pasan Meemaduma via Users
Hi Bogdan, Thanks for the fix. Its all good, I have tested it against both v4 and v6. I have comment it on the commit. On Friday, April 6, 2018, 9:43:32 PM GMT+5:30, Bogdan-Andrei Iancu wrote: Hi Pasan, Could you please see this fix:    

Re: [OpenSIPS-Users] ipv6 address check

2018-04-06 Thread Bogdan-Andrei Iancu
Hi Pasan, Could you please see this fix: https://github.com/OpenSIPS/opensips/commit/dc6fa00e6c7d25f296d25b727c1074a5abefdf5d And test it to see if properly works for IPv6 and 4 Thanks and regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com

Re: [OpenSIPS-Users] ipv6 address check

2018-04-06 Thread Pasan Meemaduma via Users
Yup, I had a similar issue when I wanted to compare ip in Via header against source ip at the script level, and If I just compare them, its a string comparison and fails blatantly. But ip transformation functions came handy :) I used used them to compare them without any hassle. Ex: previously

Re: [OpenSIPS-Users] ipv6 address check

2018-04-06 Thread Bogdan-Andrei Iancu
Hi Pasan, Thanks for the info. It is exactly what I suspected - the check between the IP extracted from contact / received field and the provided IP is done as strings and the enclosing of IPv6 makes the comp to fail. I guess this needs to be rework to do ip comp, not string comp. Best

Re: [OpenSIPS-Users] ipv6 address check

2018-04-05 Thread Pasan Meemaduma via Users
Hi Bogdan, I have sent the requested details in pm. Thank you. On Thursday, April 5, 2018, 5:33:50 PM GMT+5:30, Bogdan-Andrei Iancu wrote: Pasan, Please print via xlog the $si just before doing the is_ip_registered() check. Also, do an "opensipsctl ul show"

Re: [OpenSIPS-Users] ipv6 address check

2018-04-05 Thread Bogdan-Andrei Iancu
Pasan, Please print via xlog the $si just before doing the is_ip_registered() check. Also, do an "opensipsctl ul show" after the registration and before the test call. I want to see the values that are internally compared. Thanks, Bogdan-Andrei Iancu OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] ipv6 address check

2018-04-05 Thread Pasan Meemaduma via Users
Hi Bogdan, I have log_level set at 9. I get no output just the xlog line that is right after is_ip_registered func.When the account is not registered (aor is not in ul) I get below, DBG:registrar:is_ip_registered: no contact found for aor=<0xx0x0x0xx> I'm stuck at why it doesn't give any

Re: [OpenSIPS-Users] ipv6 address check

2018-04-05 Thread Bogdan-Andrei Iancu
Hi Pasan, The fix_actions log is only at the startup, before opensips actually starts to handle traffic. Not related I would say. Now, if you run in debug level (set log_level = 4), do you see any output when the is_ip_registered() is triggered ? Regards, Bogdan-Andrei Iancu OpenSIPS

Re: [OpenSIPS-Users] ipv6 address check

2018-04-05 Thread Pasan Meemaduma via Users
Hi Guys, Sorry I had to come back to this thread as the issue i reported was for a different function and problem with is_ip_registered func still exists. on Further investigating I found below DBG:core:fix_actions: fixing is_ip_registered, /etc/opensips/opensips.cfg:970 and following is

Re: [OpenSIPS-Users] ipv6 address check

2018-04-04 Thread Pasan Meemaduma via Users
Thanks Liviu, I have submitted a bug request On Wednesday, April 4, 2018, 4:07:45 PM GMT+5:30, Liviu Chircu wrote: Hi Pasan, Yes, if you could move it over to GitHub [1], that would be great. Thanks! [1]: https://github.com/OpenSIPS/opensips/issues

Re: [OpenSIPS-Users] ipv6 address check

2018-04-04 Thread Liviu Chircu
Hi Pasan, Yes, if you could move it over to GitHub [1], that would be great. Thanks! [1]: https://github.com/OpenSIPS/opensips/issues Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 04.04.2018 13:29, Pasan Meemaduma via Users wrote: Hi Guys, Should I open up a bug

Re: [OpenSIPS-Users] ipv6 address check

2018-04-04 Thread Pasan Meemaduma via Users
Hi Guys, Should I open up a bug request for this ? On Tuesday, April 3, 2018, 2:33:34 PM GMT+5:30, Pasan Meemaduma via Users wrote: Hi Guys, I'm testing ipv6 on opensips 2.3. and I'm using the following script function to findout if the requesting ip is