[OpenSIPS-Users] Registrar with IP authentication - selecting variables from DB

Răzvan Crainea razvan at opensips.org
Tue Jan 17 03:32:40 EST 2017


That's weird. How did you check the value and you got 1842312...? I am 
asking because that does look like a -2, only converted to an unsigned 
representation, (unsigned int)-2 = 18446744073709551614). Or was it -1?
Can you control the data in the database and make sure you don't have 
that username when doing the query?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 01/17/2017 10:06 AM, maatohewetbi wrote:
> Razvan, I've found that this conditional doesn't work:
>
> if ($rc == -2)
> It turned out that $rc variable is never -2, although select query(select ip
> from address where context_info='$fU'", "$avp(ip)"), doesn't  contain any
> values. When I checked $rc variable its value was 1, and once it was
> something like 1842312...so very long digit, but it was never -2. It it
> possible that this value changes?
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605592.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list