<HTML>
<HEAD>
<TITLE>Re: [OpenSIPS-Users] Opensips + FreeRadius + CDRTool + Slackware</TITLE>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Gustavo,<BR>
<BR>
I followed the directions (in concept) to configure a CDRTool VirtualHost for Apache. Within that VirtualHost I added the following two lines:<BR>
AddType application/x-httpd-php .php<BR>
AddType application/x-httpd-php .phtml<BR>
<BR>
In my case, CentOS’s Apache config by default doesn’t understand what a .phtml file is. You have to tell it with AddType.<BR>
<BR>
If you don’t configure a VirtualHost you’ll want to add those to your /etc/httpd/conf/httpd.conf file in one of the main sections.<BR>
<BR>
I’m not using rating at the moment, so I’m not running the ratingEngine.php file. That’s what the init.d cdrtool starts. Debian’s init.d files appear to be rather different those of Redhat-based distros. If you want to run it manually, run /var/www/CDRTool/scripts/ratingEngine.php. That should do it.<BR>
<BR>
It appears the patch to Freeradius didn’t take. That’s the only explaination I can think of for the unknown type 15 messages. I’m not sure what to tell you here — I did it once, and it worked, so I didn’t have to do much troubleshooting.<BR>
<BR>
In general I’d recommend that one follow the information contained in the INSTALL.txt file for CDRTool. The AG Projects folks seem to update it rather often. I’ve noticed two large changes just since I’ve been playing with this over the last few weeks.<BR>
<BR>
<BR>
- Jeff<BR>
<BR>
<BR>
<BR>
<BR>
On 12/23/08 2:31 PM, "Gustavo B. Schenkel" <<a href="gustavo.schenkel@gmail.com">gustavo.schenkel@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Jeff, i am having other trouble,<BR>
<BR>
i install the freeradius, opensips, cdrtool, radiusclient-ng,<BR>
<BR>
but i cant open the cdrtool from web <a href="http://localhost/CDRTool">http://localhost/CDRTool</a><BR>
it is showing this message:<BR>
<BR>
"CDRTool_Session", "auth" => "CDRTool_Auth", "perm" => "CDRTool_Perm") ); $loginname=$auth->auth["uname"]; $title="Legal notice"; $db = new DB_CDRTool(); $query=sprintf("select * from settings where billing_party = '%s' and var_module= 'login' and var_name = 'I_agree_with_license'",$loginname); if ($db->query($query)) { if ($db->num_rows()) { $refreshURL='callsearch.phtml'; $refreshTime=0; } } if (is_readable("/etc/cdrtool/local/header.phtml")) { include_once("/etc/cdrtool/local/header.phtml"); } else { include_once("header.phtml"); } $layout = new pageLayoutLocal(); $layout->showHeader(); $layout->showLegalNotice(); $layout->showFooter(); page_close(); } else { $Setup = new SETUP (); $Setup->showIntro(); } class SETUP { function showIntro() { print " <BR>
</SPAN><FONT SIZE="5"><SPAN STYLE='font-size:14pt'><B>CDRTool setup<BR>
</B></SPAN></FONT><SPAN STYLE='font-size:10pt'> CDRTool has not been setup on this machine yet. <BR>
You must first setup php, apache and to create the cdrtool database. Detailed installation instructions are available in doc/INSTALL.txt <<a href="http://10.1.1.30/CDRTool/doc/INSTALL.txt">http://10.1.1.30/CDRTool/doc/INSTALL.txt</a>> <BR>
<BR>
Once the database is available, create the cdrtool configuration file by copying the sample configuration file: <BR>
<BR>
cp setup/global.inc.simple.sample /etc/cdrtool/global.inc <BR>
<BR>
Then edit the configuration file global.inc to reflect your platform setup. This is the content of the current sample configuration file: "; print "<BR>
";<BR>
$fp=fopen("setup/global.inc.simple.sample",r);<BR>
while ($buffer = fgets($fp,1024)) {<BR>
if (!preg_match("/(<\?)|(\?>)/",$buffer)) {<BR>
<BR>
print "$buffer";<BR>
}<BR>
}<BR>
print "<BR>
"; } } print " "; ?> <BR>
<BR>
<BR>
i altered and put the global.inc in /etc/cdrtool/<BR>
The /etc/init.d/cdrtool file, inside are a command to debian distribution (start-stop-daemon)<BR>
<BR>
start-stop-daemon --start --background --quiet --pidfile /var/run/ratingEngine.pid \<BR>
--exec $DAEMON -- $DAEMON_OPTS<BR>
<BR>
<BR>
and in slackware this don't exist, i am executing this to run this file<BR>
php -f $DAEMON --DAEMON_OPTS<BR>
but i think this aren't working.<BR>
<BR>
Other thing, i apply the patch for the freeradius (account type 15)<BR>
but the log are showing:<BR>
<BR>
Tue Dec 23 15:22:26 2008 : Error: rlm_radutmp: NAS openSIPS port 5060 unknown packet type 15)<BR>
<BR>
<BR>
i am configuring the server based in the book Building Telephony System with OpenSER.<BR>
<BR>
How you are going?!<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>