CDRTool

classic Classic list List threaded Threaded
10 messages Options
leo
Reply | Threaded
Open this post in threaded view
|

CDRTool

leo
Hello:
I'm trying to run a Kamalio Sip Server with CallControl and CDRTool on a Debian server.
Debian: wheezy - 3.2.0-3-amd64
Kamalio: 3.3
This part is running fine.

CallControl: 2.0.15
CDRTool: 9.0.1

I've installed CallControl and CDRToll according the instructions described on http://callcontrol.ag-projects.com/projects/callcontrol/wiki/Installation and http://cdrtool.ag-projects.com/projects/cdrtool/wiki/Installation_Guide.

The problem i'm having is with the CDRTool, it seems is not starting (invoke-rc.d cdrtool start) does not give any error and there isn't any info in /var/log/syslog. I believe it is not working because doing a netstat there isn't anything in port 9024 and the CallControl logs that is not able to connect.

How could i debug this problem with the CDRTool?

Thanks a lot.
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

Tijmen de Mes
Hi,

You can try to run it manually and see if it gives you any error. You
can run the rating engine manually with:
php /var/www/CDRTool/scripts/ratingEnginge.php

Best regards,

--
Tijmen de Mes
AG Projects


On 02/05/2013 12:13 AM, leo wrote:

> Hello:
> I'm trying to run a Kamalio Sip Server with CallControl and CDRTool on a
> Debian server.
> Debian: wheezy - 3.2.0-3-amd64
> Kamalio: 3.3
> This part is running fine.
>
> CallControl: 2.0.15
> CDRTool: 9.0.1
>
> I've installed CallControl and CDRToll according the instructions described
> on http://callcontrol.ag-projects.com/projects/callcontrol/wiki/Installation
> and http://cdrtool.ag-projects.com/projects/cdrtool/wiki/Installation_Guide.
>
> The problem i'm having is with the CDRTool, it seems is not starting
> (invoke-rc.d cdrtool start) does not give any error and there isn't any info
> in /var/log/syslog. I believe it is not working because doing a netstat
> there isn't anything in port 9024 and the CallControl logs that is not able
> to connect.
>
> How could i debug this problem with the CDRTool?
>
> Thanks a lot.
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-tp7584388.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
leo
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

leo
Hello Tijmen:

Running it manually i receive the following output:
php /var/www/CDRTool/scripts/ratingEnginge.php
PHP Fatal error:  Call-time pass-by-reference has been removed in /var/www/CDRTool/phplib/session.inc on line 259

# php -v
PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

Max Mühlbronner
Hi,


I just looked into this because i once had similar problems and this
caught my interest...

It seems like you have to change:

         $this->serialize($prefix."['".preg_replace("/([\\\'])/", "\\\\1", $k)."']", &$str);

to

        $this->serialize($prefix."['".preg_replace("/([\\\'])/", "\\\\1", $k)."']", $str);


in /var/www/CDRTool/phplib/session.inc



And also a few other instances in the session.inc.

 
Background: http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed



Best Regards

Max M.

On 02/05/2013 11:58 AM, leo wrote:

> Hello Tijmen:
>
> Running it manually i receive the following output:
> php /var/www/CDRTool/scripts/ratingEnginge.php
> PHP Fatal error:  Call-time pass-by-reference has been removed in
> /var/www/CDRTool/phplib/session.inc on line 259
>
> # php -v
> PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10)
> Copyright (c) 1997-2012 The PHP Group
> Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
>
> Thanks
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-tp7584388p7584418.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

Tijmen de Mes
Hi,

Yes CDRTool is not yet compatible with php 5.4. You should run it on php
5.3.x

Best regards,

--
Tijmen de Mes
AG Projects


On 02/05/2013 12:38 PM, Max Mühlbronner wrote:

