Hi,<div><br></div><div><br></div><div>I&#39;ve configured the OpenSIPS version 1.6 (svn version) with FreeRadius (latest now a days.) and clientradius_ng (latest now a days). The connectivity with radius server and mysql was successful, as I follow the steps as mentioned in this link; <a href="http://voiprookie.blogspot.com/2009/04/freeradius-and-mysql.html">http://voiprookie.blogspot.com/2009/04/freeradius-and-mysql.html</a> and book &#39;building telephony system with openser&#39;, (with minor changes like modules naming convention in opensips v 1.6), Opensips services starts and stops successfully. A partial opensips.cfg is listed below;</div>
<div><br></div><div><br></div><div>loadmodule &quot;acc.so&quot;</div><div>loadmodule &quot;aaa_radius.so&quot;</div><div><br></div><div>#--------------------------------Settings For Radius-------------------------------------</div>
<div>#modparam(&quot;auth_diameter&quot;, &quot;diameter_client_host&quot;, &quot;localhost&quot;)</div><div>modparam(&quot;aaa_radius&quot;, &quot;radius_config&quot;,&quot;/usr/etc/radiusclient-ng/radiusclient.conf&quot;)</div>
<div>modparam(&quot;acc&quot;, &quot;aaa_url&quot;, &quot;radius:/usr/etc/radiusclient-ng/radiusclient.conf&quot;)</div><div>modparam(&quot;acc&quot;, &quot;aaa_flag&quot;, 2)</div><div>modparam(&quot;acc&quot;, &quot;aaa_missed_flag&quot;, 3)</div>
<div>modparam(&quot;acc&quot;, &quot;aaa_extra&quot;,    &quot;User-Name=$Au; \</div><div>                                Calling-Station-Id=$from; \</div><div>                                Called-Station-Id=$to; \</div>
<div>                                Sip-Translated-Request-URI=$ruri; \</div><div>                                Sip-RPid=$avp(s:rpid); \</div><div>                                Source-IP=$si; \</div><div>                                Source-Port=$sp; \</div>
<div>                                Canonical-URI=$avp(s:can_uri); \</div><div>                                Billing-Party=$avp(s:billing_party); \</div><div>                                Divert-Reason=$avp(s:divert_reason); \</div>
<div>                                X-RTP-Stat=$hdr(X-RTP-Stat); \</div><div>                                Contact=$hdr(contact); \</div><div>                                Event=$hdr(event); \</div><div>                                SIP-Proxy-IP=$avp(s:sip_proxy_ip); \</div>
<div>                                ENUM-TLD=$avp(s:enum_tld)&quot;)</div><div><br></div><div> <br clear="all"><br></div><div>The problem I&#39;m facing is when I register my phones (which they registered successfully) and make a successful call between them, but when I check log messages I&#39;m getting  only these errors as listed below;</div>
<div><br></div><div><br></div><div><div>Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]: ERROR:aaa_radius:rad_avp_add: failure</div><div>Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]: ERROR:acc:acc_aaa_request: failed to add Source-IP, 13</div>
<div><br></div><div><br></div><div>And I also check table radacct in mysql database, no records are inserted into it.</div><div><br></div><div>Kindly advise this issue.</div><div><br></div>-- <br>Regards,<br><br>Ahmed Munir<br>
<br><br>
</div>