Hey everyone,<br><br>After quite a bit of google digging I&#39;ve came across Dimitry&#39;s mail that cleared up<br>some things that weren&#39;t so obvious in the documentation of the ACC module.<br><br>He gave the example of using the following code:
<br><br><pre>modparam(&quot;acc&quot;, &quot;radius_extra&quot;, &quot;Sip-UA=$hdr(User-Agent);Sip-Via=$hdr(Via[*]); Sip-SDP=$rb&quot;)<br><font size="4"><span style="font-family: mon;"></span></font><br></pre>
Which in his case makes use of the Sip-UA, Sip-Via and Sip-SDP attributes but in the dictionary.sip file<br>provided with openser/radiusclient-ng these attribute aren&#39;t present, there are other sets of attributes<br>
but not these... And so, I tried adding myself some custom attributes to both dictionary files, <br>the one on the freeradius server and the other on openser&#39;s radiusclient-ng server and tried for example this:<br><br>
ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Src-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 900 string<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Src-Port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 901&nbsp;&nbsp;&nbsp; string<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Hdr-Contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 902&nbsp;&nbsp;&nbsp; string<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Hdr-UA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 903&nbsp;&nbsp;&nbsp; string
<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Hdr-From&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 904&nbsp;&nbsp;&nbsp; string<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sip-Hdr-Media&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 905&nbsp;&nbsp;&nbsp; string<br><br>And then I put in openser&#39;s cfg:<br><br>modparam(&quot;acc&quot;, &quot;radius_extra&quot;, &quot;Sip-Src-IP=$si&quot;)
<br><br>But it doesn&#39;t work, the accounting record on the freeradius server doesn&#39;t show the Sip-Src-IP attribute.<br>If I change the modparam to use Sip-User-Realm which is defined in the original dictionary.sip on both
<br>servers then THAT IS added to the accounting record... my question is why?<br><br>And the second question, is there a more extensive dictionary.sip file?<br>How is it possible to add my own custom attributes as well?<br>
<br><br>Thanks,<br>Liri.<br>