Hi,<div><br></div><div><br></div><div>I'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 'building telephony system with openser', (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 "acc.so"</div><div>loadmodule "aaa_radius.so"</div><div><br></div><div>#--------------------------------Settings For Radius-------------------------------------</div>
<div>#modparam("auth_diameter", "diameter_client_host", "localhost")</div><div>modparam("aaa_radius", "radius_config","/usr/etc/radiusclient-ng/radiusclient.conf")</div>
<div>modparam("acc", "aaa_url", "radius:/usr/etc/radiusclient-ng/radiusclient.conf")</div><div>modparam("acc", "aaa_flag", 2)</div><div>modparam("acc", "aaa_missed_flag", 3)</div>
<div>modparam("acc", "aaa_extra", "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)")</div><div><br></div><div> <br clear="all"><br></div><div>The problem I'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'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>