Hello,
thanks for reporting. I will check and fix if any issue.
Cheers,
Daniel
On 12/10/07 12:57, Helmut Kuper wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I spent some time to help myself out with this problem. I found that
function "dbrow2avp()" in file "modules/avpops/avpops_impl.c" around
line 219 has maybe a bug.
It set script flags for loaded AVPs only for type AVPOPS_VAL_PVAR (this
means only for avp(name) spec e.g. $avp(i1:10))
For the other types (AVPOPS_VAL_NONE, AVPOPS_VAL_INT, AVPOPS_VAL_STR)
(means "i/I", "s/S", "a/A") the scriptflags are never set
after loading
AVPs from DB.
So just comment out or delete line 219 ->
"if(dbp->a.type==AVPOPS_VAL_PVAR)"
so that "db_flags |= dbp->a.u.sval.pvp.pvn.u.isname.type&0xff00;" is
always executed.
Dunno if this is the right place or hack to solve my problem cleanly,
but currently it works for me to do something like avp_db_load("$fu",
"i1") to load all integer AVPs with scriptflags=1 for party A and
avp_db_load("$ru", "i2") to load same avp ids für party B with
scriptflags=2.
regards
Helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFHXRuT4tZeNddg3dwRAgFRAJ9FcKcZjKj/w8LnUO9/0r+j2x5Y7ACdEOTO
YyUd2gpGe4RVhNcJdXXbX4A=
=25sA
-----END PGP SIGNATURE-----
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users