[Users] Extra accounting with additional header

Klaus Darilion klaus.mailinglists at pernau.at
Thu Jul 27 19:04:47 CEST 2006


Hi! MAybe the extra accounting of headers does not work on newly added 
headers. Try to account an AVP instead of the header and copy the header 
value into the AVP too.

regards
klaus

Rodrigo P. Telles wrote:
> Hi Folks,
> 
> I'm trying to do radius extra accounting of an additional header, but it doesn't work.
> What I did:
> 
> -----------------------------------------------------------------------------------------------------
> modparam("acc", "radius_flag", 1)
> modparam("acc", "radius_extra", "Sip-Call-Type=$hdr(Sip-Call-Type[*])")
> 
> route {
> 	append_hf("Sip-Call-Type: outbound.\r\n");
> 	setflag(1);
> 	....
> }
> -----------------------------------------------------------------------------------------------------
> On radius accouting it prints:
> 
> Sip-Call-Type = ""
> 
> But if I change the cfg to:
> -----------------------------------------------------------------------------------------------------
> modparam("acc", "radius_flag", 1)
> modparam("acc", "radius_extra", "Sip-Call-Type=$hdr(User-Agent[*])")
> 
> route {
> 	#append_hf("Sip-Call-Type: outbound.\r\n");
> 	setflag(1);
> 	....
> }
> -----------------------------------------------------------------------------------------------------
> On radius accouting it prints:
> 
> Sip-Call-Type = "Grandstream BT100 1.0.6.7"
> 
> So the extra accounting is working but not for additional/personalized headers.
> Do I missing some thing here?
> 
> Thanks in advance.
> 
> Telles
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list