[sr-dev] Implementation question / usrloc / registrar
Klaus Darilion
klaus.mailinglists at pernau.at
Tue Feb 8 23:17:10 CET 2011
Carsten Bock wrote:
> In order to save a param into usrloc:
>
> $test = "Something";
> setvarflag($test, "name_of_avp_flag");
> save("location");
>
> Restore the parameters:
> lookup("location");
> read_reg_avps("location", "$fU")
> (where $fU is user, for which the parameters will be loaded. It will
> then take the modified URI of the current message, to get the contact,
> for which the parameters will be loaded).
Does this require additional database lookups on write and read (DB-mode 3)?
I wonder why the AVP need to be loaded explicitly? IMO either the
stored/restored AVPs should be configured as module parameter, or if
done dynamically, all the stored AVPs should be restored automatically.
regards
klaus
More information about the sr-dev
mailing list