<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Unfortunately some code still uses short open tags in PHP. Please check if short_open_tag is set to On in /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Tijmen de Mes</div><div class="">—</div><div class="">AG Projects</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 7 jul. 2017, at 11:22, Aqs Younas <<a href="mailto:aqsyounas@gmail.com" class="">aqsyounas@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for reply, David. <div class=""><br class=""></div><div class="">I think you might missed the part of log.</div><div class=""><b class=""> </b></div><div class=""><div style="font-size:12.8px" class=""><b class="">Jun  5 02:47:31 debian systemd[1]: Failed to start CDR mediation and rating engine for Call Details Records..<br class=""></b></div><div class=""><div style="font-size:12.8px" class=""><b class="">Jun  5 02:47:31 debian systemd[1]: Unit cdrtool.service entered failed state.</b></div><div style="font-size:12.8px" class=""><b class="">Jun  5 02:47:31 debian systemd[1]: cdrtool.service start request repeated too quickly, refusing to start.</b></div><div style="font-size:12.8px" class=""><b class="">Jun  5 02:47:31 debian systemd[1]: Failed to start CDR mediation and rating engine for Call Details Records..</b></div><div style="font-size:12.8px" class=""><b class="">Jun  5 02:47:31 debian systemd[1]: Unit cdrtool.service entered failed state.</b></div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Well by manually running the Cdrtool it is failing too. </div><div style="font-size:12.8px" class=""><br class=""></div><div class=""><div class=""><span style="font-size:12.8px" class="">root@debian:/var/www/CDRTool/scripts# <b class="">php ratingEngine.php</b></span></div><div class=""><span style="font-size:12.8px" class=""><?</span></div><div class=""><span style="font-size:12.8px" class="">set_time_limit (0);</span></div><div class=""><span style="font-size:12.8px" class="">ini_set('mbstring.func_overload', '0');</span></div><div class=""><span style="font-size:12.8px" class="">ini_set('output_handler', '');</span></div><div class=""><span style="font-size:12.8px" class="">@ob_end_flush();</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">require('/etc/cdrtool/global.inc');</span></div><div class=""><span style="font-size:12.8px" class="">require('cdr_generic.php');</span></div><div class=""><span style="font-size:12.8px" class="">require('rating.php');</span></div><div class=""><span style="font-size:12.8px" class="">require('rating_server.php');</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">// Init Rating Engine</span></div><div class=""><span style="font-size:12.8px" class="">syslog(LOG_NOTICE,"Starting CDRTool Rating Engine...");</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">$RatingEngineServer = new RatingEngine();</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">if (!$RatingEngineServer->init_ok) {</span></div><div class=""><span style="font-size:12.8px" class="">    syslog(LOG_NOTICE,'Error: Cannot start Rating Engine, fix the errors and try again');</span></div><div class=""><span style="font-size:12.8px" class="">    exit;</span></div><div class=""><span style="font-size:12.8px" class="">}</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">syslog(LOG_NOTICE,"Rating Engine started sucesfully, going to background...");</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">// Go to the background</span></div><div class=""><span style="font-size:12.8px" class="">$d = new Daemon('/var/run/ratingEngine.pid');</span></div><div class=""><span style="font-size:12.8px" class="">$d->start();</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">$daemon = new socketDaemon();</span></div><div class=""><span style="font-size:12.8px" class="">$server = $daemon->create_server('ratingEngineServer', 'ratingEngineClient', $RatingEngine['socketIP'], $RatingEngine['socketPort']);</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">syslog(LOG_NOTICE,"Rating Engine is now ready to serve network requests");</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">$daemon->process();</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">?></span></div></div><div class=""><span style="font-size:12.8px" class=""><b class=""><br class=""></b></span></div><div class=""><span style="font-size:12.8px" class=""><b class="">It is simply printing the contents of script. </b></span></div><div style="font-size:12.8px" class=""><br class=""></div></div></div><div class="">I think it is due to php version compatibility issue. It is having compatible issues with php 5.6 even though release announcements proclaimed this. </div><div class=""><br class=""></div><div class="">Any pointer?</div><div class="">Best Regards. </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 7 July 2017 at 05:10, David Villasmil <span dir="ltr" class=""><<a href="mailto:david.villasmil.work@gmail.com" target="_blank" class="">david.villasmil.work@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I didn't see any errors, in fact it says the engine is ready... Seems to me like a startup script problem, the startup has changed in debian, maybe cdrtool hasn't been updated? Have you tried starting it up manually instead of using the startup script?<br class=""><div class="gmail_quote"><div class=""><div class="h5"><div dir="ltr" class="">On Thu, Jul 6, 2017 at 11:25 PM Aqs Younas <<a href="mailto:aqsyounas@gmail.com" target="_blank" class="">aqsyounas@gmail.com</a>> wrote:<br class=""></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">Good Day.<div class=""><br class=""></div><div class="">I am trying to start cdrtool 9.5.0 after installation on Debian Jessie 8.3 having php 5.6.24 but it is failing with below errors. </div><div class=""><br class=""></div><div class=""><div class="">root@debian:~# /etc/init.d/cdrtool start</div><div class="">[....] Starting cdrtool (via systemctl): cdrtool.serviceJun  5 02:47:30 debian ratingEngine.php[13021]: <?</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: set_time_limit (0);</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: ini_set('mbstring.func_<wbr class="">overload', '0');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: ini_set('output_handler', '');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: @ob_end_flush();</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: require('/etc/cdrtool/global.<wbr class="">inc');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: require('cdr_generic.php');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: require('rating.php');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: require('rating_server.php');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: // Init Rating Engine</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: syslog(LOG_NOTICE,"Starting CDRTool Rating Engine...");</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $RatingEngineServer = new RatingEngine();</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: if (!$RatingEngineServer->init_<wbr class="">ok) {</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: syslog(LOG_NOTICE,'Error: Cannot start Rating Engine, fix the errors and try again');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: exit;</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: }</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: syslog(LOG_NOTICE,"Rating Engine started sucesfully, going to background...");</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: // Go to the background</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $d = new Daemon('/var/run/ratingEngine.<wbr class="">pid');</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $d->start();</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $daemon = new socketDaemon();</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $server = $daemon->create_server('<wbr class="">ratingEngineServer', 'ratingEngineClient', $RatingEngine['socketIP'], $RatingEngine['socketPort']);</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: syslog(LOG_NOTICE,"Rating Engine is now ready to serve network requests");</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: $daemon->process();</div><div class="">Jun  5 02:47:30 debian ratingEngine.php[13021]: ?></div><div class="">Job for cdrtool.service failed. See 'systemctl status cdrtool.service' and 'journalctl -xn' for details.</div><div class="">Jun  5 02:47:30 debian systemd[1]: Failed to start CDR mediation and rating engine for Call Details Records..</div><div class="">Jun  5 02:47:30 debian systemd[1]: Unit cdrtool.service entered failed state.</div><div class=""> failed!</div></div><div class="">Jun  5 02:47:31 debian systemd[1]: Failed to start CDR mediation and rating engine for Call Details Records..<br class=""></div><div class=""><div class="">Jun  5 02:47:31 debian systemd[1]: Unit cdrtool.service entered failed state.</div><div class="">Jun  5 02:47:31 debian systemd[1]: cdrtool.service start request repeated too quickly, refusing to start.</div><div class="">Jun  5 02:47:31 debian systemd[1]: Failed to start CDR mediation and rating engine for Call Details Records..</div><div class="">Jun  5 02:47:31 debian systemd[1]: Unit cdrtool.service entered failed state.</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Even by manually running<b class=""> /var/www/CDRTool/<wbr class="">scripts/importRatingTables.php </b>script is printing its contents on console. </div><div class=""><br class=""></div><div class=""><div class="">root@debian:~# php /var/www/CDRTool/scripts/<wbr class="">importRatingTables.php</div><div class=""><?</div><div class="">require("/etc/cdrtool/global.<wbr class="">inc");</div><div class="">require('cdr_generic.php');</div><div class="">require("rating.php");</div><div class=""><br class=""></div><div class="">set_time_limit(0);</div><div class=""><br class=""></div><div class="">$lockFile=sprintf("/var/lock/<wbr class="">CDRTool_import_rates.lock");</div><div class="">$abort_text="Another import operation is in progress. Try again later.\n";</div><div class=""><br class=""></div><div class="">$f=fopen($lockFile,"w");</div><div class="">if (flock($f, LOCK_EX + LOCK_NB, $w)) {</div><div class="">    if ($w) {</div><div class="">        print $abort_text;</div><div class="">        syslog(LOG_NOTICE,$abort_text)<wbr class="">;</div><div class="">        exit(2);</div><div class="">    }</div><div class="">} else {</div><div class="">    print $abort_text;</div><div class="">    syslog(LOG_NOTICE,$abort_text)<wbr class="">;</div><div class="">    exit(1);</div><div class="">}</div><div class=""><br class=""></div><div class="">$RatingTables= new RatingTables();</div><div class="">$RatingTables->ImportCSVFiles(<wbr class="">);</div><div class=""><br class=""></div><div class="">if ($RatingTables->mustReload) {</div><div class=""><br class=""></div><div class="">    if (!reloadRatingEngineTables()) {</div><div class="">        print "Error: cannot connect to network rating engine\n";</div><div class="">    }</div><div class="">}</div><div class=""><br class=""></div><div class="">?></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">root@debian:~# php -v</div><div class="">PHP 5.6.24-0+deb8u1 (cli) (built: Jul 26 2016 08:17:07)</div><div class="">Copyright (c) 1997-2016 The PHP Group</div><div class="">Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies</div><div class="">    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies</div></div><div class=""><div class=""><br class=""></div><div class="">root@debian:~# lsb_release -a</div><div class="">No LSB modules are available.</div><div class="">Distributor ID: Debian</div><div class="">Description:    Debian GNU/Linux 8.3 (jessie)</div><div class="">Release:        8.3</div><div class="">Codename:       jessie</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Any pointer would be much appreciated. </div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div></div></div></div>
______________________________<wbr class="">_________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" target="_blank" class="">Users@lists.opensips.org</a><br class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.opensips.org/cgi-<wbr class="">bin/mailman/listinfo/users</a><br class="">
</blockquote></div>
<br class="">______________________________<wbr class="">_________________<br class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" class="">Users@lists.opensips.org</a><br class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank" class="">http://lists.opensips.org/cgi-<wbr class="">bin/mailman/listinfo/users</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@lists.opensips.org" class="">Users@lists.opensips.org</a><br class="">http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></div></body></html>