[OpenSER-Users] when are AVPs in radius extra evaluated?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Mar 12 12:39:46 CET 2008


Hi Juha,

acc module generates the log on TMCB_RESPONSE_OUT TM callback - so,when 
TM sends out the 200 ok reply, which is after the on-reply route.

The question is  - have you enabled the "onreply_avp_mode" TM param?
    http://www.openser.org/docs/modules/1.3.x/tm.html#AEN304

Regards,
Bogdan

Juha Heinanen wrote:
> if i put in radius_extra "Some-Known-Attribute=$avp(s:bar)" and
> in onreply_route
>
> 	if (is_method("INVITE") && t_check_status("200")) {
> 		xlog("L_INFO", "Setting <s:bar> to <test>\n");
> 		$avp(s:bar) = "test";
> 	};
>
> i do not get Some-Known-Attribute = "test" to accounting Start request
> although i do get 
>
> Mar 12 07:20:32 rautu /usr/sbin/openser[7440]: Setting <s:bar> to <test>
>
> in syslog.
>
> i didn't find from acc/README information on when the AVPs in
> radius_extra are evaluated.  accounting Start is sent out AFTER final
> response (200 ok) had been received, because it contains
>
> SIP-Response-Code = 200
>
> why doesn't setting $avp(s:bar) in onreply_route cause
> Some-Known-Attribute to be included in accounting start record?
>
> -- juha
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>   





More information about the Users mailing list