[OpenSIPS-Users] Opensips 1.10.1 and radius problem

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 6 13:38:19 CEST 2014


Strange...
Could you directly add in your modules/aaa_radius/aaa_radius.c file, 
after line 331 which is:
     res = rc_auth(rh, SIP_PORT, send, &recv, mess);
and extra log:
     LM_ERR("rc_auth returned %d\n",res);

Recompile and run again - let's see exactly what the libradius has to 
return :).

Thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.06.2014 13:00, dpa wrote:
>
> Unfortunately it doesn`t help.
>
> I tried the patch (make command I gave from "module/aaa_radius" 
> directory).
>
> A test call shows
>
> "Jun  6 13:57:42 opensips-mirror 
> /usr/local/opensipsdev/sbin/opensips[4297]: 
> ERROR:aaa_radius:send_auth_func: radius authentication message failed 
> with ERROR
>
> Jun  6 13:57:42 opensips-mirror 
> /usr/local/opensipsdev/sbin/opensips[4297]: Case -1 in radius route 
> detected"
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* Friday, June 06, 2014 1:21 PM
> *To:* dpa; 'OpenSIPS users mailling list'
> *Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem
>
> Hi,
>
> The libradius returns the error via the rc_auth() function. I notices 
> a bit of an inconsistency in the handling of the retcode of rc_auth() 
> - old stuff :).
>
> You say you see a REJECT and the RADIUS level, right ?
>
> Could you please try the attached patch and see if the failures are 
> properly reported to the script.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> On 06.06.2014 11:27, dpa wrote:
>
>     Hello Bogdan
>
>     What I can see in logs during test call
>
>     "ERROR:aaa_radius:send_auth_func: radius authentication message
>     failed with ERROR"
>
>     *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
>     *Sent:* Thursday, June 05, 2014 6:20 PM
>     *To:* dpa; 'OpenSIPS users mailling list'
>     *Subject:* Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem
>
>     Hi,
>
>     -1 ret code means some internal error - check the opensips logs
>     for any error.
>
>     Regards,
>
>
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>
>     http://www.opensips-solutions.com
>
>     On 03.06.2014 07:01, dpa wrote:
>
>         Hello Bogdan
>
>         Sorry for long answer.
>
>         I changed opensips.cfg just a little
>
>         ....
>
>             radius_send_auth("set1","set2");
>
>              switch($rc){
>
>              case -2:
>
>              xlog ("Case -2 in radius route detected");
>
>              break;
>
>              case -1:
>
>              xlog ("Case -1 in radius route detected");
>
>              break;
>
>            }
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140606/7be6f160/attachment-0001.htm>


More information about the Users mailing list