[OpenSIPS-Users] Opensips + FreeRadius + CDRTool + Slackware

Jeff Pyle jpyle at fidelityvoice.com
Tue Dec 23 20:47:29 CET 2008


Gustavo,

I followed the directions (in concept) to configure a CDRTool VirtualHost
for Apache.  Within that VirtualHost I added the following two lines:
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .phtml

In my case, CentOS¹s Apache config by default doesn¹t understand what a
.phtml file is.  You have to tell it with AddType.

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.

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.

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.

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.


- Jeff




On 12/23/08 2:31 PM, "Gustavo B. Schenkel" <gustavo.schenkel at gmail.com>
wrote:

> Jeff, i am having other trouble,
> 
> i install the freeradius, opensips, cdrtool, radiusclient-ng,
> 
> but i cant open the cdrtool from web http://localhost/CDRTool
> it is showing this message:
> 
> "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 "
> CDRTool setup
>  CDRTool has not been setup on this machine yet.
> You must first setup php, apache and to create the cdrtool database. Detailed
> installation instructions are available in doc/INSTALL.txt
> <http://10.1.1.30/CDRTool/doc/INSTALL.txt>
> 
>  Once the database is available, create the cdrtool configuration file by
> copying the sample configuration file:
> 
>  cp setup/global.inc.simple.sample /etc/cdrtool/global.inc
> 
>  Then edit the configuration file global.inc to reflect your platform setup.
> This is the content of the current sample configuration file: ";  print "
> ";
>         $fp=fopen("setup/global.inc.simple.sample",r);
>         while ($buffer = fgets($fp,1024)) {
>             if (!preg_match("/(<\?)|(\?>)/",$buffer)) {
> 
>                 print "$buffer";
>             }
>         }
>         print "
> "; } } print " "; ?>
> 
> 
> i altered and put the global.inc in /etc/cdrtool/
> The /etc/init.d/cdrtool file, inside are a command to debian distribution
> (start-stop-daemon)
> 
> start-stop-daemon --start --background --quiet --pidfile
> /var/run/ratingEngine.pid \
>                 --exec $DAEMON -- $DAEMON_OPTS
> 
> 
> and in slackware this don't exist, i am executing this to run this file
> php -f $DAEMON --DAEMON_OPTS
> but i think this aren't working.
> 
> Other thing, i apply the patch for the freeradius (account type 15)
> but the log are showing:
> 
> Tue Dec 23 15:22:26 2008 : Error: rlm_radutmp: NAS openSIPS port 5060 unknown
> packet type 15)
> 
> 
> i am configuring the server based in the book Building Telephony System with
> OpenSER.
> 
> How you are going?!
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081223/9c185ec1/attachment.htm 


More information about the Users mailing list