<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
storing a new value in Radius acc record, should require to:<br>
<br>
- define a new radius AVP name in the dictionary<br>
- specify it in radius_extra parameter of acc_radius module,
assigning to it a name of an config avp<br>
- in config file set that avp to the value you want<br>
<br>
Here is an old tutorial, but the part with radius_extra should be
valid (just use acc_radius module) - link to config:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/docs/openser-radius-1.0.x.html#openser_configuration">http://www.kamailio.org/docs/openser-radius-1.0.x.html#openser_configuration</a><br>
<br>
Just some snippets that may help:<br>
<br>
- define My-Data in the radius dictionary<br>
<br>
In kamailio.cfg:<br>
modparam("acc_radius", "radius_extra", "My-Data=$avp(data)")<br>
<br>
Later in config, when the forwarding is done:<br>
<br>
$avp(data) = $rU;<br>
<br>
This assumes that the request uri username was not updated yet with
the value taken from the database.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/14/12 12:07 PM, Jonathan Hunter
wrote:<br>
</div>
<blockquote cite="mid:DUB121-W107B5DDCBC3A5A805ACD7BD4D0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hi All,
<div><br>
</div>
<div>I was wondering if anyone would be kind enough to let me
know if they have implemented anything like as follows in
Kamailio?</div>
<div><br>
</div>
<div>We are looking to implement call fowarding, activating it
as usual in usr_preferences table.</div>
<div><br>
</div>
<div>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?</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>