<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Thanks Daniel, works great!<div><br></div><div>Thanks again.</div><div><br></div><div>Jon</div><div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Fri, 14 Dec 2012 20:31:58 +0100<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>CC: hunterj91@hotmail.com<br>Subject: Re: [SR-Users] Writing User-preferences Username into Radacct Table on Call Forward<br><br>
  
    
  
  
    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="ecxmoz-txt-link-freetext" href="http://www.kamailio.org/docs/openser-radius-1.0.x.html#openser_configuration" target="_blank">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="ecxmoz-cite-prefix">On 12/14/12 12:07 PM, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB121-W107B5DDCBC3A5A805ACD7BD4D0@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{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="ecxmoz-signature">-- 
Daniel-Constantin Mierla - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre></div></div>                                               </div></body>
</html>