[Users] $avp(s:rpid) and another question...

Daniel-Constantin Mierla daniel at voice-system.ro
Thu Mar 8 22:05:13 CET 2007


Hello,

On 03/08/07 22:39, Helge Waastad wrote:
> Hi,
> two small questions this time :-)
>
> 1.) From 1.2.x modules dok, default rpid_avp for auth is:
> modparam("auth", "rpid_avp", "$avp(s:rpid)")
>
> However setting this gives a failure:
>
>  parse_avp_name: error - use type (s: or i:) in front of avp name 
> Mar  8 21:33:46 proxy-02 /usr/sbin/openser[16128]:
> ERROR:auth:init_rpid_avp: invalid rpid AVP specs "$avp(s:rpid)" 
> Mar  8 21:33:46 proxy-02 /usr/sbin/openser[16128]: ERROR:auth:mod_init:
> failed to process rpid AVPs 
> Mar  8 21:33:46 proxy-02 /usr/sbin/openser[16128]: init_mod(): Error
> while initializing module auth
>
> The "old" way still works: modparam("auth","rpid_avp","s:rpid")
>   
just tested again on my laptop, and works ok with:

modparam("auth", "rpid_avp", "$avp(s:rpid)")

Have you got the latest SVN version? Please send "openser -V" to see the 
SVN revision, if you compiled from sources.

> 2.)
> Earlier I had 
> modparam("tm","fr_inv_timer_avp","s:inv_timeout")
>
> and:
> avp_db_load("$tu",s:inv_timeout) [inv_timeout attribute in database]
>
> What would be the equivalent with the new avp configuration?
>   
in 1.2.0 is:

modparam("tm","fr_inv_timer_avp","$avp(s:inv_timeout)")

avp_db_load("$tu","$avp(s:inv_timeout)");

Cheers,
Daniel
 


> br hw
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list