<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>[OpenSIPS-Users] OpenSIPS 2.1.1 and Freeradius on Debian
Jessie</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Wed, 21 Oct 2015 15:17:59 +0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Davide Dal Frà <a class="moz-txt-link-rfc2396E" href="mailto:lab@dalfra.com"><lab@dalfra.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
</th>
<td>OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td>OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
Hello All,<br>
<br>
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 ( <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://opensips.org/pub/opensips/">http://opensips.org/pub/opensips/</a>)
dated 7 OCT 2015.<br>
<br>
I'm encountering some problem when i start using accounting with
Radius:<br>
<br>
<br>
When i load just the "aaa_radius" module, all is working fine, no
crash happen<br>
<br>
loadmodule "aaa_radius.so"<br>
modparam("aaa_radius","radius_config","/usr/local/etc/opensips/radius/radiusclient.conf")<br>
<br>
<br>
But when i reconfigure the acc module to use radius, opensips
crash.<br>
<small><br>
</small>
<blockquote><small>modparam("acc","aaa_url","radius:/usr/local/etc/opensips/radius/radiusclient.conf")</small><br>
<small>modparam("acc" , "aaa_flag" , "ACC_DO")</small><br>
<small>modparam("acc" , "aaa_missed_flag", "ACC_MISSED")</small><br>
<small>modparam("acc" , "service_type", 15)</small><br>
</blockquote>
<br>
<br>
I've tried to comment the latest 3 row of the acc module above ,
but the crash just appen when i add this one:<br>
<br>
<blockquote><small>modparam("acc","aaa_url","radius:/usr/local/etc/opensips/radius/radiusclient.conf").</small><br>
</blockquote>
<br>
<br>
On the syslog i can see:<br>
<br>
<blockquote><small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:init_mod: registering stats for registrar</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:init_mod: initializing module aaa_radius</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:aaa_radius:mod_init: aaa_radius module was initiated</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:init_mod: initializing module acc</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
INFO:acc:mod_init: initializing...</small><br>
<small>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]</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: New flag: [ ACC_FAILED : 1 ][0]</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: Flag name is null!</small><br>
<small>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/]</small><br>
<small>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/]</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: Flag name is null!</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: Flag name is null!</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: New flag: [ ACC_DO : 2 ][0]</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:get_flag_id_by_name: New flag: [ ACC_MISSED : 3 ][0]</small><br>
<small>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/]</small><br>
<small>Oct 21 15:14:04 osip-211-test opensips[30404]:
DBG:core:aaa_prot_bind: using aaa bind api for aaa_radius</small><br>
<small>Oct 21 15:14:05 osip-211-test opensips:
DBG:core:wait_status_code: read code -65 ? rc = 0,
errno=Success</small><br>
<small>Oct 21 15:14:05 osip-211-test opensips:
INFO:core:daemonize: pre-daemon process exiting with -1<br>
<br>
</small></blockquote>
<big>Is this a known issue or not ? If needed, i can recompile in
debug mode and post the core dump.<br>
<br>
<br>
Thanks in advance<br>
Davide<br>
</big>
<blockquote> </blockquote>
<br>
</div>
<br>
</body>
</html>