AGI and sql.php

Joined
Apr 22, 2009
Messages
230
Reaction score
0
I'm having some trouble with Freepbx sql.php library for an agi.

I can use it without problem to access the asterisk database, however I can't use this class to access the asteriskcdrb.

The problem is that $dbname is declared as private. If I replace private by public in sql.php I can then do a
$db2 = new AGIDB($AGI);
$db2->dbname='asteriskcdrdb';
and it works well.

Is there a way to use the public $dbhandle to change the $dbname from the agi without having to change sql.php?
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top