Hello Juha
thanks for answer. Yes, my server is proxy. Situation is like this:
UserA@domain ------> UserB@my_domain (redirect) --------> UserC@another_domain
I have to bill call to another_domain to UserB.
Regards,
Efelin
2010/10/27 Juha Heinanen jh@tutpro.com
Efelin Novak writes:
I have a problem with setting billing party in my radius messages. My accounting is done by CDRTool via radius messages to radius server. The thing I don`t know is how to set billing party variable (by default $avp(s:billing_party) with reliable value. I can try adding Diversion
header
and fill the variable with it, but can I trust the Diversion header? When UAC sets redirect(302) and Invite comes, he replies 302 and Kamailio
passes
this message to origin. However is it possible to change Diversion header
by
UAC? This could be way how to make free calls and bill it to someone else.
you bill the uac who sends an invite that results to 200 ok reply, not the party that replies with 302 (unless your proxy converts 302 to invite in which case you bill the uas).
-- juha