Hi,<br><br>Thanks for your reply Norman, I figure it out the problem. The problem is that many of the attributes weren't defined in dictionary.opensips, after adding the attributes, accounting with radius is working now. Here is the list of dictionary.opensips attributes I want to share;<br>
<br><br>### Lines Added<br>ATTRIBUTE Sip-Method                    101  integer<br>ATTRIBUTE Sip-Response-Code             102  integer    # Schulzrinne, acc<br>ATTRIBUTE Sip-To-Tag                    104  string     # Schulzrinne, acc<br>
ATTRIBUTE Sip-From-Tag                  105  string     # Schulzrinne, acc<br>ATTRIBUTE Sip-Translated-Request-URI    107  string     # Proprietary, acc<br>ATTRIBUTE Source-IP                     214  string<br>ATTRIBUTE Source-Port                   215  string<br>
ATTRIBUTE Sip-Src-IP                    108  string     # Proprietary, acc<br>ATTRIBUTE Sip-Src-Port                  109  string     # Proprietary, acc<br>ATTRIBUTE Digest-Response               206  string     # Sterman, auth_radius<br>
ATTRIBUTE Sip-Uri-User                  208  string     # Proprietary, auth_radius<br>ATTRIBUTE Sip-Group                     211  string     # Proprietary, group_radius<br>ATTRIBUTE Sip-Rpid                      213  string     # Proprietary, auth_radius<br>
ATTRIBUTE SIP-AVP                       225  string     # Proprietary, avp_radius<br>ATTRIBUTE Digest-Realm                  1063  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-Nonce                  1064  string    # Sterman, auth_radius<br>
ATTRIBUTE Digest-Method                 1065  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-URI                    1066  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-QOP                    1067  string    # Sterman, auth_radius<br>
ATTRIBUTE Digest-Algorithm              1068  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-Body-Digest            1069  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-CNonce                 1070  string    # Sterman, auth_radius<br>
ATTRIBUTE Digest-Nonce-Count            1071  string    # Sterman, auth_radius<br>ATTRIBUTE Digest-User-Name              1072  string    # Sterman, auth_radius<br>ATTRIBUTE Contact                       1073  integer<br>
<br>###<br><br><br><br>Well I say it again thanks for helping me out.<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Date: Fri, 05 Mar 2010 11:11:16 -0500<br>
From: Norman Brandinger <<a href="mailto:norm@goes.com">norm@goes.com</a>><br>
Subject: Re: [OpenSIPS-Users] Getting Error When Configuring OpenSIPS<br>
        +       FreeRadius<br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
