<div dir="ltr"><div><div><div>Hi folks,<br><br></div>I have a problem with the installation of the rating_engine. I don&#39;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 &amp; from the code and run the ratingEngine.php. MaxSesisonTime for any rates I&#39;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 &quot;solo ratingEngine.php&quot; 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(&quot;socketIP&quot;               =&gt; &quot;127.0.0.1&quot;,<br>
                    &quot;socketPort&quot;             =&gt; &quot;9024&quot;,<br>                    &quot;cdr_source&quot;             =&gt; &quot;opensips_radius&quot;,<br>                    &quot;log_delay&quot;              =&gt; 0.05,<br>
                    &quot;split_rating_table&quot;     =&gt; false, <br>                    &quot;csv_delimiter&quot;          =&gt; &quot;,&quot;,<br>                    &quot;priceDenominator&quot;       =&gt; 1,<br>                    &quot;priceDecimalDigits&quot;     =&gt; 4,<br>
                    &quot;durationPeriodRated&quot;    =&gt; 60,<br>                    &quot;trafficSizeRated&quot;       =&gt; 1024,<br>                    &quot;reportMissingRates&quot;     =&gt; 1,<br>                    &quot;rate_longer_than&quot;       =&gt; 0, <br>
                    &quot;allow&quot;                  =&gt; array (&#39;127.0.0.1&#39;),<br>                    &quot;MaxSessionTime&quot;         =&gt; 14400,<br>                    &quot;rate_on_net_calls&quot;      =&gt; false<br>
                    );<br><br>class DB_CDRTool extends DB_Sql {<br>  var $Host     = &quot;IP&quot;;<br>  var $Database = &quot;cdrtool&quot;;<br>  var $User     = &quot;cdradmin&quot;;<br>  var $Password = &quot;xxxxx&quot;;<br>
  var $Halt_On_Error =&quot;yes&quot;;<br>}<br><br>class DB_radius extends DB_Sql {<br>  var $Host     = &quot;IP&quot;;<br>  var $Database = &quot;cdrtool_radius&quot;;<br>  var $User     = &quot;cdradmin&quot;;<br>  var $Password = &quot;xxxxx&quot;;<br>
  var $Halt_On_Error =&quot;no&quot;;<br>}<br><br>class DB_opensips extends DB_Sql {<br>  var $Host     = &quot;IP&quot;;<br>  var $Database = &quot;cdrtool_opensips&quot;;<br>  var $User     = &quot;cdradmin&quot;;<br>  var $Password = &quot;xxxxx&quot;;<br>
  var $Halt_On_Error =&quot;yes&quot;;<br>}<br><br><br>&quot;opensips_radius&quot;=&gt;array(<br>                        &quot;name&quot;               =&gt; &quot;OpenSIPS&quot;,<br>                        &quot;class&quot;              =&gt; &quot;CDRS_opensips&quot;,<br>
                        &quot;db_class&quot;           =&gt; &quot;DB_radius&quot;,<br>                        &quot;table&quot;              =&gt; &quot;radacct&quot;,<br>                        &quot;normalizedField&quot;    =&gt; &quot;Normalized&quot;,<br>
                        &quot;rating&quot;             =&gt; &quot;1&quot;,<br>                        &quot;db_subscribers&quot;     =&gt; &quot;DB_opensips&quot;,<br>                        &quot;db_registrar&quot;       =&gt; &quot;DB_opensips&quot;,<br>
                        &quot;daily_quota&quot;        =&gt; &quot;0&quot;,<br>                        &quot;UserQuotaNotify&quot;    =&gt; &quot;0&quot;)<br><br></div><br><div><br></div></div>