[OpenSIPS-Users] ACC_RADIUS makes opensips crash

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 14 17:36:53 CEST 2010


Hi Denis,

do you get a coredump file? if so, could you get a bracktrace from it 
and post it here?

Regards,
Bogdan

Denis Putyato wrote:
>
> Hello everybody!
>
> There is a problem with radius_send_auth(); function.
>
> This function is called from request route and after opensips received 
> “Access-Accept” from radius server it is crashes with such error:
>
> Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21556]: 
> DBG:aaa_radius:send_auth_func: radius authentication message sent
>
> Jul 14 14:59:02 kam kernel: [118250.317522] opensips[21556]: segfault 
> at 24 ip b7a53df1 sp bf8f5590 error 4 in aaa_radius.so[b7a51000+7000]
>
> Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21561]: 
> CRITICAL:core:receive_fd: EOF on 7
>
> Opensips.cfg:
>
>>
>>
> modparam("aaa_radius", "radius_config", 
> "/etc/radiusclient-ng/radiusclient.conf")
>
> modparam("aaa_radius", "sets", "set1 = (User-Name = $avp(i:20), 
> User-Password=$avp(i:50))")
>
> modparam("aaa_radius", "sets", "set2 = (Session-Timeout = $var(time))")
>
>>
>>
> route [7] {
>
>>
> radius_send_auth("set1","set2");
>
>>
>>
> }
>
> $avp(i:20) – tel. number
>
> $avp(i:50) – empty value. Has been inserted because radius server 
> didn’t accept request from opensips without User-Password field
>
> Session-Timeout is ONLY one attribute that opensips receives from 
> radius server.
>
> #cat /etc/radiusclient-ng/dictionary | grep Session-Timeout
>
> ATTRIBUTE Session-Timeout 27 integer
>
> Thank you for any help.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list