[OpenSIPS-Devel] "load_credentials" behaves wrongly when setting NULL the column

Iñaki Baz Castillo ibc at aliax.net
Mon Oct 19 09:32:16 CEST 2009


El Lunes, 19 de Octubre de 2009, Bogdan-Andrei Iancu escribió:
> Hi Iñaki,
> 
> Iñaki Baz Castillo wrote:
> > - Later I set it to NULL. But when the users authenticates the AVP is set
> > to "1234" !!!!!!
> 
> So, this does not happen all the time, but only from time to time you
> say, right?

Yes, and only wehn setting the MySQL field to NULL.

 
> Are you sure the AVP is not already set before the auth part?

Sure.


> Try doing
> avp_delete("$avp(AVP_USER_PREFIX)/g"); just before auth part.
> 
> If still bogus, maybe a provide you with a patch to print the loaded
> values, just to see what if the problem is because of loading or setting
> the AVP.

ok, I'll try. thanks.



-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Devel mailing list