[OpenSIPS-Users] ACC_RADIUS makes opensips crash
Denis Putyato
denis7979 at mail.ru
Wed Jul 14 13:37:45 CEST 2010
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100714/e7b3e761/attachment.htm
More information about the Users
mailing list