<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Call History - SELECT command denied to user]]></title><description><![CDATA[<p dir="auto">I am working with a fresh install of FreePBX and am having trouble getting call history to display on any user panel or operator panel. I get the following error on FOP2:</p>
<p dir="auto"><em>SELECT command denied to user ‘’@‘localhost’ for table ‘cdr’</em><br />
Thanks for any suggestions you can provide.</p>
]]></description><link>http://localhost:4567/topic/2772/call-history-select-command-denied-to-user</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 06:42:07 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/2772.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Dec 2019 09:17:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Thu, 20 May 2021 13:28:35 GMT]]></title><description><![CDATA[<p dir="auto">Has anyone been able to get this to work?</p>
]]></description><link>http://localhost:4567/post/11747</link><guid isPermaLink="true">http://localhost:4567/post/11747</guid><dc:creator><![CDATA[gkuhns]]></dc:creator><pubDate>Thu, 20 May 2021 13:28:35 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Mon, 05 Apr 2021 15:39:11 GMT]]></title><description><![CDATA[<p dir="auto">Any update on this? We think we are in the same boat.</p>
]]></description><link>http://localhost:4567/post/11746</link><guid isPermaLink="true">http://localhost:4567/post/11746</guid><dc:creator><![CDATA[kelmore]]></dc:creator><pubDate>Mon, 05 Apr 2021 15:39:11 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Fri, 20 Nov 2020 18:57:00 GMT]]></title><description><![CDATA[<p dir="auto">Now after trying to reinstall "Call History" the plugin installer reports "Not compatible with this version".<br />
Call History not compatible with this version... Great, but no warning message before upgrading FOP2... damned.</p>
<p dir="auto">So we have to stick to FreePBX v14 and FOP2 2.31.25 until Call History is fixed and ready for new version of FreePBX v15.</p>
]]></description><link>http://localhost:4567/post/11745</link><guid isPermaLink="true">http://localhost:4567/post/11745</guid><dc:creator><![CDATA[develissimo]]></dc:creator><pubDate>Fri, 20 Nov 2020 18:57:00 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Fri, 20 Nov 2020 18:43:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bayyou" aria-label="Profile: bayyou">@<bdi>bayyou</bdi></a> This is not fixed yet on FOP2 v 2.31.29 after upgrade from FOP2 v 2.31.25 to v 2.31.29!<br />
This should not be an issue with DB settings in /var/www/html/fop2/config.php due to the fact, that the DB settings are <strong>programmatically and correctly fetched with this procedure in /var/www/html/fop2/config.php:</strong><br />
if(function_exists('mysqli_connect')) {</p>
<pre><code>    $db = new dbcon($DBHOST, $DBUSER, $DBPASS, $DBNAME, false, true, $FORCE_UTF8);

    if(!$db-&gt;is_connected()) {
        // Database connection details from amportal 
        if (is_readable("/etc/amportal.conf")) {
            $amp_conf = parse_amportal_conf("/etc/amportal.conf");
            $DBHOST = $amp_conf['AMPDBHOST'];
            $DBNAME = $amp_conf['AMPDBNAME'];
            $DBUSER = $amp_conf['AMPDBUSER'];
            $DBPASS = $amp_conf['AMPDBPASS'];
        } else if (is_readable("/etc/freepbx/freepbx.conf")) {
            $amp_conf = parse_amportal_conf("/etc/freepbx/freepbx.conf");
            $DBHOST = $amp_conf['AMPDBHOST'];
            $DBNAME = $amp_conf['AMPDBNAME'];
            $DBUSER = $amp_conf['AMPDBUSER'];
            $DBPASS = $amp_conf['AMPDBPASS'];
        } else if (is_readable("/etc/freepbx.conf")) {
            $amp_conf = parse_amportal_conf("/etc/freepbx.conf");
            $DBHOST = $amp_conf['AMPDBHOST'];
            $DBNAME = $amp_conf['AMPDBNAME'];
            $DBUSER = $amp_conf['AMPDBUSER'];
            $DBPASS = $amp_conf['AMPDBPASS'];
        } else if (is_readable("/etc/asterisk/snep/snep-features.conf")) {
            $DBHOST = 'localhost';
            $DBNAME = 'snep';
            $DBUSER = 'snep';
            $DBPASS = 'sneppass';
            $CDRDBTABLE = "snep.cdr";
        }
        $db = new dbcon($DBHOST, $DBUSER, $DBPASS, $DBNAME, true, true, $FORCE_UTF8);
    }

    set_config($DBSETUP);

}
</code></pre>
<p dir="auto">So there is still a Bug in FOP2 not able to show "Call History".</p>
]]></description><link>http://localhost:4567/post/11744</link><guid isPermaLink="true">http://localhost:4567/post/11744</guid><dc:creator><![CDATA[develissimo]]></dc:creator><pubDate>Fri, 20 Nov 2020 18:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Mon, 04 May 2020 04:53:14 GMT]]></title><description><![CDATA[<p dir="auto">Just like milos said, you have to make sure you put database setting in your pbx into your fop2. in here whe you use freepbx you can find database setting (dbname, user, password) in the /etc/freepbx.conf and change fop2 database setting, you can find in the  /var/www/html/fop2/config.php.</p>
]]></description><link>http://localhost:4567/post/11743</link><guid isPermaLink="true">http://localhost:4567/post/11743</guid><dc:creator><![CDATA[bayyou]]></dc:creator><pubDate>Mon, 04 May 2020 04:53:14 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Sat, 14 Dec 2019 07:46:04 GMT]]></title><description><![CDATA[<p dir="auto">I'm sorry; I've only worked with FreePBX. Maybe the forum Admin can help you.</p>
]]></description><link>http://localhost:4567/post/11742</link><guid isPermaLink="true">http://localhost:4567/post/11742</guid><dc:creator><![CDATA[joshuamarius]]></dc:creator><pubDate>Sat, 14 Dec 2019 07:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Thu, 12 Dec 2019 15:28:06 GMT]]></title><description><![CDATA[<p dir="auto"><img src="http://forum.fop2.com/uploads/editor/qg/rgm6lhs5bmom.png" alt="" class="img-markdown  img-fluid" /><br />
<img src="http://forum.fop2.com/uploads/editor/yi/pveejmpeoptg.png" alt="" class="img-markdown  img-fluid" /><br />
the database pruebacdr is created automatically when I configure plugin CDR to DataBase on fop2 manager, but the table cdr is not created automatically while other 3 tables created automatically and when I add contact on user profile, it added in visual_phonebook table, any idea for my problem?<br />
It's great appreciation if somebody would check this.</p>
]]></description><link>http://localhost:4567/post/11741</link><guid isPermaLink="true">http://localhost:4567/post/11741</guid><dc:creator><![CDATA[Jay]]></dc:creator><pubDate>Thu, 12 Dec 2019 15:28:06 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Thu, 12 Dec 2019 15:23:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi joshuamarius,<br />
Do you have any idea with integrate yeastar PBX? I faced no record when I tried to check call history, I know it is via plugin and FOP2 server will save AMI cdr event to local database and also I have change file /var/www/html/fop2/config.php to details as show in the photo, I still not able to get cdr, also it's none saved in database when I access mysql to check.<br />
<img src="http://forum.fop2.com/uploads/editor/7o/8fl0234qikpm.png" alt="" class="img-markdown  img-fluid" /></p>
]]></description><link>http://localhost:4567/post/11740</link><guid isPermaLink="true">http://localhost:4567/post/11740</guid><dc:creator><![CDATA[Jay]]></dc:creator><pubDate>Thu, 12 Dec 2019 15:23:05 GMT</pubDate></item><item><title><![CDATA[Reply to Call History - SELECT command denied to user on Wed, 11 Dec 2019 19:23:36 GMT]]></title><description><![CDATA[<p dir="auto">Make sure when you post that you specify the version you are using as that can help us troubleshoot better.</p>
<p dir="auto">This worked for me:<br />
Configure the file /var/www/html/fop2/config.php with the credentials to the Asterisk Database.<br />
I found the credentials to my system in the file: /etc/freepbx.conf<br />
Make sure the following line also exists in: /var/www/html/fop2/config.php<br />
$CDRDBTABLE = "asteriskcdrdb.cdr";<br />
After editing this, I restarted the service and all worked (you may also try a reboot)</p>
]]></description><link>http://localhost:4567/post/11739</link><guid isPermaLink="true">http://localhost:4567/post/11739</guid><dc:creator><![CDATA[joshuamarius]]></dc:creator><pubDate>Wed, 11 Dec 2019 19:23:36 GMT</pubDate></item></channel></rss>