rzheng at gmail.com
Wed Sep 28 21:19:26 CEST 2005
Thanks both for the tips.
Besides timeout value, I also need to use avp_check with "and"
operator. The function complains about incompatible value if the avp
is a string value. It would be nice to convert the value automatically
and do the "and" operation.
On 9/28/05, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> Hi Richard,
> just as an add on - note that TM accepts the custom timeout values both
> as integer and string. So, for this particular case, you do not need to
> convert to value - just load it at auth time.
> also be sure to correlate the AVP names in tm and authdb.
> Daniel-Constantin Mierla wrote:
> > Hello,
> > On 09/28/05 11:18, Richard Z wrote:
> >> Hi,
> >> I am trying to use load_credentials modparam in auth_db to load some
> >> colums in the subscriber table. In mysql db table, what type should I
> >> use the columns? For example,
> >> modparam("auth_db", "load_credentials", "i:15=timeout")
> >> If I define timeout as varchar, it gets the value. If as int, it
> >> doesn't generate the avp.
> >> Is this supposed to be this way? Do I miss anything?
> > at this moment only string values can be loaded via load_credentials.
> > You can use avp_copy() to convert from string to integer afterwards.
> > Ability to load int values should be introduced in the future.
> > Daniel
> >> Thanks,
> >> Richard
> >> _______________________________________________
> >> Users mailing list
> >> Users at openser.org
> >> http://openser.org/cgi-bin/mailman/listinfo/users
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
More information about the Users