Hi,
Richard wrote:
Hi,
I have a question about the function avp_db_load(source, name) in avpops.
Can the first parameter source be any avp variable? For example, after
lookup, I want to load some user preference based on canonical RURI saved
earlier in an avp.
Thanks,
Richard
yes, you can do this. If you specify as first parameter an avp alias,
its value will be used
as UUID. (please see
http://www.voice-system.ro/docs/avpops/ar01s04.html)
So, you can do something like:
modparam("avpops","avp_aliases","canonical_uri=i:34")
.
.
avp_write("$ruri","$canonical_uri");
.
.
avp_load("$canonical_uri" , "....."); # this will load avp which have
as
UUID the canonical uri
.
.
for syntax details see
http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_db_load
Regards,
Ramona