-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnethvoice-report.spec
175 lines (134 loc) · 7.71 KB
/
nethvoice-report.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
Name: nethvoice-report
Version: 1.2.6
Release: 1%{?dist}
Summary: Queue and CDR/Costs reports
License: GPLv3
URL: https://github.com/nethesis/nethvoice-report
Source0: nethvoice-report.tar.gz
Source1: dist/ui.tar.gz
Source2: dist/api
Source3: dist/tasks
Requires: nethserver-nethvoice14 >= 14.8.0
Requires: nethserver-collectd
Requires: redis
BuildRequires: perl
BuildRequires: nethserver-devtools
BuildRequires: python2-devel
%description
Queue and CDR/Costs reports
%prep
%setup -q -n nethvoice-report
%build
%{makedocs}
perl createlinks
sed -i 's/_RELEASE_/%{version}/' %{name}.json
%post
%systemd_post nethvoice-report-api.service
%preun
%systemd_preun nethvoice-report-api.service
%postun
%systemd_postun_with_restart nethvoice-report-api.service
%install
rm -rf %{buildroot}
(cd root; find . -depth -print | cpio -dump %{buildroot})
mkdir -p %{buildroot}/opt/nethvoice-report/ui
mkdir -p %{buildroot}/opt/nethvoice-report/api
mkdir -p %{buildroot}/opt/nethvoice-report/tasks
mkdir -p %{buildroot}/etc/collectd.d/
mkdir -p %{buildroot}/%{python2_sitelib}
mkdir -p %{buildroot}/var/lib/redis/nethvoice-report
tar xvf %{SOURCE1} -C %{buildroot}/opt/nethvoice-report/ui/
cp -a %{SOURCE2} %{buildroot}/opt/nethvoice-report/api/
cp -a %{SOURCE3} %{buildroot}/opt/nethvoice-report/tasks/
cp collectd/asterisk_stats.py %{buildroot}/%{python2_sitelib}
cp collectd/asterisk_stats.conf %{buildroot}/etc/collectd.d/
mkdir -p %{buildroot}/usr/share/cockpit/%{name}/
mkdir -p %{buildroot}/usr/share/cockpit/nethserver/applications/
mkdir -p %{buildroot}/usr/libexec/nethserver/api/%{name}/
cp -a manifest.json %{buildroot}/usr/share/cockpit/%{name}/
cp -a logo.png %{buildroot}/usr/share/cockpit/%{name}/
cp -a %{name}.json %{buildroot}/usr/share/cockpit/nethserver/applications/
cp -a api-cockpit/* %{buildroot}/usr/libexec/nethserver/api/%{name}/
chmod +x %{buildroot}/usr/libexec/nethserver/api/%{name}/*
%{genfilelist} %{buildroot} \
--dir /var/lib/redis/nethvoice-report 'attr(0755,redis,asterisk)' \
--file /opt/nethvoice-report/api/api 'attr(0755,asterisk,asterisk)' \
--file /opt/nethvoice-report/tasks/tasks 'attr(0755,asterisk,asterisk)' \
| grep -v /opt/nethvoice-report/api/user_authorizations.json > %{name}-%{version}-filelist
cat %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%dir %{_nseventsdir}/%{name}-update
%config(noreplace) /opt/nethvoice-report/api/user_authorizations.json
%attr(0664,asterisk,asterisk) /opt/nethvoice-report/api/user_authorizations.json
%doc COPYING
%changelog
* Wed May 31 2023 Stefano Fancello <[email protected]> - 1.2.6-1
- NethVoice report: caller min,avg, max position is wrong - Bug nethesis/dev#6203
* Tue Mar 07 2023 Stefano Fancello <[email protected]> - 1.2.5-1
- NethVoice Report: CREATE TABLE field name doesn't match INSERT field name - Bug Nethesis/dev#6195
* Fri Nov 25 2022 Stefano Fancello <[email protected]> - 1.2.4-1
- Queue report: the total number of calls answered in the queue views does not match the total of the agent ones - Bug nethesis/dev#6182
- Queue Report: the agents displayed in the search bar and those actually used to filter calls are different - Bug nethesis/dev#6181
* Fri Sep 02 2022 Giacomo Sanchietti <[email protected]> - 1.2.3-1
- rsync disaster recovery introduces permissions issue - Bug NethServer/dev#6691
* Mon Aug 01 2022 Stefano Fancello <[email protected]> - 1.2.2-1
- In not managed calls, take time from first interaction instead of last one - Bug nethesis/dev#6177
- Incomplete data within the CSV export - Bug nethesis/dev#6175
- Python : Add query to detect PAM authorization bypass - github/securitylab#561
- Golang : Add Query To Detect PAM Authorization Bugs - github/codeql-go#709
* Thu May 26 2022 Stefano Fancello <[email protected]> - 1.2.1-1
- Slow report miner query take too much time - Bug nethesis/dev#6154
- Wrong DND and Queues status of physical phone - Bug nethesis/dev#6151
- NethVoice CDR Report: missing total on outbound search - Bug nethesis/dev#6149
* Mon May 02 2022 Stefano Fancello <[email protected]> - 1.2.0-1
- Add not managed calls to queue report performance table - nethesis/dev#6142
- Add recall times for agents and for queues - nethesis/dev#6127
- queue report Exitkey calls has wrong data - Bug nethesis/dev#6138
- cdr report outbound call recap summary missing call type and wrong call counter - Bug nethesis/dev#6137
- NethVoice Report filter with no queues doesn't save agents - Bug nethesis/dev#6135
- Remove lost calls from average call duration - nethesis/dev#6139
* Fri Jan 28 2022 Stefano Fancello <[email protected]> - 1.1.4-1
- Enhance authorizations management and sync cache with those - Bug nethesis/dev#6100
* Mon Jan 17 2022 Stefano Fancello <[email protected]> - 1.1.3-1
- NethVoice Queue Report: a day with no answered call is not listen - Bug nethesis/dev#6102
* Wed Dec 22 2021 Stefano Fancello <[email protected]> - 1.1.2-1
- Improve performance of tmp_cdr by copying indexes from cdr when it is created (#153)
* Tue Dec 14 2021 Stefano Fancello <[email protected]> - 1.1.1-1
- call and costs report completely broken if trunks has "-" in name - Bug nethesis/dev#6098
- if caller or called cointains international prefix like "+39", geographic localization isn't recognized - Bug nethesis/dev#6099
* Tue Dec 07 2021 Stefano Fancello <[email protected]> - 1.1.0-1
- Agents reports in queue report exists only the day after they are created - Bug nethesis/dev#6095
- cdr table is locked during the queue report miner script - Bug nethesis/dev#6094
- Sometimes in nethvoice queue report, billsec and duration are zero even if a call has been answered - Bug nethesis/dev#6096
* Fri Nov 26 2021 Stefano Fancello <[email protected]> - 1.0.6-1
- nethvoice-report-update FAILS at first install - Bug nethesis/dev#6092
* Fri Oct 29 2021 Stefano Fancello <[email protected]> - 1.0.5-1
- Wrong data inside data by call table - Bug nethesis/dev#6072
* Wed Oct 13 2021 Stefano Fancello <[email protected]> - 1.0.4-1
- Make sure that agent columns don't show negative values - Bug nethesis/dev#6069
- Fix saved searches names and enhance some report's informations - Bug nethesis/dev#6064
- Duplicated rows in report_queue table - Bug nethesis/dev#6057
* Tue Jul 27 2021 Giacomo Sanchietti <[email protected]> - 1.0.3-1
- NethVoice report: CVE-2020-28483 - Nethesis/dev#6046
* Fri Apr 23 2021 Andrea Leardini <[email protected]> - 1.0.2-1
- NethVoice report: show only agents of selected queues - nethesis/dev#5989
* Fri Apr 16 2021 Giacomo Sanchietti <[email protected]> - 1.0.1-1
- Queue Report: static agent data are not shown correctly - Bug nethesis/dev#5981
* Thu Mar 18 2021 Giacomo Sanchietti <[email protected]> - 1.0.0-1
- First stable release - Nethesis/dev#5975
- Add inline cdr doc (#124)
- ui & queries. fix filters and login with domain (#123)
- api. fix check filter in cache (#122)
- views. fix provinces and regions retrieval (#121)
* Thu Feb 18 2021 Edoardo Spadoni <[email protected]> - 0.2.1-1
- Change cost configuration from seconds to minutes
* Tue Feb 09 2021 Edoardo Spadoni <[email protected]> - 0.2.0-1
- NethVoice: new CDR/Costs report - nethesis/dev#5907
* Thu Dec 03 2020 Giacomo Sanchietti <[email protected]> - 0.1.2-1
- NethVoice: new Queue report - nethesis/dev#5865
* Tue Nov 24 2020 Giacomo Sanchietti <[email protected]> - 0.1.1-1
- api. query: added query limit based on settings (#68)
- ui. fix hour of saved search (#72)
* Mon Nov 23 2020 Giacomo Sanchietti <[email protected]> - 0.1.0-1
- NethVoice: new Queue report - Nethesis/dev#5865