<div dir="ltr"><div><div><div>Hi folks,<br><br></div>I have a problem with the installation of the rating_engine. I don't want to have whole CDRTool project installed on my machine. The only part I need in my installation for now is the rating_engine system. I installed the php packages on my debian system, configured global.inc file, removed all deprecated & from the code and run the ratingEngine.php. MaxSesisonTime for any rates I'm calling with my prepaid account works. The time is counted correctly. However when the DebitBalance is called from call-controll application and the ratingEngine.php tries to update the prepaid table it runs the query in the wrong database (DB_opensips insted of DB_CDRTool)<br>
<br></div><div>I have call-controll 2.0.15 and CDRTool 9.0.1<br><br></div><div>Is this a problem of an implementation or the problem is in my "solo ratingEngine.php" configuration/installation?<br><br></div><div>
Thanks<br><br></div><div>Efelin<br></div><div></div><div><br></div><div><br></div>My config goes as follow:<br><br></div><div>//paths, provider, normalize and anti-fraud settings are ommited.<br></div><div><br>$RatingEngine=array("socketIP" => "127.0.0.1",<br>
"socketPort" => "9024",<br> "cdr_source" => "opensips_radius",<br> "log_delay" => 0.05,<br>
"split_rating_table" => false, <br> "csv_delimiter" => ",",<br> "priceDenominator" => 1,<br> "priceDecimalDigits" => 4,<br>
"durationPeriodRated" => 60,<br> "trafficSizeRated" => 1024,<br> "reportMissingRates" => 1,<br> "rate_longer_than" => 0, <br>
"allow" => array ('127.0.0.1'),<br> "MaxSessionTime" => 14400,<br> "rate_on_net_calls" => false<br>
);<br><br>class DB_CDRTool extends DB_Sql {<br> var $Host = "IP";<br> var $Database = "cdrtool";<br> var $User = "cdradmin";<br> var $Password = "xxxxx";<br>
var $Halt_On_Error ="yes";<br>}<br><br>class DB_radius extends DB_Sql {<br> var $Host = "IP";<br> var $Database = "cdrtool_radius";<br> var $User = "cdradmin";<br> var $Password = "xxxxx";<br>
var $Halt_On_Error ="no";<br>}<br><br>class DB_opensips extends DB_Sql {<br> var $Host = "IP";<br> var $Database = "cdrtool_opensips";<br> var $User = "cdradmin";<br> var $Password = "xxxxx";<br>
var $Halt_On_Error ="yes";<br>}<br><br><br>"opensips_radius"=>array(<br> "name" => "OpenSIPS",<br> "class" => "CDRS_opensips",<br>
"db_class" => "DB_radius",<br> "table" => "radacct",<br> "normalizedField" => "Normalized",<br>
"rating" => "1",<br> "db_subscribers" => "DB_opensips",<br> "db_registrar" => "DB_opensips",<br>
"daily_quota" => "0",<br> "UserQuotaNotify" => "0")<br><br></div><br><div><br></div></div>