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

maatohewetbi trance_maniak at o2.pl
Tue Jan 17 04:03:14 EST 2017

I've just did it like this:

and on Friday I got
so You were right that it was unsigned int. But now if I want to read
xlog("$rc") it has 1 value. And my table is empty. 
Now I've changed script and it looks:

if ($avp(s:ip) == null ) {
     xlog("no results found in DB");

and it is ok, and works like it should, because $avp(s:ip) is NULL when
there's no records found. But I'm afraid it's not the best solution. What do
You think?

View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Registrar-with-IP-authentication-selecting-variables-from-DB-tp7605514p7605600.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

More information about the Users mailing list