Hi folks,<div><br></div><div>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.</div>
<div><br></div><div>I was thinking of uac_redirect module. If I get it right this module saves original number in memory and does not use message itself to store it. In documentation there is written that accounting can by done by setting modparam(&quot;uac_redirect&quot;, &quot;acc_function&quot;, &quot;acc_rad_request&quot;). Even when I use exported function set_accept_filter() the accounting itself isn&#39;t done. I`d like to get original number from module uac_redirect and set it to $avp(s:billing_party). This would solve the problem of billing forwarded calls. </div>
<div><br></div><div>Am I getting it right? Is there anything else what can be passed to billing party variable to make correct bililng?</div><div><br></div><div>I&#39;m using kamailio 3.1.x and CDRTool v 8.0.6</div><div><br>
</div><div>Thanks,</div><div><br></div><div>Efelin</div>