VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Asternic Call Center Stats Lite - модификация.

WEB GUI и не только WEB

Модераторы: stas2k, april22, Zavr2008

Аватара пользователя
zzz777z
Сообщения: 36
Зарегистрирован: 10 авг 2014, 20:48
Контактная информация:

Re: Asternic Call Center Stats Lite - модификация.

Сообщение zzz777z »

в outbound.php надо поменять не на {{time}}, а на {{calldate}}

Интересно разобраться, почему у тебя не работает функция prettyDate...
prettyDate берет callid из queuelog или uniqueid из cdr
(уникальные айди вызова, а по сути кол-во секунд прошедших с начала эры юникс - unix timestamp) и преобразует в форматированную дату.

Код: Выделить всё

Handlebars.registerHelper("prettyDate", function (timestamp) {
  var a = new Date(timestamp * 1000);
  if (navigator.language == 'ru') {
     var months = ['Янв','Фев','Мар','Апр','Май','Июня','Июля','Авг','Сен','Окт','Ноя','Дек'];
   } else {
       var months = ['Jan','Feb','Mar','Apr','May', 'Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
   }
  var year = a.getFullYear();
  var month = months[a.getMonth()];
  var date = a.getDate();
  //var hour = a.getHours();
  var hour = (a.getHours() < 10 ? '0' : '') + a.getHours();
  //var min = a.getMinutes();
  var min = (a.getMinutes() < 10 ? '0' : '') + a.getMinutes();
  //var sec = a.getSeconds();
  var sec = (a.getSeconds() < 10 ? '0' : '') + a.getSeconds();
  if( a < 3600000 )
  var time = min + ':' + sec ;
  else
  var time = date + ' ' + month + ' ' + hour + ':' + min + ':' + sec ;

  return time;
});
Вот, собственно, сама функция.
Она получает один аргумент - число секунд, переводит миллисекунды и если кол-во секунд меньше 3600,
то возвращает в формате - "Мин:сек", (причем это работает нормально, иначе бы в duration и тд, тоже было бы NaN)
а если иначе, то в полную дату.(Здесь NaN)

Т.е.,напрашивается вывод, что функции не нравится, то что содержится в callid или uniqueid.
Аватара пользователя
olegsenin
Сообщения: 91
Зарегистрирован: 30 мар 2015, 10:29

Re: Asternic Call Center Stats Lite - модификация.

Сообщение olegsenin »

Код: Выделить всё

{{calldate}}
помогло. спасибо
На картинке фрагмент базы
uniqueid какой то не такой?
Вложения
1.jpg
Аватара пользователя
zzz777z
Сообщения: 36
Зарегистрирован: 10 авг 2014, 20:48
Контактная информация:

Re: Asternic Call Center Stats Lite - модификация.

Сообщение zzz777z »

Из-за префикса "xottab-" проблемы.
Спасибо)
virus_net
Сообщения: 2337
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

Re: Asternic Call Center Stats Lite - модификация.

Сообщение virus_net »

zzz777z писал(а):в outbound.php надо поменять не на {{time}}, а на {{calldate}}
Имхо лучше унифицировать через применение AS в sql запросе:

Код: Выделить всё

SELECT `calldate` as `time` .... FROM .... WHERE ....
Меньше путаницы будет.
мой SIP URI sip:virus_net@asterisk.ru
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
Аватара пользователя
olegsenin
Сообщения: 91
Зарегистрирован: 30 мар 2015, 10:29

Re: Asternic Call Center Stats Lite - модификация.

Сообщение olegsenin »

zzz777z, скажи, а как то можно заставить проигрывать аудиозаписи, если они хранятся в одной папке в виде xottab-1572961119.36510-2019-11-05-16_38-2583-1111.mp3 ? :)
ASTIN
Сообщения: 4
Зарегистрирован: 17 окт 2018, 08:58

Re: Asternic Call Center Stats Lite - модификация.

Сообщение ASTIN »

Всем хорошего настроения! Что то у меня поламался Реалтайм. Страница пустая и только:

Код: Выделить всё

Время сервера:
14:41:51

null
null
Если смотреть в консоли браузера то там тьма ошибок валится:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

Uncaught (in promise) TypeError: Cannot read property 'inline' of undefined
    at include.preload.js:560
/favicon.ico:1 Failed to load resource: the server responded with a status of 404 ()
realtime.php:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:111)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
VM30:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
VM31:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:111)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:111
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
2VM32:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
VM34:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
VM35:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:111)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:111
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
VM36:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:111)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:111
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
VM37:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
VM38:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
VM39:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:71
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getCampStatus @ realtime.php:70
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
VM40:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:111)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:111
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:71
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getCampStatus @ realtime.php:70
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
setTimeout (async)
getCampStatus @ realtime.php:80
VM41:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (realtime.php:91)
    at c (jquery.min.js:4)
    at Object.fireWith [as resolveWith] (jquery.min.js:4)
    at k (jquery.min.js:6)
    at XMLHttpRequest.r (jquery.min.js:6)
success @ realtime.php:91
c @ jquery.min.js:4
fireWith @ jquery.min.js:4
k @ jquery.min.js:6
r @ jquery.min.js:6
XMLHttpRequest.send (async)
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:86
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueSummary @ realtime.php:85
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
setTimeout (async)
getQueueSummary @ realtime.php:101
jquery.min.js:6 POST https://crm.med-soyuz.com.ua/1/ajam.php 500
send @ jquery.min.js:6
ajax @ jquery.min.js:6
(anonymous) @ realtime.php:106
c @ jquery.min.js:4
add @ jquery.min.js:4
ready @ jquery.min.js:4
init @ jquery.min.js:4
x @ jquery.min.js:4
getQueueStatus @ realtime.php:105
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
setTimeout (async)
getQueueStatus @ realtime.php:121
VM42:1 Uncaught SyntaxError: Unexpected token E in JSON at position 0
Все работало, щас вот так...

