[Users] Extra accounting with additional header

Rodrigo P. Telles telles-listas at devel.it
Thu Jul 27 18:06:42 CEST 2006


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




More information about the Users mailing list