Message-ID: <<a href="mailto:4B912D24.40503@goes.com">4B912D24.40503@goes.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Please post the current error that you're receiving so that someone on<br>
the list might be able to point you in the correct direction.<br>
<br>
Regards,<br>
Norm<br>
<br>
Ahmed Munir wrote:<br>
> Hi,<br>
><br>
> Thanks for replying, Norman I've added the line in dictionary.opensips<br>
> i.e. ATTRIBUTE       Source-IP              214     string, and start<br>
> freeradius service and make a call and still getting same error as I<br>
> mentioned on my previous mail.<br>
><br>
> Kindly assist me to resolve this problem because its quite too long<br>
> that I'm this problem.<br>
><br>
><br>
>     Date: Thu, 04 Mar 2010 12:52:49 -0500<br>
>     From: Norman Brandinger <<a href="mailto:norm@goes.com">norm@goes.com</a> <mailto:<a href="mailto:norm@goes.com">norm@goes.com</a>>><br>
>     Subject: Re: [OpenSIPS-Users] Getting Error When Configuring<br>
>      OpenSIPS<br>
>            +       FreeRadius<br>
>     To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>     <mailto:<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>><br>
>     Message-ID: <<a href="mailto:4B8FF371.6000006@goes.com">4B8FF371.6000006@goes.com</a><br>
>     <mailto:<a href="mailto:4B8FF371.6000006@goes.com">4B8FF371.6000006@goes.com</a>>><br>
>     Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
><br>
>     I've got the following (among other attributes) defined in a<br>
>     local.dictionary file:<br>
><br>
>     ATTRIBUTE       Source-IP              214     string<br>
><br>
><br>
>     If it's added to opensips.dictionary, then it no longer needs to be in<br>
>     my local.dictionary.<br>
><br>
>     Regards,<br>
>     Norm<br>
><br>
>     Bogdan-Andrei Iancu wrote:<br>
>     > Hi Ahmed,<br>
>     ><br>
>     > Do you see in any RADIUS dictionary the Source-IP AVP ? if yes,<br>
>     please<br>
>     > post here its definition.<br>
>     ><br>
>     > Regards,<br>
>     > Bogdan<br>
>     ><br>
>     > Ahmed Munir wrote:<br>
>     ><br>
>     >> Hi,<br>
>     >><br>
>     >> Thanks for your reply, I've copied dictionary.opensips to<br>
>     >> /etc/freeradius directory and added few lines in it after that<br>
>     when I<br>
>     >> make the call I'm getting this same error as mentioned in my<br>
>     previous<br>
>     >> mail earlier, I even copied the dictionary.freeradius to<br>
>     >> /etc/clientradius_ng directory as well.<br>
>     >><br>
>     >> Lines for dictionary.opensips are listed below;<br>
>     >><br>
>     >> #### Attributes ###<br>
>     >><br>
>     >> ATTRIBUTE Sip-Uri-User         208  string     # Proprietary,<br>
>     auth_radius<br>
>     >> ATTRIBUTE Sip-Group            211  string     # Proprietary,<br>
>     group_radius<br>
>     >> ATTRIBUTE Sip-Rpid             213  string     # Proprietary,<br>
>     auth_radius<br>
>     >> ATTRIBUTE SIP-AVP              225  string     # Proprietary,<br>
>     avp_radius<br>
>     >> ATTRIBUTE Sip-Method           101  integer<br>
>     >><br>
>     >> ### Service-Type Values ###<br>
>     >> VALUE Service-Type       Group-Check      12   # Proprietary,<br>
>     group_radius<br>
>     >> VALUE Service-Type       Sip-Session      15<br>
>     >> VALUE Service-Type       SIP-Caller-AVPs  30   # Proprietary,<br>
>     avp_radius<br>
>     >> VALUE Service-Type       SIP-Callee-AVPs  31   # Proprietary,<br>
>     avp_radius<br>
>     >><br>
>     >> ### Sip-Method Values ###<br>
>     >> VALUE Sip-Method         Undefined      0<br>
>     >> VALUE Sip-Method         Invite         1<br>
>     >> VALUE Sip-Method         Cancel         2<br>
>     >> VALUE Sip-Method         Ack            4<br>
>     >> VALUE Sip-Method         Bye            8<br>
>     >> VALUE Sip-Method         Info           16<br>
>     >> VALUE Sip-Method         Options        32<br>
>     >> VALUE Sip-Method         Update         64<br>
>     >> VALUE Sip-Method         Register       128<br>
>     >> VALUE Sip-Method         Message        256<br>
>     >> VALUE Sip-Method         Subscribe      512<br>
>     >> VALUE Sip-Method         Notify         1024<br>
>     >> VALUE Sip-Method         Prack          2048<br>
>     >> VALUE Sip-Method         Refer          4096<br>
>     >> VALUE Sip-Method         Other          8192<br>
>     >><br>
>     >><br>
>     >> And my dictionary settings are listed below;<br>
>     >><br>
>     >> dictionary(freeradius)<br>
>     >><br>
>     >> $INCLUDE        /opt/freeradius/share/freeradius/dictionary<br>
>     >> $INCLUDE        /opt/freeradius/etc/raddb/dictionary.opensips<br>
>     >><br>
>     >> dictionary(radiusclient)<br>
>     >><br>
>     >> ##At the end of the line<br>
>     >> $INCLUDE  /opt/freeradius/etc/raddb/dictionary.opensips<br>
>     >><br>
>     >><br>
>     >> Kindly tell me from which section I'm facing this problem.<br>
>     Waiting for<br>
>     >> your reply.<br>
>     >><br>
>     >> Date: Fri, 26 Feb 2010 15:21:03 +0200<br>
>     >> From: Andrew Pogrebennyk <<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a><br>
>     <mailto:<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a>><br>
>     >> <mailto:<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a><br>
>     <mailto:<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a>>>><br>
>     >> Subject: Re: [OpenSIPS-Users] Getting Error When Configuring<br>
>     OpenSIPS<br>
>     >>        +       FreeRadius`<br>
>     >> To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>     <mailto:<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
>     >> <mailto:<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>     <mailto:<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>>><br>
>     >> Message-ID: <<a href="mailto:4B87CABF.9000209@portaone.com">4B87CABF.9000209@portaone.com</a><br>
>     <mailto:<a href="mailto:4B87CABF.9000209@portaone.com">4B87CABF.9000209@portaone.com</a>><br>
>     >> <mailto:<a href="mailto:4B87CABF.9000209@portaone.com">4B87CABF.9000209@portaone.com</a><br>
>     <mailto:<a href="mailto:4B87CABF.9000209@portaone.com">4B87CABF.9000209@portaone.com</a>>>><br>
>     >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
>     >><br>
>     >> On 26.02.2010 14:33, Ahmed Munir wrote:<br>
>     >><br>
>     >>> Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]:<br>
>     >>> ERROR:aaa_radius:rad_avp_add: failure<br>
>     >>> Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]:<br>
>     >>> ERROR:acc:acc_aaa_request: failed to add Source-IP, 13<br>
>     >>><br>
>     >>><br>
>     >>> And I also check table radacct in mysql database, no records are<br>
>     >>><br>
>     >> inserted<br>
>     >><br>
>     >>> into it.<br>
>     >>><br>
>     >> I think this means an incorrect RADIUS dictionary. You should<br>
>     verify<br>
>     >> that the extra attributes you have defined are present there.<br>
>     >><br>
>     >> --<br>
>     >> Sincerely,<br>
>     >> Andrew Pogrebennyk<br>
>     >><br>
>     >><br>
>     >> --<br>
>     >> Regards,<br>
>     >><br>
>     >> Ahmed Munir<br>
>     >><br>
>     >><br>
>     >><br>
>     >><br>
>     >><br>
>     >><br>
>     >><br>
>     ------------------------------------------------------------------------<br>
>     >><br>
>     >> _______________________________________________<br>
>     >> Users mailing list<br>
>     >> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
>     >> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>     >><br>
>     >><br>
>     ><br>
>     ><br>
>     ><br>
><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
><br>
> Ahmed Munir<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br></blockquote></div><br clear="all"><br>-- <br>Regards,<br><br>Ahmed Munir<br><br><br>