[OpenSIPS-Users] OpenSIPS 2.1.1 and Freeradius on Debian Jessie

Davide Dal Frà lab at dalfra.com
Wed Oct 21 15:17:59 CEST 2015


Hello All,

I'm working on a Debian ( Debian GNU/Linux 8.2 (jessie) ) with OpenSIPS 
2.1.1 compiled directly on the server with the last tarball from the 
website ( http://opensips.org/pub/opensips/) dated 7 OCT 2015.

I'm encountering some problem when i start using accounting with Radius:


When i load just the "aaa_radius" module, all is working fine, no crash 
happen

loadmodule "aaa_radius.so"
modparam("aaa_radius","radius_config","/usr/local/etc/opensips/radius/radiusclient.conf")


But when i reconfigure the acc module to use radius, opensips crash.

    modparam("acc","aaa_url","radius:/usr/local/etc/opensips/radius/radiusclient.conf")
    modparam("acc" , "aaa_flag" , "ACC_DO")
    modparam("acc" , "aaa_missed_flag", "ACC_MISSED")
    modparam("acc" , "service_type", 15)



I've tried to comment the latest 3 row of the acc module above , but the 
crash just appen when i add this one:

    modparam("acc","aaa_url","radius:/usr/local/etc/opensips/radius/radiusclient.conf").



On the syslog i can see:

    Oct 21 15:14:04 osip-211-test opensips[30404]: DBG:core:init_mod:
    registering stats for registrar
    Oct 21 15:14:04 osip-211-test opensips[30404]: DBG:core:init_mod:
    initializing module aaa_radius
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:aaa_radius:mod_init: aaa_radius module was initiated
    Oct 21 15:14:04 osip-211-test opensips[30404]: DBG:core:init_mod:
    initializing module acc
    Oct 21 15:14:04 osip-211-test opensips[30404]: INFO:acc:mod_init:
    initializing...
    Oct 21 15:14:04 osip-211-test kernel: [360264.718978]
    opensips[30404]: segfault at 0 ip b6d3540a sp bfe2a060 error 4 in
    libfreeradius-client.so.2.0.0[b6d2f000+d000]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: New flag: [ ACC_FAILED : 1 ][0]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: Flag name is null!
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:find_cmd_export_t: found <load_tm>(0) in module tm
    [/usr/local/lib/opensips/modules/]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:find_cmd_export_t: found <load_dlg>(0) in module dialog
    [/usr/local/lib/opensips/modules/]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: Flag name is null!
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: Flag name is null!
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: New flag: [ ACC_DO : 2 ][0]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:get_flag_id_by_name: New flag: [ ACC_MISSED : 3 ][0]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:find_mod_export: found <aaa_bind_api> in module aaa_radius
    [/usr/local/lib/opensips/modules/]
    Oct 21 15:14:04 osip-211-test opensips[30404]:
    DBG:core:aaa_prot_bind: using aaa bind api for aaa_radius
    Oct 21 15:14:05 osip-211-test opensips: DBG:core:wait_status_code:
    read code -65 ? rc = 0, errno=Success
    Oct 21 15:14:05 osip-211-test opensips: INFO:core:daemonize:
    pre-daemon process exiting with -1

Is this a known issue or not ? If needed, i can recompile in debug mode 
and post the core dump.


Thanks in advance
Davide

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151021/b0265b1d/attachment.htm>


More information about the Users mailing list