> Hi,
>
>
> I just looked into this because i once had similar problems and this
> caught my interest...
>
> It seems like you have to change:
>
> $this->serialize($prefix."['".preg_replace("/([\\\'])/", "\\\\1",
> $k)."']", &$str);
>
> to
>
>        $this->serialize($prefix."['".preg_replace("/([\\\'])/",
> "\\\\1", $k)."']", $str);
>
>
> in /var/www/CDRTool/phplib/session.inc
>
>
>
> And also a few other instances in the session.inc.
>
>
> Background:
> http://stackoverflow.com/questions/12322811/call-time-pass-by-reference-has-been-removed
>
>
>
> Best Regards
>
> Max M.
>
> On 02/05/2013 11:58 AM, leo wrote:
>> Hello Tijmen:
>>
>> Running it manually i receive the following output:
>> php /var/www/CDRTool/scripts/ratingEnginge.php
>> PHP Fatal error:  Call-time pass-by-reference has been removed in
>> /var/www/CDRTool/phplib/session.inc on line 259
>>
>> # php -v
>> PHP 5.4.4-11 (cli) (built: Dec 17 2012 08:39:10)
>> Copyright (c) 1997-2012 The PHP Group
>> Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-tp7584388p7584418.html
>> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
leo
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

leo
Thanks Max, that fixed the problem (i've also had to change lines 270, 30 and 308)

Thanks Tijmen, your last reply answered one more question (regarding php version)

Should i install php v3 or different: with php v4, could i found other problems?
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

Tijmen de Mes
Hi,

We have not tested it in PHP 5.4.X. I can imagine, besides this, that
other things could easily be broken as well. So there is always a chance
you get more problems.

Best regards,

--
Tijmen de Mes
AG Projects


On 02/05/2013 03:23 PM, leo wrote:

> Thanks Max, that fixed the problem (i've also had to change lines 270, 30 and
> 308)
>
> Thanks Tijmen, your last reply answered one more question (regarding php
> version)
>
> Should i install php v3 or different: with php v4, could i found other
> problems?
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-tp7584388p7584434.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
leo
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

leo
Thanks. Good to know.
I'll install php 5.3.X
leo
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

leo
Hello:

I'm still having problems with the CDRTool. So, the new enviroment is:

Debian: Squeeze 6.0.6 - 2.6.32-5-amd64
PHP: 5.3.3
CDRTool: 9.0.1

Now i've logs in the syslog:
Feb  6 00:10:52 host cdrtool[7435]: Starting CDRTool Rating Engine...
Feb  6 00:10:52 host cdrtool[7435]: Error in connect(): pconnect as radius to localhost failed
Feb  6 00:10:52 host cdrtool[7435]: Database error: pconnect as radius to localhost failed.
I didn't installed the radius part yet but from the documentation the Rating Engine should be listening on port 9024, but nothing is listening on port 9024.

If I try php /var/www/CDRTool/scripts/ratingEngine.php i receive: Session halted.

Could you give another clue on it?

Thanks a lot.
Reply | Threaded
Open this post in threaded view
|

Re: CDRTool

Tijmen de Mes
Hi,

Yes it needs to connect to radius to rate/normalize the calls. You can
skip it by changing the database definition in global.inc for radius:

var $Halt_On_Error ="no";

Best regards,

--
Tijmen de Mes
AG Projects


On 02/06/2013 12:17 AM, leo wrote:

> Hello:
>
> I'm still having problems with the CDRTool. So, the new enviroment is:
>
> Debian: Squeeze 6.0.6 - 2.6.32-5-amd64
> PHP: 5.3.3
> CDRTool: 9.0.1
>
> Now i've logs in the syslog:
> Feb  6 00:10:52 host cdrtool[7435]: Starting CDRTool Rating Engine...
> Feb  6 00:10:52 host cdrtool[7435]: Error in connect(): pconnect as radius
> to localhost failed
> Feb  6 00:10:52 host cdrtool[7435]: Database error: pconnect as radius to
> localhost failed.
> I didn't installed the radius part yet but from the documentation the Rating
> Engine should be listening on port 9024, but nothing is listening on port
> 9024.
>
> If I try php /var/www/CDRTool/scripts/ratingEngine.php i receive: Session
> halted.
>
> Could you give another clue on it?
>
> Thanks a lot.
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/CDRTool-tp7584388p7584449.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Tijmen de Mes
AG Projects


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users