Оговорюсь, астер стоит в локальной сети, статистика на внешке. Все порты проброшены. И по идее должно работать.

Не работает корректно самая последняя версия . У меня 12 FREEPBX. И локально статистика не работает (php 5.3), пришлось вынести на внешний сервер. И в новой версии у меня не работают вкладки: Прин.выз., Проп.выз., Исход., По транкам, Поиск, ну и в Реалтайме такое же как описал выше. На перечисленных вкладках просто ошибка 500.

Буду благодарен за любые подсказки и любую помощь.
Egor939
Сообщения: 1
Зарегистрирован: 30 окт 2019, 11:25

Re: Asternic Call Center Stats Lite - модификация.

Сообщение Egor939 »

olegsenin писал(а):zzz777z, скажи, а как то можно заставить проигрывать аудиозаписи, если они хранятся в одной папке в виде xottab-1572961119.36510-2019-11-05-16_38-2583-1111.mp3 ? :)
По идее достаточно будет изменить функцию getRec в answered_cdr.php убрав оттуда date.
Тогда записи будут браться напрямую из каталога указанного в конфиге.
Было.PNG
Было.PNG (12.84 КБ) 20537 просмотров
Стало.PNG
Стало.PNG (12.28 КБ) 20537 просмотров
Mystic
Сообщения: 1
Зарегистрирован: 19 янв 2020, 10:56

Re: Asternic Call Center Stats Lite - модификация.

Сообщение Mystic »

Приветствую!
Во 1х спасибо за плагинчик!
Вопрос - на сколько необходим префикс asterisk? На FreePBX 15 после его установки не открывается модуль asterisk info, вылазит 404 not found.
Issue создал им, но пока тишина.
ubnt01
Сообщения: 3
Зарегистрирован: 09 май 2020, 19:04

Re: Asternic Call Center Stats Lite - модификация.

Сообщение ubnt01 »

добрый день, большое спасибо за чудесный инструмент.
если можно вопрос:
страничка answered.php и answered_cdr.php открывается но нет детализации и не все показывает.
лог примерно такой:
[Mon May 11 10:43:33.958263 2020] [proxy_fcgi:error] [pid 1191:tid 140333081880320] [client 192.168.1.30:51038] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Argum
entCountError: Too few arguments to function print_exports(), 5 passed in /var/www/html/queue-stats/answered.php on line 249 and exactly 6 expected in /var/www/html/queue-stats/
misc.php:64\nStack trace:\n#0 /var/www/html/queue-stats/answered.php(249): print_exports(Array, Array, Array, '\\xD0\\x9F\\xD1\\x80\\xD0\\xB8\\xD0\\xBD\\xD1\\x8F\\xD1\\x82\\xD1\
\x8B\\xD0...', '\\xD0\\x9E\\xD1\\x87\\xD0\\xB5\\xD1\\x80\\xD0\\xB5\\xD0\\xB4\\xD1\\x8C:...')\n#1 {main}\n thrown in /var/www/html/queue-stats/misc.php on line 64\n', referer: h
ttp://stats/queue-stats/answered_cdr.php
[Mon May 11 10:43:36.264786 2020] [proxy_fcgi:error] [pid 1191:tid 140333123843840] [client 192.168.1.30:51038] AH01071: Got error 'PHP message: PHP Notice: Undefined index: re
cfile in /var/www/html/queue-stats/answered_cdr.php on line 64\nPHP message: PHP Notice: Undefined index: recfile in /var/www/html/queue-stats/answered_cdr.php on line 64\nPHP
message: PHP Notice: Undefined index: recfile in /var/www/html/queue-stats/answered_cdr.php on line 64\nPHP message: PHP Notice: Undefined index: recfile in /var/www/html/queu
e-stats/answered_cdr.php on line 64\n', referer: http://stats/queue-stats/answered.php
[Mon May 11 10:43:36.264958 2020] [proxy_fcgi:error] [pid 1191:tid 140333123843840] [client 192.168.1.30:51038] AH01071: Got error 'PHP message: PHP Notice: Undefined variable:
cover_pdf in /var/www/html/queue-stats/answered_cdr.php on line 269\nPHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function print_exports(),
5 passed in /var/www/html/queue-stats/answered_cdr.php on line 269 and exactly 6 expected in /var/www/html/queue-stats/misc.php:64\nStack trace:\n#0 /var/www/html/queue-stats/an
swered_cdr.php(269): print_exports(Array, Array, Array, '\\xD0\\x9F\\xD1\\x80\\xD0\\xB8\\xD0\\xBD\\xD1\\x8F\\xD1\\x82\\xD1\\x8B\\xD0...', NULL)\n#1 {main}\n thrown in /var/www/
html/queue-stats/misc.php on line 64\n', referer: http://stats/queue-stats/answered.php
PHP 7.2.30 (cli) (built: Apr 14 2020 15:37:05) ( NTS )
Asterisk 16.10.0
FW Console - FreePBX Utility 15.0.16.49

думаю на версии 5.7 работать будет, но тогда freepbx не будет.
что-то можно сделать?
maxx
Сообщения: 2
Зарегистрирован: 21 май 2020, 12:31

Re: Asternic Call Center Stats Lite - модификация.

Сообщение maxx »

Привет всем!
Спасибо за мод, он отлично работает ну или почти все.
Но появился странный момент: в статистику не попадает часть входящих звонков, при этом в таблице cdr есть эти звонки, а в queuelog они отсутствуют.
Сталкивался ли кто с таким?
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH