[SR-Users] Writing User-preferences Username into Radacct Table on Call Forward

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 14 20:31:58 CET 2012


Hello,

storing a new value in Radius acc record, should require to:

- define a new radius AVP name in the dictionary
- specify it in radius_extra parameter of acc_radius module, assigning 
to it a name of an config avp
- in config file set that avp to the value you want

Here is an old tutorial, but the part with radius_extra should be valid 
(just use acc_radius module) - link to config:

http://www.kamailio.org/docs/openser-radius-1.0.x.html#openser_configuration

Just some snippets that may help:

- define My-Data in the radius dictionary

In kamailio.cfg:
modparam("acc_radius", "radius_extra", "My-Data=$avp(data)")

Later in config, when the forwarding is done:

$avp(data) = $rU;

This assumes that the request uri username was not updated yet with the 
value taken from the database.

Cheers,
Daniel

On 12/14/12 12:07 PM, Jonathan Hunter wrote:
> Hi All,
>
> I was wondering if anyone would be kind enough to let me know if they 
> have implemented anything like as follows in Kamailio?
>
> We are looking to implement call fowarding, activating it as usual in 
> usr_preferences table.
>
> I was wondering if on the outbound leg its possible to write the 
> username from usr_preferences with CFW active into the radacct table 
> easily?

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121214/07cefef4/attachment-0001.htm>


More information about the sr-users mailing list