Code Monkey home page Code Monkey logo

asterisk-cdr-viewer's People

Contributors

g613 avatar kot1grun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asterisk-cdr-viewer's Issues

Class 'PDO' not found

great project!

i am facing an issue while running the queries :

/var/log/httpd/error_log says :

PHP Fatal error: Class 'PDO' not found in

Concurrent Calls report works for 1 day but not for a month

What steps will reproduce the problem?
1. Select only Concurrent Calls
2. Select 1 month or more for Call dates
3. Run the report and it takes for ever and won't come back with report.

What is the expected output? What do you see instead?
It should show concurrent calls for whole month with MAX Calls showing

What version of the product are you using? On what operating system?
Latest 0.9x

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Jun 2012 at 8:17

WAV location

What steps will reproduce the problem?
1. WAV location /var/spool/asterisk/monitor and /Year/mounth/Day. How is set 
this config ?

Original issue reported on code.google.com by [email protected] on 20 Mar 2014 at 10:30

Error in index.php

I'm getting the following error:

PHP Parse error: syntax error, unexpected '[' in /var/www/astcdr/index.php on line 23

New rate_type 30s+s and 30s+6s


Hello, I added the rate_type type 30s+s this way:

functions.inc.php > add >

} elseif ( $callrate_cache[$file][substr($dst,0,$i)][2] == '30s+s' ) {
// 30 second + per second
if ( $duration < 30) {
$call_rate = ($callrate_cache[$file][substr($dst,0,$i)][0] / 2);
} else {
$call_rate = $callrate_cache[$file][substr($dst,0,$i)][0] + ( ($duration-60) * 
($callrate_cache[$file][substr($dst,0,$i)][0] / 60) );
}

And I need to add rate_type 30s+6s to use Skype.

Could someone help, please?

Original issue reported on code.google.com by [email protected] on 23 Oct 2014 at 4:06

Attachments:

CID NAME doesn't show in reports

What steps will reproduce the problem?
1. Simulate a call into asterisk with CID NAME (e.g. "John Smith" <4145556666>
2. Check Reports and it will show 4145556666 but not John Smith
3. Checking /var/log/asterisk/full I can see "John Smith" and it's also in 
asteriskcdrdb in MySQL.

What is the expected output? What do you see instead?
CDR Report should view both CID Name and CLID for all Dahdi, SIP, IAX, and 
other technology trunks.

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 11 Sep 2012 at 5:41

PHP Notice Undifined Index

I setup a new server. Installed Asterisk-CDR-Viewer and I noticed my Apache log files were huge. Looking at the logs they are filling with errors. Just accessing the home screen without doing a search produces the following.

[Fri Jun 30 09:06:14.831624 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831630 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831633 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831636 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831643 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831646 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831649 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831652 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831655 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831658 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831661 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/templates/form.tpl.php on line 23
[Fri Jun 30 09:06:14.831696 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831700 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831703 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831706 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831708 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831711 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831714 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831717 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831720 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831722 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831725 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:14.831733 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/templates/form.tpl.php on line 50
[Fri Jun 30 09:06:15.537964 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmonth in /var/www/html/cdr/index.php on line 23
[Fri Jun 30 09:06:15.538014 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startyear in /var/www/html/cdr/index.php on line 24
[Fri Jun 30 09:06:15.538030 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startday in /var/www/html/cdr/index.php on line 26
[Fri Jun 30 09:06:15.538039 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: starthour in /var/www/html/cdr/index.php on line 33
[Fri Jun 30 09:06:15.538046 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: startmin in /var/www/html/cdr/index.php on line 34
[Fri Jun 30 09:06:15.538068 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmonth in /var/www/html/cdr/index.php on line 39
[Fri Jun 30 09:06:15.538080 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endyear in /var/www/html/cdr/index.php on line 40
[Fri Jun 30 09:06:15.538091 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endday in /var/www/html/cdr/index.php on line 42
[Fri Jun 30 09:06:15.538120 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endhour in /var/www/html/cdr/index.php on line 47
[Fri Jun 30 09:06:15.538128 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: endmin in /var/www/html/cdr/index.php on line 48
[Fri Jun 30 09:06:15.538145 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: src in /var/www/html/cdr/index.php on line 56
[Fri Jun 30 09:06:15.538153 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: dst in /var/www/html/cdr/index.php on line 62
[Fri Jun 30 09:06:15.538159 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: did in /var/www/html/cdr/index.php on line 68
[Fri Jun 30 09:06:15.538168 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: channel in /var/www/html/cdr/index.php on line 75
[Fri Jun 30 09:06:15.538184 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: clid in /var/www/html/cdr/index.php on line 81
[Fri Jun 30 09:06:15.538194 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: dstchannel in /var/www/html/cdr/index.php on line 84
[Fri Jun 30 09:06:15.538207 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: userfield in /var/www/html/cdr/index.php on line 93
[Fri Jun 30 09:06:15.538216 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: accountcode in /var/www/html/cdr/index.php on line 96
[Fri Jun 30 09:06:15.538225 2017] [:error] [pid 7526] [client 10.13.13.11:53184] PHP Notice:  Undefined index: limit in /var/www/html/cdr/index.php on line 99

Using with Postgres

This message is writen in Spanish, so if you have problems understanding the 
content, use a traductor.

Para usar esta aplicacion con postgres hice unos pequeños cambios. En primer 
lugar la función que se debe crear en la base de datos debe ser 

CREATE FUNCTION unix_timestamp(TIMESTAMP) RETURNS INTEGER AS '
SELECT date_part(''epoch'', $1)::INTEGER AS RESULT
' LANGUAGE sql;

Para alguien que no sepa, le puede parecer un dolor de cabeza meter la 
instrucción en el motor de base de datos y que no le funcione, porque le sobra 
el CREATE FUNCTION.

Otra cosa que hay que tener en cuenta es que en el config.inc.php en vez de la 
opción mysql, se debe usar pgsql (igual para el que no sabe, el que maneja PDO 
no tiene problema).

Y por ultimo para evitar problemas en la ejecución de las consultas a la base 
de datos, se debe quitar la variable $db_name de todas ellas.

Supongo que ya con eso es suficiente. No es un problema en si, sino la 
solución a lo que encontré.

Best Regards and THX for your effort. :D

Original issue reported on code.google.com by [email protected] on 2 Jul 2014 at 8:23

Postgresql

Hi.
Do you plan to support Postgresql, not only mysql cdr?

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 2:13

Freepbx distro recordings

I am connected to a freepbx distro server on my local network, All is working 
fine but I cannot figure out how to show the recorded files, they are in the 
freepbx default location and I can see them using there built in cdr viewer but 
not on this software, I looked at config.inc.php buy could not figure out how 
to make this work, any help would be great.

Gary.


Original issue reported on code.google.com by [email protected] on 4 Apr 2014 at 8:02

Development

Call cost rounding up.
I need assistance with custom development on the interface but the email for 
igor does not work

Original issue reported on code.google.com by [email protected] on 24 Jul 2014 at 8:29

Time interval does not affects

What steps will reproduce the problem?
> 1. Just run search with date and time intervals

What is the expected output? What do you see instead?
> Calls record between "time from" and "time to", but a got out of selected 
time call record

What version of the product are you using? On what operating system?
> actually 1.0.2, but footer still show 1.0.1 :))

See the screenshot

Original issue reported on code.google.com by [email protected] on 14 Apr 2014 at 11:14

Attachments:

CEL Records and Specifying Database

I look after a busy Asterisk server that is generating a 1GB CDR DB every few months. I archive the database on a monthly basis and would like to use this program to view it on a separate system

However, to do this I would need the ability to be able to select a database from the GUI, for example, January records, February records etc

Also, I need to reference the CEL stats that are also recorded in the same database as the CDR. I use FreePBX and I find it useful in the FreePBX interface, are you able to link to these as well? - Under the FreePBX GUI which looks very similar to yours the 'System' column is hyperlinked to the CEL data for that particular call, this would be a great feature.

Translation support

Hi.
Do you plan to support translations for your product (in example .po files)?
I know I can edit the code, but it is the wrong way :)

If you will add translation support, I suggest my help with translate your 
product to Russian and Ukrainian languages.

Original issue reported on code.google.com by [email protected] on 15 Feb 2012 at 12:30

Add DID Column to report

We use the DID field to note which DID a call comes in on.  Would it be 
possible to add this to the report and possibly be able to search by this field?

running version 0.9.5

Thanks,
David


Original issue reported on code.google.com by [email protected] on 6 Aug 2012 at 8:38

Recordings not showing up

What steps will reproduce the problem?
1.install software 
2.verify data is in cdr table (cdr records, filename, files in monitor dir////0 
3.run report, no file download icon appears 

What is the expected output? What do you see instead?

to be able to download the monitor recording

What version of the product are you using? On what operating system?

latest

Please provide any additional information below.

could I email you and explain?  

Original issue reported on code.google.com by [email protected] on 3 Feb 2014 at 8:07

Is it possible to see source TRUNK name instead of just source protocol (sip, iax, etc...)?

What steps will reproduce the problem?
1. Load CDR
2. Seach CDR
3. No information about incoming Trunk - all shows only SIP or IAX2

What is the expected output? What do you see instead?
CDR should show which trunk was used. For example I have 5 SIP trunks to 
different providers and 2 IAX2 trunks to other two different providers. When a 
call comes in I only see SIP or IAX2 for source channel instead of VoipMS, 
Vitelity, TATA, etc....

What version of the product are you using? On what operating system?
1.0.1

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Sep 2013 at 2:48

Error in your SQL syntax when Source and Destination Channel is used.

When I run a report that has a source and destination channel select I receive a SQL syntax error.

I'm trying to run a report to see how many concurrent calls there are over the Digium G100 connection. The error only seems to occur with concurrent calls. If I change the report to CDR with the same search parameters it seems to work.

PDO::errorInfo(): Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND dstchannel LIKE 'SIP/g100%' src LIKE 'SIP/g100%' ) ORDER BY unix_' at line 1 )

This is onyl parsing internal calls

What steps will reproduce the problem?
1. Pick an extension and see all calls for a particular day
2. Run the report
3.

What is the expected output? What do you see instead?
Was hoping to see all calls internal and external, but I onyl see internal calls

What version of the product are you using? On what operating system?
Latest version, trying to integrate with Trixbox 2.6 on CentOS 5.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 20 Jun 2012 at 4:56

PHP Notice: Undefined index: ............

Today i'm installing for the x times cdr-viewer but when i make a search nothing appears...

/var/log/httpd/error_log shows a bunch of...

PHP Notice: Undefined index: endmonth in /var/www/html/asterisk-cdr-viewer/index.php
PHP Notice: Undefined index: endyear in /var/www/html/asterisk-cdr-viewer/index.php

Undefined index: endmonth in /var/www/html/asterisk-cdr-viewer/templates/

I'm using Centos 7 and php 5.6...

HTTP Auth required, please configure WEB server !

Hi

I keep on getting the following error:
HTTP Auth required, please configure WEB server !

I have tried configuring the conf.d file
I added user in .htpasswd file
I tried changing the config.inc.php file

and keep getting the error.

Can someone please assist

No access to /acdr/

When I try to connect to http://myip/acdr I got the following message:

You don't have permission to access /acdr/ on this server.

I believe it has something to do with permissions?

Original issue reported on code.google.com by [email protected] on 20 Dec 2013 at 9:13

Not work query

Not work the query with "_" the - sip/provider_my iax/74957374567_97.


Original issue reported on code.google.com by [email protected] on 15 Nov 2012 at 12:33

No template in webbrowser

I managed to get data in mysql cdr database.
But when I open the webbrowser (http://ipaddress/acdr/ I only see my php file 
and not the template (see attached picture).
What's going wrong?
I am using Debian so I had to copy cp 
asterisk-cdr-viewer/contrib/httpd/asterisk-cdr-viewer.conf to 
/etc/apache2/conf.d instead of /etc/httpd/conf.d/.
And I restarted apache2 instead of httpd 

Original issue reported on code.google.com by [email protected] on 6 Dec 2013 at 3:50

Attachments:

Division by zero in index.php

Hi! I often get this message in php log:

"PHP message: PHP Warning: Division by zero in asterisk-cdr-viewer/index.php on line 757"

Unknown column 'calldate' in 'where clause' )

What steps will reproduce the problem?
1. In asterisk 11 just search

What is the expected output? What do you see instead?
PDO::errorInfo(): Array ( [0] => 42S22 [1] => 1054 [2] => Unknown column 
'calldate' in 'where clause' )

What version of the product are you using? On what operating system?
1.0.4 , Centos 6.5

Please provide any additional information below.

I think that the new CDR Grab to MYSQL Is different , dont have calldate , is 
there a way yo make it work with asterisk 11 ? 

Original issue reported on code.google.com by [email protected] on 27 Apr 2014 at 12:33

Quick date ranges

Would it be possible to implement see some quick date range buttons, like: 
- this week
- last 7 days
- this month
- last 28/30/31 days
- this year

Maybe even have them as a config option?

Best regards,
Siniša Bandin


Original issue reported on code.google.com by sinisa.bandin on 28 Jan 2015 at 4:21

Username matching

Hello!

IMHO username should also match the last part of "src channel" and "dst channel". For example, I have an user/extension SIP/194, but its outside callerid is xxxX194, so its calls to the outside are not displayed. I cannot use _194 because there is other outside number xxxY194 which should not be matched.

I have fixed this by adding:
or dstchannel RLIKE '$cdr_user_name' or channel RLIKE '$cdr_user_name'
to the SQL query in index.php (in line 104)

Maybe we should have an option in config.php for this?

One other problem (I am not really a PHP nor WEB programmer) is that I dont understand how should I set '$cdr_user_name_mod' to 'asterisk-regexp', so I have just commented out 'if' line before and 'else' part after this ... Tried to set it in config.php, without success, but IMO that is the place to set it.

Thank you for a beautiful and very useful piece of software and best regards,
Sinisa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.