<?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 + odbc_cdr]]></title><description><![CDATA[<p dir="auto">Hi! Will call history works with cdr_odbc? I try, but history is empty<br />
'src' and 'dst' fields exists in table</p>
]]></description><link>https://forum.fop2.com/topic/2428/call-history-odbc_cdr</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 20:02:53 GMT</lastBuildDate><atom:link href="https://forum.fop2.com/topic/2428.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Dec 2016 14:12:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to call history + odbc_cdr on Wed, 28 Dec 2016 13:13:14 GMT]]></title><description><![CDATA[<p dir="auto">thanks,</p>
]]></description><link>https://forum.fop2.com/post/10608</link><guid isPermaLink="true">https://forum.fop2.com/post/10608</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 28 Dec 2016 13:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Wed, 28 Dec 2016 07:22:03 GMT]]></title><description><![CDATA[<p dir="auto">The problem was solved by</p>
<pre><code>diff tmp/dbgrid.php lib/dbgrid.php
2618c2618
&lt;         $res = $this-&gt;link-&gt;consulta("SELECT $this-&gt;fields FROM %s %s WHERE %s = %s %s",$this-&gt;table,$joinstring,$this-&gt;table.".".$this-&gt;pk,$id, $this-&gt;groupby);
---
&gt;         $res = $this-&gt;link-&gt;consulta("SELECT $this-&gt;fields FROM %s %s WHERE %s = '%s' %s",$this-&gt;table,$joinstring,$this-&gt;table.".".$this-&gt;pk,$id, $this-&gt;groupby);
</code></pre>
]]></description><link>https://forum.fop2.com/post/10607</link><guid isPermaLink="true">https://forum.fop2.com/post/10607</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Wed, 28 Dec 2016 07:22:03 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Wed, 28 Dec 2016 06:14:45 GMT]]></title><description><![CDATA[<p dir="auto">I think, the problem is here<br />
/var/www/html/fop2/lib/dblib.php (line 356)</p>
<p dir="auto">mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given</p>
<p dir="auto">i.e. mysqli_num_rows(this-&gt;result), this-&gt;result doesnt contain mysqli_result data. Plese show, where its colled in detail record.<br />
PS. When I comment this function and return 1 instead, I see "cancel" button on detail record page. The problem is here.</p>
]]></description><link>https://forum.fop2.com/post/10606</link><guid isPermaLink="true">https://forum.fop2.com/post/10606</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Wed, 28 Dec 2016 06:14:45 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Tue, 27 Dec 2016 22:53:19 GMT]]></title><description><![CDATA[<p dir="auto">hmmm, this:</p>
<p dir="auto">Headers and client library minor version mismatch. Headers:50550 Library:50635</p>
<p dir="auto">seems to indicate that you have conflicting packages/versions installed for mysql and libaries.... maybe the problem is a result of that mismatch. You will have to be sure you have same version of mysql-xx everything installed.</p>
]]></description><link>https://forum.fop2.com/post/10605</link><guid isPermaLink="true">https://forum.fop2.com/post/10605</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 27 Dec 2016 22:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Tue, 27 Dec 2016 15:02:02 GMT]]></title><description><![CDATA[<p dir="auto">I get this:</p>
<p dir="auto">notice<br />
/var/www/html/fop2/lib/dblib.php (line 59)</p>
<p dir="auto">mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50550 Library:50635<br />
notice<br />
/var/www/html/fop2/calldetailrecords.php (line 241)</p>
<p dir="auto">Undefined index: filterdir<br />
notice<br />
/var/www/html/fop2/calldetailrecords.php (line 260)</p>
<p dir="auto">Undefined index: filterdispo<br />
View Record<br />
notice<br />
/var/www/html/fop2/lib/dblib.php (line 356)</p>
<p dir="auto">mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given</p>
]]></description><link>https://forum.fop2.com/post/10604</link><guid isPermaLink="true">https://forum.fop2.com/post/10604</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Tue, 27 Dec 2016 15:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Tue, 27 Dec 2016 14:39:47 GMT]]></title><description><![CDATA[<p dir="auto">You can enable debug in config.php and see if you get some errors. It is not possible for me to test locally.</p>
]]></description><link>https://forum.fop2.com/post/10603</link><guid isPermaLink="true">https://forum.fop2.com/post/10603</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 27 Dec 2016 14:39:47 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Tue, 27 Dec 2016 07:33:20 GMT]]></title><description><![CDATA[<p dir="auto">Its printscreen</p>
]]></description><link>https://forum.fop2.com/post/10602</link><guid isPermaLink="true">https://forum.fop2.com/post/10602</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Tue, 27 Dec 2016 07:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Tue, 27 Dec 2016 06:30:43 GMT]]></title><description><![CDATA[<p dir="auto">Its works, but 'View record' page is still empty (In mysql schema it was empty too)..</p>
]]></description><link>https://forum.fop2.com/post/10601</link><guid isPermaLink="true">https://forum.fop2.com/post/10601</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Tue, 27 Dec 2016 06:30:43 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Mon, 26 Dec 2016 15:24:39 GMT]]></title><description><![CDATA[<p dir="auto">In Asternic CDR Standalone, in config.php you can configure the $DATEFIELD to be 'start' , so it should work.</p>
]]></description><link>https://forum.fop2.com/post/10600</link><guid isPermaLink="true">https://forum.fop2.com/post/10600</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 26 Dec 2016 15:24:39 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Mon, 26 Dec 2016 15:22:23 GMT]]></title><description><![CDATA[<p dir="auto">I will try tomorrow, thank you!<br />
What aboute odbc schema and asternic cdr report? Will it work?</p>
]]></description><link>https://forum.fop2.com/post/10599</link><guid isPermaLink="true">https://forum.fop2.com/post/10599</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Mon, 26 Dec 2016 15:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Mon, 26 Dec 2016 15:12:44 GMT]]></title><description><![CDATA[<p dir="auto">Try to edit calldetailrecords.php and set $datefield to the value corresponding to your schema (start), instead of the default 'calldate'.</p>
<p dir="auto">You can set that around line 18 of such script.</p>
<p dir="auto">Best regards,</p>
]]></description><link>https://forum.fop2.com/post/10598</link><guid isPermaLink="true">https://forum.fop2.com/post/10598</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 26 Dec 2016 15:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Mon, 26 Dec 2016 08:16:02 GMT]]></title><description><![CDATA[<p dir="auto">Its ODBC<br />
CREATE TABLE <code>cdr</code> (<br />
<code>accountcode</code> varchar(20) DEFAULT NULL,<br />
<code>src</code> varchar(80) DEFAULT NULL,<br />
<code>dst</code> varchar(80) DEFAULT NULL,<br />
<code>dcontext</code> varchar(80) DEFAULT NULL,<br />
<code>clid</code> varchar(80) DEFAULT NULL,<br />
<code>channel</code> varchar(80) DEFAULT NULL,<br />
<code>dstchannel</code> varchar(80) DEFAULT NULL,<br />
<code>lastapp</code> varchar(80) DEFAULT NULL,<br />
<code>lastdata</code> varchar(80) DEFAULT NULL,<br />
<code>start</code> datetime DEFAULT NULL,<br />
<code>answer</code> datetime DEFAULT NULL,<br />
<code>end</code> datetime DEFAULT NULL,<br />
<code>duration</code> int(11) DEFAULT NULL,<br />
<code>billsec</code> int(11) DEFAULT NULL,<br />
<code>disposition</code> varchar(45) DEFAULT NULL,<br />
<code>amaflags</code> varchar(45) DEFAULT NULL,<br />
<code>userfield</code> varchar(256) DEFAULT NULL,<br />
<code>uniqueid</code> varchar(150) DEFAULT NULL,<br />
<code>linkedid</code> varchar(150) DEFAULT NULL,<br />
<code>peeraccount</code> varchar(20) DEFAULT NULL,<br />
<code>sequence</code> int(11) DEFAULT NULL<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8;</p>
<h2>--<br />
-- Дамп данных таблицы <code>cdr</code></h2>
<p dir="auto">INSERT INTO <code>cdr</code> (<code>accountcode</code>, <code>src</code>, <code>dst</code>, <code>dcontext</code>, <code>clid</code>, <code>channel</code>, <code>dstchannel</code>, <code>lastapp</code>, <code>lastdata</code>, <code>start</code>, <code>answer</code>, <code>end</code>, <code>duration</code>, <code>billsec</code>, <code>disposition</code>, <code>amaflags</code>, <code>userfield</code>, <code>uniqueid</code>, <code>linkedid</code>, <code>peeraccount</code>, <code>sequence</code>) VALUES<br />
(NULL, NULL, '17710', 'incom', '"user101" &lt;&gt;', 'IAX2/user101-15651', 'IAX2/user151-21434', 'Dial', 'IAX2/user151/10,40', '2016-12-21 17:08:37', '2016-12-21 17:08:37', '2016-12-21 17:09:17', 40, 40, 'NO ANSWER', 'DOCUMENTATION', NULL, 'List-1482329317.9312', 'List-1482329317.9312', NULL, 1070);</p>
<p dir="auto">and MySQL  schema</p>
<p dir="auto">CREATE TABLE <code>cdr_old</code> (<br />
<code>id</code> int(11) NOT NULL,<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>userfield</code> varchar(255) NOT NULL DEFAULT '',<br />
<code>uniqueid</code> varchar(32) NOT NULL DEFAULT ''<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8;</p>
<h2>--<br />
-- Дамп данных таблицы <code>cdr_old</code></h2>
<p dir="auto">INSERT INTO <code>cdr_old</code> (<code>id</code>, <code>calldate</code>, <code>clid</code>, <code>src</code>, <code>dst</code>, <code>dcontext</code>, <code>channel</code>, <code>dstchannel</code>, <code>lastapp</code>, <code>lastdata</code>, <code>duration</code>, <code>billsec</code>, <code>disposition</code>, <code>amaflags</code>, <code>accountcode</code>, <code>userfield</code>, <code>uniqueid</code>) VALUES<br />
(1, '2015-12-20 18:09:57', '"1001" &lt;1001&gt;', '1001', '7170', 'incom', 'OOH323/cisco', '', 'Dial', '', 3, 3, 'ANSWERED', 3, 'ast_h323', '', 'asterisk_list-1450624197.0');</p>
]]></description><link>https://forum.fop2.com/post/10597</link><guid isPermaLink="true">https://forum.fop2.com/post/10597</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Mon, 26 Dec 2016 08:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Sun, 25 Dec 2016 15:47:25 GMT]]></title><description><![CDATA[<p dir="auto">The tables is different. I use cdr adaptive odbc with default asterisk schema (asterisk cert 13.8). Its because cdr_mysql is market as depricated.<br />
We want to buy asternic cdr report too. Do we have to go back to cdr mysql or we can use odbc?</p>
]]></description><link>https://forum.fop2.com/post/10596</link><guid isPermaLink="true">https://forum.fop2.com/post/10596</guid><dc:creator><![CDATA[AlexRS]]></dc:creator><pubDate>Sun, 25 Dec 2016 15:47:25 GMT</pubDate></item><item><title><![CDATA[Reply to call history + odbc_cdr on Fri, 23 Dec 2016 17:15:00 GMT]]></title><description><![CDATA[<p dir="auto">driver (odbc or mysql) does not matter, but you might want to look at the cdr table schema, and database and table names (That you can set in config.php).</p>
<p dir="auto">Best regards,</p>
]]></description><link>https://forum.fop2.com/post/10595</link><guid isPermaLink="true">https://forum.fop2.com/post/10595</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 23 Dec 2016 17:15:00 GMT</pubDate></item></channel></rss>