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