Giter Club home page Giter Club logo

webcdr's People

Contributors

ipoddubny avatar mateusmilanez 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

webcdr's Issues

Issue with Admin users page ??

There is a problem when doing update or delete for defined users

bundle.js:28707 DELETE http://XXX.XX.X.XX:9031/admin/users/4 500 (Internal Server Error)
send @ bundle.js:28707
ajax @ bundle.js:28312
Backbone.ajax @ bundle.js:8545
Backbone.sync @ bundle.js:8528
sync @ bundle.js:7522
destroy @ bundle.js:7766
deleteUser @ bundle.js:37226
triggerEvents @ bundle.js:7454
triggerApi @ bundle.js:7441
eventsApi @ bundle.js:7240
Events.trigger @ bundle.js:7431
onChildviewDelete @ bundle.js:37073
(anonymous) @ bundle.js:1979
triggerMethod @ bundle.js:3233
(anonymous) @ bundle.js:4137
triggerEvents @ bundle.js:7455
triggerApi @ bundle.js:7442
eventsApi @ bundle.js:7240
Events.trigger @ bundle.js:7431
(anonymous) @ bundle.js:1985
triggerMethod @ bundle.js:3233
(anonymous) @ bundle.js:3215
executeBound @ bundle.js:35367
(anonymous) @ bundle.js:35380
(anonymous) @ bundle.js:34727
dispatch @ bundle.js:24289
elemData.handle @ bundle.js:24097

approicate the help that you can provide in fixing it

Regards,

Blank screen after logging in

Hello!
First of all thank you for beautiful solution!
I'd like to use it, but I have such problem: my OS is Centos 6, node v4.6.2, asterisk writes CDR to mysql-database, configuring call-recording is in progress. In config.ini I've changed only db.connection parameters. Should I install specific module for working with mysql from node?
So, my problem is in blank screen, which I see after entering admin/admincdr in web-browser.
This is what I have in bash:
[root@aster webcdr]# node server.js
22 Nov 18:26:47 - Server is now running on port 9030
GET / 302 21.628 ms - 56
Failed login attempt
GET /login 200 31.199 ms - -
GET /css/normalize.css 200 11.322 ms - -
GET /css/main.css 200 7.895 ms - -
GET /css/signin.css 200 6.367 ms - 794
GET /bower_components/bootstrap/dist/css/bootstrap.css 200 7.024 ms - -
GET /favicon.ico 200 2.588 ms - 766
POST /login 302 99.181 ms - 46
GET / 200 16.570 ms - -
GET /css/main.css 304 26.358 ms - -
GET /css/normalize.css 304 27.104 ms - -
GET /bower_components/backgrid/lib/backgrid.css 200 26.580 ms - -
GET /bower_components/backgrid-paginator/backgrid-paginator.min.css 200 12.777 ms - 847
GET /bower_components/bootstrap/dist/css/bootstrap.css 304 26.120 ms - -
GET /bower_components/bootstrap-select/bootstrap-select.min.css 200 28.108 ms - -
GET /bower_components/bootstrap-daterangepicker/daterangepicker.css 200 25.878 ms - -
GET /bower_components/font-awesome/css/font-awesome.min.css 200 22.560 ms - -
GET /css/datepicker3.css 200 8.793 ms - -
GET /css/webcdr.css 200 10.615 ms - -
GET /js/build/bundle.js 200 5.690 ms - -

Dear @ipoddubny please, please, please can you help me?
Also I want to mention 2 things:

  1. I have to change 2 files to get it working:
    ./lib/api/cdrs.js and
    ./lib/api/recordings.js
    In both files I added string "use strict"; in first line of file. Without these changes I get errors during "node server.js" command. May be it is only centos6-related issue?
  2. Little fix for you manual in https://github.com/ipoddubny/webcdr/blob/master/INSTALL.md :
    before running command "npm run build" user should go in upper directory with command "cd .." , without this command user will get error about "cannot find package.json".

Build frontend

Hello,
I have an issue to build the frontend.

[email protected] build /var/www/html/webcdr
browserify public/js/main.js -o public/js/build/bundle.js

Error: Cannot find module 'backbone.wreqr' from '/var/www/html/webcdr/public/js'
at /var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (/var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /var/www/html/webcdr/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:82:15)

npm ERR! Linux 3.10.0-327.10.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v4.9.1
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: browserify public/js/main.js -o public/js/build/bundle.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'browserify public/js/main.js -o public/js/build/bundle.js'.
npm ERR! This is most likely a problem with the webcdr package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! browserify public/js/main.js -o public/js/build/bundle.js

How can I solve this?
Thank you in advance.

Vlad.

About voice recording in Asterisk

