[Users] Extra accounting with additional header
Rodrigo P. Telles
telles-listas at devel.it
Thu Jul 27 20:12:26 CEST 2006
Hi Klaus,
Thanks for your advice, works like a charm!
Telles
Klaus Darilion wrote:
> 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
More information about the Users
mailing list