<?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[Activate CDR button in Phonebook]]></title><description><![CDATA[<p dir="auto">How can i activate "Call history" button in Phonebook.</p>
<p dir="auto">I can see CDRs by http://   /showcdr.php but there is no "call history" button in Phonebook page.</p>
<p dir="auto">Standalone asterisk 1.4 installation. 2.27j version of fop2.</p>
<p dir="auto">Best regards,<br />
Sergio.</p>
]]></description><link>http://localhost:4567/topic/1657/activate-cdr-button-in-phonebook</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 11:37:48 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1657.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Dec 2013 19:49:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Sun, 26 Jan 2014 21:26:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello again,</p>
<p dir="auto">Thanks for your answer. It turns out it was a permission issue as suspected. After granting the fop2 user access to the asteriskcdrdb database with the following command:<br />
GRANT ALL PRIVILEGES ON asteriskcdrdb.* to fop2@'localhost' identified by 'password';<br />
it now works perfectly!</p>
<p dir="auto">Best regards,<br />
Carlos</p>
]]></description><link>http://localhost:4567/post/7155</link><guid isPermaLink="true">http://localhost:4567/post/7155</guid><dc:creator><![CDATA[Carlos]]></dc:creator><pubDate>Sun, 26 Jan 2014 21:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Sun, 26 Jan 2014 19:04:00 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Could there be a permission problem since config.php is set to the fop2 database?</p>
</blockquote>
<p dir="auto">Yes, it could be a permission issue. Whatever user/pass you have in config.php in fop2 must be granted access to asteriskcdrdb.cdr</p>
]]></description><link>http://localhost:4567/post/7154</link><guid isPermaLink="true">http://localhost:4567/post/7154</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 26 Jan 2014 19:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Fri, 24 Jan 2014 21:41:37 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your answer Nicolas !</p>
<p dir="auto">So I created the asteriskcdrdb database:</p>
<p dir="auto">CREATE DATABASE asteriskcdrdb;</p>
<p dir="auto">Added the user:</p>
<p dir="auto">GRANT INSERT, SELECT ON asteriskcdrdb.* TO asteriskcdruser@'localhost' IDENTIFIED BY 'XXXXXXXXX';</p>
<p dir="auto">Created the necessary table and columns:</p>
<p dir="auto">CREATE TABLE <code>cdr</code> (<br />
<code>calldate</code> datetime NOT NULL default '0000-00-00 00:00:00',<br />
<code>clid</code> varchar(80) NOT NULL default '',<br />
<code>src</code> varchar(80) NOT NULL default '',<br />
<code>dst</code> varchar(80) NOT NULL default '',<br />
<code>dcontext</code> varchar(80) NOT NULL default '',<br />
<code>channel</code> varchar(80) NOT NULL default '',<br />
<code>dstchannel</code> varchar(80) NOT NULL default '',<br />
<code>lastapp</code> varchar(80) NOT NULL default '',<br />
<code>lastdata</code> varchar(80) NOT NULL default '',<br />
<code>duration</code> int(11) NOT NULL default '0',<br />
<code>billsec</code> int(11) NOT NULL default '0',<br />
<code>disposition</code> varchar(45) NOT NULL default '',<br />
<code>amaflags</code> int(11) NOT NULL default '0',<br />
<code>accountcode</code> varchar(20) NOT NULL default '',<br />
<code>uniqueid</code> VARCHAR(32) NOT NULL default '',<br />
<code>userfield</code> VARCHAR(255) NOT NULL default '',<br />
<code>peeraccount</code> VARCHAR(20) NOT NULL default '',<br />
<code>linkedid</code> VARCHAR(32) NOT NULL default '',<br />
<code>sequence</code> int(11) NOT NULL default '0'<br />
);</p>
<p dir="auto">ALTER TABLE <code>cdr</code> ADD INDEX ( <code>calldate</code> );<br />
ALTER TABLE <code>cdr</code> ADD INDEX ( <code>dst</code> );<br />
ALTER TABLE <code>cdr</code> ADD INDEX ( <code>accountcode</code> );</p>
<p dir="auto">Then edited cdr_mysql.conf for the right credentials.</p>
<p dir="auto">Everything seems to be working:</p>
<p dir="auto">asterisk*CLI&gt; cdr mysql status<br />
Connected to asteriskcdrdb on socket file default using table cdr for 12 seconds.</p>
<p dir="auto">And I can see my logged testcall by running<br />
mysql&gt; SELECT * FROM cdr;</p>
<p dir="auto">So far so good !</p>
<p dir="auto">Unfortunately after editing phonetabs.cdr and showcdr.php I still don't see the call history tab.<br />
Is there any more files that I need to edit? Could there be a permission problem since config.php is set to the fop2 database?</p>
<p dir="auto">Best regards,<br />
Carlos</p>
]]></description><link>http://localhost:4567/post/7153</link><guid isPermaLink="true">http://localhost:4567/post/7153</guid><dc:creator><![CDATA[Carlos]]></dc:creator><pubDate>Fri, 24 Jan 2014 21:41:37 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Fri, 24 Jan 2014 02:30:26 GMT]]></title><description><![CDATA[<p dir="auto">You do not need to create a table on a different database, you can specify a database and table name using the format</p>
<p dir="auto">databasename.tablename</p>
<p dir="auto">That is what is set in the stock/default .php files where the cdr table is in the asteriskcdr database (while the rest of the freepbx configs are on the asterisk database, or the fop2 database if you do not use freepbx).</p>
<p dir="auto">So, if your cdrs are in database asteriskcdrdb and the table is cdr it will work as is, if the database and tables are named differently, just grep for asteriskcdrdb.cdr on the .php files and replace where needed.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/7152</link><guid isPermaLink="true">http://localhost:4567/post/7152</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 24 Jan 2014 02:30:26 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Thu, 23 Jan 2014 22:44:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to setup the exact same thing. I'm running standalone asterisk 11.7.0 and FOP2 2.27 on CentOS 6.4.<br />
Already set up phonebook and recordings with MySql which works great. Only call history tab left.</p>
<p dir="auto">As I understand it from this post and <a href="http://forum.fop2.com/esotalk/index.php/3478" rel="nofollow ugc">View Post 3478</a> you have to<br />
edit showcdr.php, phonetabs.php and config.php (in /var/www/html/fop2) to set the correct names of which database and table to use.</p>
<p dir="auto">My question is if there will be a user/permission problem if you use another database for CDR logs than "fop2" (which is already set in config.php for phonebook and recordings). Would it be best/easiest to create a new "cdr" table in the fop2 database (which the fop2 user already has acces rights to)?<br />
The reason for my question is that most "howtos" regarding mysql cdr logging tell you to setup an "asteriskcdrdb" database and "cdr" table with access for an "asterisk" user.</p>
<p dir="auto">Best regards<br />
Carlos</p>
]]></description><link>http://localhost:4567/post/7151</link><guid isPermaLink="true">http://localhost:4567/post/7151</guid><dc:creator><![CDATA[Carlos]]></dc:creator><pubDate>Thu, 23 Jan 2014 22:44:10 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Sat, 07 Dec 2013 18:10:14 GMT]]></title><description><![CDATA[<p dir="auto">thanks for posting the solution.</p>
]]></description><link>http://localhost:4567/post/7150</link><guid isPermaLink="true">http://localhost:4567/post/7150</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sat, 07 Dec 2013 18:10:14 GMT</pubDate></item><item><title><![CDATA[Reply to Activate CDR button in Phonebook on Wed, 04 Dec 2013 20:10:37 GMT]]></title><description><![CDATA[<p dir="auto">Answering myself with Nicolas live chat help. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">We have to look at two files showcdr.php and phonetabs.php. In both files it must be set the correct name of DB.table of CDR storage.</p>
<p dir="auto">So if we have<br />
$grid-&gt;set_table('asterisk.cdr'); in showcdr.php<br />
we must have<br />
$res = $db-&gt;consulta("DESC asterisk.cdr");<br />
in phonetabs.php</p>
<p dir="auto">Best regards,<br />
Sergio.</p>
]]></description><link>http://localhost:4567/post/7149</link><guid isPermaLink="true">http://localhost:4567/post/7149</guid><dc:creator><![CDATA[seregh]]></dc:creator><pubDate>Wed, 04 Dec 2013 20:10:37 GMT</pubDate></item></channel></rss>