[sr-dev] invalid fr_timer AVP spec

Jan Janak jan at iptel.org
Mon Jun 1 18:01:53 CEST 2009


On 01-06 18:45, Juha Heinanen wrote:
> after i got rid of syntax errors (except while(1) warning), i'm getting
> this when sr tries to start:
> 
> Jun  1 18:38:38 localhost /usr/sbin/sip-router[9209]: : tm [t_funcs.c:388]: ERROR:tm:init_avp_params: invalid fr_timer AVP specs "$avp(i:705)"
> Jun  1 18:38:38 localhost /usr/sbin/sip-router[9209]: ERROR: tm [tm.c:772]: ERROR:tm:mod_init: failed to process AVP params
> 
> it comes from line
> 
> modparam("tm", "fr_timer_avp", "$avp(i:705)")
> 
> i tried also "$avp(705)".
> 
> the above used to work in k.  how to make it work in sr?

Try "i:705", these parameters of tm module do not parse AVP identifiers like
the rest of the code, they assume that the value of the parameter just plain
AVP name/identifier.

This is something we will have to address to make it consistent.

> strange thing is that the previous line
> 
> modparam("tm", "fr_inv_timer_avp", "$avp(i:704)")
> 
> is accepted.

This is because both parameters are processed processed at once from mod_init
and fr_timer_avp is processed first, regardless of its relative position in
the configuration file.

  Jan.



More information about the sr-dev mailing list