Please, do not get mad at me for talkativeness, I just want to recommend to add into manual information about recording voice in asterisk. I understand, that this is off topic, but with this (I don't know how to say it in English) "снизится порог вхождения".
For example, I configured voice recording with this way:

  1. Make directory for voice records
    mkdir -p /var/spool/asterisk/monitor
  2. Install lame: download latest archive from here for example with wget , and after that:
tar zxvf lame-3.*.gz 
cd lame-3.*
./configure
make
make install
  1. Create file /usr/local/bin/conv2mp3.sh with the following content:
#!/bin/sh
LAME="/usr/local/bin/lame --noreplaygain"
filename="$1"
foldername="$2"
$LAME -V2 $foldername/$filename.wav $foldername/$filename.mp3
rm -f $foldername/$filename.wav
  1. Use this script in /etc/asterisk/extensions.conf to convert recorded WAV file to MP3 (also, this is example of recording voice in format needed by webcdr ) :
exten => _8XX,1,Set(filename=${UNIQUEID})
exten => _8XX,n,Set(foldername=/var/spool/asterisk/monitor/${STRFTIME(,,%Y)}/${STRFTIME(,,%m)}/${STRFTIME(,,%d)}/)
exten => _8XX,n,MixMonitor(${foldername}/${filename}.wav,b,/usr/local/bin/conv2mp3.sh ${filename} ${foldername})
exten => _8XX,n,Dial(SIP/${EXTEN},30,t)

bootstrap 404 errors (no formatting)

Hi

I seem to have a problem, i have built webcdr on windows as it will be used to check archives of recordings and call dates. but it has no formatting and keeps giving me bootstrap errors in the console

i include screenshots

thanks
robbie
Capture1
Capture2

Start the server

Hello, can you help me? When i start node server.js i got

/var/www/html/webcdr/server.js:93
const port = process.env.PORT || 9030;
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:945:3

user acl_in

cdrs.js
column "direction" does not exist

replaced with whereRaw(length condition)

thanks.

Не проигрываются звуковые файлы

При попытке воспроизвести или скачать файл, в консоли следующее:
GET /api/recordings/14 404 28.045 ms - 26
файлы хранятся в /var/spool/asterisk/monitor/2018/01/27/1517042218.7.mp3
Помогите пожалуйста

playback error

Hi ,
"GET /api/recordings/undefined 500 2.065 ms - 147
invalid recording id"
what does it mean ?

"чистый экран" после логина

Добрый день. Вроде бы сделал все по мануалу, однако после логина вижу "чистый экран", ничего не отображается, в логе node - 200 везде
https://hastebin.com/upilonoxer.vbs

В логе мускуля - все чисто, ngrep по порту мускуля говорит - https://hastebin.com/baxugehulo.scala

В консоли ошибка:

Uncaught TypeError: Cannot read property 'radio' of undefined
at constructor._initChannel (bundle.js:3236)
at new constructor (bundle.js:3104)
at Object. (bundle.js:35274)
at Object.44../admin (bundle.js:35378)
at s (bundle.js:1)
at e (bundle.js:1)
at bundle.js:1

решение из #2 не помогло

node -v
v6.13.0

Подскажите куда копать?

Install problem

`

[email protected] build /usr/src/webcdr
browserify public/js/main.js -o public/js/build/bundle.js

Error: module not found: "audiojs" from file /usr/src/webcdr/public/js/plugins.js
at onresolve (/usr/src/webcdr/node_modules/module-deps/index.js:180:30)
at /usr/src/webcdr/node_modules/browserify/index.js:494:18
at /usr/src/webcdr/node_modules/browser-resolve/index.js:247:21
at /usr/src/webcdr/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:18
at load (/usr/src/webcdr/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/usr/src/webcdr/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /usr/src/webcdr/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: browserify public/js/main.js -o public/js/build/bundle.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-06-08T09_20_14_774Z-debug.log

`

Не видно записей разговора

Здравствуйте! Поставил и запустил вашу CDRку, сами записи о звонках из базы полностью выгребаются, все окей, а вот запись звонка (mp3) я к сожалению не вижу. Она просто тупо не отображается. В config.ini прописал pattern = /var/spool/asterisk/monitor/%uniqueid%.mp3 так как записи все у меня лежат в одной папке... записи звонков есть, c базой все впорядке... Не подскажите как может отдебажить этот момент?

add column to webcdr page

hello,

is it possible to add more column from mysql CDR to WEBCDR website? I mean for example how can I add duration column next to billsec column?

Thank you,
bence

server.js error

hi

i am runing debian 8
node version v0.10.29
node-v7.6.0

i get the error

/var/www/html/webcdr/server.js:93
const port = process.env.PORT || 9030;
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

Help Request

Hello!

First of all congratulations for the project. It is extremely functional.
I would like to know how do I change one of the mysql data read fields. I need to change the value where the branch origin (SRC) is read.

To make external calls, my provider needs me to send a number to him. Ex: 551133332222. But when I enter this number in Dialplan (Set (CALLERID (num) = 551133332222), asterisk places this value in the source field, omitting the extension number that dialed ....

Thank you very much in advance.

May be possible to add this column?

Hello!
We are using such records in our dialplan:
exten => _74951231234,1,Macro(call_recording)
exten => _74951231234,n,Dial(SIP/101&SIP/102&SIP/103,30,t)
so, when there is incoming call, all 3 internal phones are ringing.
In CDR (mysql) after every call Asterisk creates 2 rows with status No Answer (for example, for numbers 101 and 102), and 1 row with status Answered, dstchannel - SIP/103-00000c4e.

Is it possible to show in webcdr value of dstchannel? If yes, user of webcdr will be able to detect who is answered on that call.

outbound filter view problem

Hello!
When the "outgoing" filter is turned on, only calls with the status "not answered" are displayed. My Asterisk is a default Freepbx 13, in the cdr table I added only the id column. I do not quite understand how the webcdr divides the direction of the calls, could you explain it.

No Results after Login

Hello!

After login page, there are no results on the page. No data is Displayed.... But if I choose another date and back for Today Filter, all the data is displayed.

Could you help me?
Thanks a lot.

Не воспроизводятся и не скачиваются аудиофайлы со спецсимволами в имени

Не скачиваются и не воспроизводятся аудиофалы, в имени которых присутствуют символы "(", ")", "?". Эти символы используются во время набора добавочных номеров. Насколько смог разобраться, что-то идет не так после передачи пути файла в функцию glob, но я могу ошибаться.
Вид пути файла: /var/asterisk/records/2018/08/08/2018-08-08_16-13-05_1599_22028(2202).mp3

Adding columns to exported XLSX table

Is it possible to add columns for exported excel-table, for example call state (answered/busy) and call duration ? After export excel-file contains only date+time (may be splitting date and time in different columns will be better), callerID and extension.

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.