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

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

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

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

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

Сообщение zzz777z » 01 ноя 2019, 12:24

в 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.
Аватар пользователя
zzz777z
 
Сообщений: 36
Зарегистрирован: 10 авг 2014, 20:48

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

Сообщение olegsenin » 01 ноя 2019, 14:08

Код: выделить все
{{calldate}}

помогло. спасибо
На картинке фрагмент базы
uniqueid какой то не такой?
Вложения
1.jpg
Аватар пользователя
olegsenin
 
Сообщений: 81
Зарегистрирован: 30 мар 2015, 11:29

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

Сообщение zzz777z » 01 ноя 2019, 18:56

Из-за префикса "xottab-" проблемы.
Спасибо)
Аватар пользователя
zzz777z
 
Сообщений: 36
Зарегистрирован: 10 авг 2014, 20:48

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

Сообщение virus_net » 02 ноя 2019, 10:40

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 - звони бесплатно и напрямую.
virus_net
 
Сообщений: 2300
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

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

Сообщение olegsenin » 06 ноя 2019, 09:07

zzz777z, скажи, а как то можно заставить проигрывать аудиозаписи, если они хранятся в одной папке в виде xottab-1572961119.36510-2019-11-05-16_38-2583-1111.mp3 ? :)
Аватар пользователя
olegsenin
 
Сообщений: 81
Зарегистрирован: 30 мар 2015, 11:29

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

Сообщение ASTIN » 11 ноя 2019, 17:30

Приветствую вас, коллеги. Что то у меня поламался Реалтайм. Страница пустая и только:
Код: выделить все
Время сервера:
14:41:51

null
null

Если смотреть в консоли браузера то там тьма ошибок валится:
[Показать] Спойлер:
Код: выделить все
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.

Буду благодарен за любые подсказки и любую помощь.
ASTIN
 
Сообщений: 3
Зарегистрирован: 17 окт 2018, 09:58

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

Сообщение Egor939 » 12 ноя 2019, 17:04

olegsenin писал(а):zzz777z, скажи, а как то можно заставить проигрывать аудиозаписи, если они хранятся в одной папке в виде xottab-1572961119.36510-2019-11-05-16_38-2583-1111.mp3 ? :)


По идее достаточно будет изменить функцию getRec в answered_cdr.php убрав оттуда date.
Тогда записи будут браться напрямую из каталога указанного в конфиге.

Было.PNG
Было.PNG (12.84 KIB) Просмотров: 267

Стало.PNG
Стало.PNG (12.28 KIB) Просмотров: 267
Egor939
 
Сообщений: 1
Зарегистрирован: 30 окт 2019, 12:25

Пред.

Вернуться в Графические интерфейсы Астериск

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

© 2008 — 2019 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH