Using sql.php from an AGI?

Discussion in 'General' started by Patrick_elx, Nov 30, 2009.

  1. Patrick_elx

    Dec 14, 2008
    Likes Received:
    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);
    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?

Share This Page