Coder Social home page Coder Social logo

dev's People

Contributors

davideprincipi avatar gsanchietti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

cutehameed

dev's Issues

Inviare inventario in fase di registrazione (5014)

Il sistema deve inviare l'inventario al termine dell'evento di registrazione (nethserver-register-save).

Se l'inventario non viene inviato, la pagina dettagli del server resta vuota e l'utente ha la sensazione che qualcosa non stia funzionando correttamente.

Pacchetto: nethserver-register

Gestire i prodotti nethesis nell'inventario e mostrarli su my (5019)

Ardad nei NethServer 6 gestiva l'elenco dei pacchetti installati e ricavava le categorie commerciali dei prodotti (NethService, NethSecurity ... ).

  • Replicare lo stesso comportamento sui NethServer 7 integrando un plugin di facter.
  • Mostrare le informazioni relative ai prodotti su my.nethesis.it

backup-alert: falso allarme alla prima configurazione (5049)

Lo script backup-alert genera un falso allarme quando il backup è stato configurato ma ancora non è mai stato eseguito.

Passi per riprodurre

  • Configurare il backup deti dati
  • Eseguire lo script /etc/cron.hourly/backup-alert

Versioni:

  • NethServer 6
  • NethServer 7

backup-alert: genera mail da cron (5030)

Lo script /etc/cron.hourly/backup-alert, se il socket di collectd non è accessibile, genera una mail contenente questo errore:

Can't call method "send" on an undefined value at /etc/cron.hourly/backup-alert line 77.

Sistemare lo script in modo che non generi output in caso di errore.
La gestione del socket è stata migliorata nel pacchetto nethserver-collectd: NethServer/dev#5147

Il problema affligge anche i NethServer 6.

L'ordinamento per cognome nel pannello operatore non funziona. (5046)

In NethServer 6 il problema si verifica per gli interni non associati a nessun utente perché l'interno telefonico contiene solo il campo nome.

In NethServer 7 il problema si verifica sempre perché gli utenti di sistema hanno solo il campo "nome".

Soluzione:
nascondere l'ordinamento per cognome.

Supporto nuovo yum-cron (5012)

A partire da CentOS 7, yum-cron è stato completamente riscritto.

Adattare la vecchia implementazione al nuovo software.
In particolare:

  • abilitare l'utilizzo dei tier
  • configurare yum-cron in modo che applichi gli aggiornamenti tutte le notti
  • configurare yum-cron in modo che aggiorni il gruppo nethserver-iso

timeout per nethserver-inventory (5031)

Scenario:

  • backup configurato su disco usb
  • disco usb "rotto"

In questo scenario nethserver-inventory si blocca, bloccando a sua volta l'esecuzione del job cron.daily. Ogni ora viene loggato:
Oct 21 14:01:01 nethservice anacron[16043]: Job `cron.daily' locked by another anacron - skipping

Estratto del log:
Oct 21 03:45:02 nethservice run-parts(/etc/cron.daily)[22637]: starting nethserver-inventory
...
Oct 21 14:45:03 nethservice run-parts(/etc/cron.daily)[26908]: finished neussthserver-inventory

Alle 14:45:03 ho ucciso io puppet.

Aggiungere indici alla tabella mysql asteriskcdrdb.queue_log (5033)

La tabella viene creata da nethserver-nethvoice e viene usata anche da neth-queue-report e nethcti-server.
Gli indici da aggiungere sono "event" e "callid".
La necessità è sorta analizzando un problema di un box di un cliente, in cui la cpu era occupata in gran parte da mysqld che faceva query complesse per il servizio queue_recall del cti server.

Inventario: error while resolving custom fact "nh-products" (5026)

Il cron job di nethserver-inventory genera un errore se non riesce correttamente a leggere la lista dei prodotti installati.

Il cron generare una mail con questo contenuto:

2016-10-22 07:31:54.359834 ERROR puppetlabs.facter - error while resolving custom fact "nh-products": A JSON text must at least contain two octets!

nethvoice-module-nethbulkextensions: user mancante negli interni creati (5040)

gli interni creati con il bulkextension non hanno l'utente settato nell'astdb. Questo comporta che non si possano creare registrazioni di sistema da quell'interno

Utente creato a mano:

 /DEVICE/351/default_user                          : 351                      
 /DEVICE/351/dial                                  : IAX2/351                 
 /DEVICE/351/type                                  : fixed                    
 /DEVICE/351/user                                  : 351 

Utente creato con bulkextension:

 /DEVICE/352/default_user                          :                          
 /DEVICE/352/dial                                  : SIP/352                  
 /DEVICE/352/type                                  : fixed                    
 /DEVICE/352/user                                  :                

Problema presente anche su NV11NS6.

Il backup-config di OpenLDAP è leggibile da tutti (5029)

Nella directory /var/lib/nethserver/backup/

-rw-r--r--. 1 root root    135156 Nov  8 01:00 ldap-config.ldif
-rw-r--r--. 1 root root    202053 Nov  8 01:00 ldap-data.ldif

Il bit di lettura per tutti rappresenta un problema di sicurezza perché espone a tutti gli utenti del sistema gli hash (crypt e NTLM se c'è samba) delle password.

NOTA

La procedura di restore viene eseguita come utente ldap. Pertanto il fix deve risultare in un file comunque leggibile dall'utente ldap.

Il bug riguarda sia ns6 che ns7. Sarà necessario un back/forward-port.

Migliorare top charts e comando weekly-report (5008)

Il comando weekly-report con l'opzione -w YYYY:MM dovrebbe fare mining dei dati delle settimane passate, però non funziona correttamente in quanto tiene conto sempre e solo dell'ultima settimana.

I grafici relativi al traffico web dei primi 10 host (hostWebTraffic), mostra risultati molto diversi rispetto ai grafici di lightsquid.

Tasto verde di chiamata disattivo dopo una chiamata (5001)

WebRTC\CTI: dopo aver eseguito una chiamata se si riaggancia rimane nella barra di ricerca il numero ma scompare il tasto verde per chiamare. Fare una qualsiasi modifica, come aggiungere uno spazio, rende di nuovo usabile il tasto. Premere il tasto enter funziona in ogni circostanza;

Riportato da massi

yum-cron genera mail tutte le notti (5025)

Tutte le notti yum-cron genera mail con il seguente contenuto:

Not using downloaded repomd.xml because it is older than what we have:
  Current   : Tue Oct 18 12:22:12 2016
  Downloaded: Thu Oct  6 16:17:52 2016
Warning: Group nethserver-iso does not have any packages to install.

Implementare due soluzioni distinti per le due notifiche:

  1. ripulire la cache di yum prima di eseguire yum-cron
  2. disabilitare l'aggiornamento dei gruppi

Limite file aperti troppo basso (5038)

su NethVoice 8 il limite file aperti era settato alla metà del limite di sistema da safe_asterisk. Siccome nella 11 non si usa più safe_asterisk, il limite è il default della configurazione di asterisk, che è 1000. Troppo poco per le installazioni medio-grandi. Aumentare questo limite

in /etc/asterisk/asterisk.conf:

;maxfiles = 1000 ; Maximum amount of openfiles.

Problema per aggiungere un contatto alla conferenza in corso (5005)

"Se sono in conferenza e voglio aggiungere un numero dalla rubrica non
funziona, se lo clicco prova a fare un trasferimento della chiamata come
se fossi impegnato in una telefonata normale, invece essendo in
conferenza dovrebbe chiudermi la chiamata e chiamare il numero che ho
cliccato."

riferimento: andrea

Errore durante avvio di nsdc (5013)

Per riprodurre il bug

  • Installare nethserver-dc-1.0.7 (o precedenti)
  • Dopo aver avviato il DC (pulsante START DC)

In /var/log/messages compare l'errore:

Oct 18 09:33:55 vm5 esmith::event[5997]: Event: nethserver-dc-save
Oct 18 09:33:55 vm5 esmith::event[5997]: Loaded plugins: changelog, fastestmirror, nethserver_events
Oct 18 09:33:55 vm5 esmith::event[5997]: 
Oct 18 09:33:55 vm5 esmith::event[5997]: You have enabled checking of packages via GPG keys. This is a go
od thing.
Oct 18 09:33:55 vm5 esmith::event[5997]: However, you do not have any GPG public keys installed. You need
 to download
Oct 18 09:33:55 vm5 esmith::event[5997]: the keys for packages you wish to install and install them.
Oct 18 09:33:55 vm5 esmith::event[5997]: You can do that by running the command:
Oct 18 09:33:55 vm5 esmith::event[5997]:    rpm --import public.gpg.key
Oct 18 09:33:55 vm5 esmith::event[5997]: 
Oct 18 09:33:55 vm5 esmith::event[5997]: 
Oct 18 09:33:55 vm5 esmith::event[5997]: Alternatively you can specify the url to the key you would like 
to use
Oct 18 09:33:55 vm5 esmith::event[5997]: for a repository in the 'gpgkey' option in a repository section and yum
Oct 18 09:33:55 vm5 esmith::event[5997]: will install it for you.
Oct 18 09:33:55 vm5 esmith::event[5997]: 
Oct 18 09:33:55 vm5 esmith::event[5997]: For more information contact your distribution or package provider.
Oct 18 09:33:55 vm5 esmith::event[5997]: 
Oct 18 09:33:55 vm5 esmith::event[5997]: Problem repository: nh-nethserver-updates

weekly report (6.8) errore nelle generazione dei report (5028)

Global symbol "$year" requires explicit package name at /usr/share/nethserver-report/miners/mail line 54.

si tratta di un typo, la variabile anzichè chiamarsi $year si chiama $logyear

commit già fatto sulla versione 7, da riportare nel branch v6

Modificare riconoscimento prodotti Sangoma nel wizard provisioning (5024)

Nel wizard provisioning il mac address dei prodotti Sangoma è associato automaticamente ai gateway.
Adesso però sono supportati anche i telefoni #5017 quindi il wizard dovrebbe cercare di capire se si tratta di un telefono o di un gateway (collegandosi in http) e dovrebbe proporre solo la scelta corretta.
Se fosse possibile riconoscere il modello, come avviene per i telefoni yealink ad esempio, sarebbe utile.

Aggiornare funzionalità tasti linea Yealink (5032)

Le funzionalità dei tasti linea dei telefoni Yealink sono aumentate nel tempo e la nostra configurazione è rimasta molto indietro.
Bisogna aggiornare le possibilità da dare in fase di configurazione dei tasti linea aggiornando i file:

  • line_keys
  • memory_keys
  • exp
  • soft_keys

Problema quando una chiamata entra e fallisce su più di una coda nella barra telefonica/callcenter/chiamate perse (5037)

Dal log del CTI

2016-12-07T15:35:43+01:00 - error: [plugins/dbconn_ast_proxy] get queue 505 recall of last undefined hours: Error: ER_SUBQUERY_NO_: Subquery returns more than
1 row
2016-12-07T15:35:43+01:00 - error: [plugins_rest/astproxy] Error: ER_SUBQUERY_NO_: Subquery returns more than 1 row
at Query.Sequence._packetToError (/usr/lib/node/nethcti-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:32:14)
at Query.ErrorPacket (/usr/lib/node/nethcti-server/node_modules/mysql/lib/protocol/sequences/Query.js:82:18)
at Protocol._parsePacket (/usr/lib/node/nethcti-server/node_modules/mysql/lib/protocol/Protocol.js:172:24)
at Parser.write (/usr/lib/node/nethcti-server/node_modules/mysql/lib/protocol/Parser.js:62:12)
at Protocol.write (/usr/lib/node/nethcti-server/node_modules/mysql/lib/protocol/Protocol.js:37:16)
at Socket.ondata (stream.js:51:26)
at Socket.EventEmitter.emit (events.js:117:20)
at Socket. (stream_readable.js:720:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable
(_stream_readable.js:392:10)

mysql> select * from queue_log where event IN ("ABANDON", "EXITWITHTIMEOUT", "EXITWITHKEY", "EXITEMPTY") AND TIMESTAMPDIFF(HOUR, time, now()) < 8;
+-----+----------------------------+----------------+-----------+-------+-----------------+------+-------+-------+-------+-------+-------+
| id | time | callid | queuename | agent | event | data | data1 | data2 | data3 | data4 | data5 |
+-----+----------------------------+----------------+-----------+-------+-----------------+------+-------+-------+-------+-------+-------+
| 143 | 2016-12-07 09:22:30.837079 | 1481098923.449 | 500 | NONE | ABANDON | | 1 | 1 | 14 | | |
| 146 | 2016-12-07 09:23:08.133335 | 1481098979.453 | 507 | NONE | ABANDON | | 1 | 1 | 9 | | |
| 153 | 2016-12-07 09:28:03.413667 | 1481099210.468 | 500 | NONE | EXITWITHTIMEOUT | | 1 | 1 | 60 | | |
| 156 | 2016-12-07 09:28:06.162209 | 1481099210.468 | 501 | NONE | ABANDON | | 1 | 1 | 3 | | |
| 159 | 2016-12-07 09:29:10.842161 | 1481099328.481 | 500 | NONE | ABANDON | | 1 | 1 | 4 | | |
| 162 | 2016-12-07 09:30:22.385495 | 1481099349.482 | 500 | NONE | EXITWITHTIMEOUT | | 1 | 1 | 60 | | |
| 169 | 2016-12-07 09:39:17.906298 | 1481099917.494 | 500 | NONE | ABANDON | | 1 | 1 | 30 | | |
| 188 | 2016-12-07 12:57:12.553060 | 1481111800.135 | 505 | NONE | ABANDON | | 1 | 1 | 16 | | |
| 202 | 2016-12-07 14:33:59.643834 | 1481117588.190 | 504 | NONE | ABANDON | | 1 | 1 | 39 | | |
+-----+----------------------------+----------------+-----------+-------+-----------------+------+-------+-------+-------+-------+-------+

La stessa chiamata (1481099210.468) è andata in timeout (EXITWITHTIMEOUT) nella coda 500, è entrata nella coda 501 ed è andata in abbandono (ABANDON).
Questo fatto provoca il fallimento della sub query evidenziata

SELECT b.company, b.name, cid, action, CAST(time as CHAR(50)) as time, direction, queuename FROM (SELECT TIMESTAMP(time) AS time, queuename, "IN" AS direction, "TIMEOUT" AS action, CAST(data1 AS UNSIGNED) AS position, CAST(data2 AS UNSIGNED) AS duration, CAST(data3 AS UNSIGNED) AS hold, (

SELECT data2 FROM queue_log z WHERE z.event="ENTERQUEUE" AND z.callid=a.callid

) AS cid, agent FROM queue_log a WHERE event IN ("ABANDON", "EXITWITHTIMEOUT", "EXITWITHKEY", "EXITEMPTY") AND TIMESTAMPDIFF(HOUR, time, now()) < 8 UNION ALL SELECT TIMESTAMP(time) AS time, queuename, "IN" AS direction, "DONE" AS action, CAST(data3 AS UNSIGNED) AS position, CAST(data2 AS UNSIGNED) AS duration, CAST(data1 AS UNSIGNED) AS hold, (SELECT data2 FROM queue_log z WHERE z.event="ENTERQUEUE" AND z.callid=a.callid ) AS cid, agent FROM queue_log a WHERE event IN ("COMPLETEAGENT", "COMPLETECALLER") AND TIMESTAMPDIFF(HOUR, time, now()) < 8 UNION ALL SELECT TIMESTAMP(calldate) AS time, l.queuename as queuename, "OUT" AS direction, IF (disposition="ANSWERED", "DONE", disposition) AS action, 0 AS position, 0 AS duration, 0 AS hold, dst AS cid, src AS agent FROM cdr c INNER JOIN queue_log l ON c.dst=l.data2 WHERE l.event="ENTERQUEUE" AND TIMESTAMPDIFF(HOUR, calldate, now()) < 8 AND TIMESTAMPDIFF(HOUR, time, now()) < 8 ORDER BY time DESC) queue_recall LEFT JOIN phonebook.phonebook b ON (queue_recall.cid=b.workphone OR queue_recall.cid=b.cellphone) WHERE queuename="505" GROUP BY cid ORDER BY time DESC

effettuata dalla funzione getQueueRecallQueryTable in /usr/lib/node/nethcti-server/plugins/dbconn/plugins/dbconn_ast_proxy.js

Provare a gestire la possibilità che una stessa chiamata possa fallire in più code o gestire il fallimento nella prima coda e l'esito positivo nella successiva.

webtop2phonebook: errori multipli in fase di importazione (5010)

  1. I contatti eliminati da webtop vengono importati nella rubrica centralizzata
  2. I contatti che contengono caratteri speciali non vengono importati nella rubrica centralizzata
  3. Il campo note dei contatti di webtop è ignorato in fase di importazione nella rubrica centralizzata

Script: /usr/share/phonebooks/scripts/webtop2phonebook.php

Il bug è presente sia su NethServer 6 che su NethServer 7.

Pacchetto: nethserver-nethop

La conferenza audio non funziona quando l'interno è configurato con un "ID in Uscita" personalizzato (5002)

Come riprodurre:

  1. chiamare un numero esterno X
  2. attendere che X risponda
  3. iniziare la conferenza cliccando il pulsante nella barra di gestione chiamata in alto
  4. la chiamata cade (entrambi i canali rimangono chiusi)
  5. l'interfaccia grafica invece mostra l'interno telefonico come se fosse in conferenza e mostra non il numero d'interno, ma "l'ID di Uscita" personalizzato

Lo stesso problema accade quando viene personalizzato l'id nel fascio (campo "Identificativo Chiamante in uscita")

Riferimento: Luca

Asterisk: impossibile chiamare un interno WebRTC da telefono fisico (5015)

Quando si tenta di chiamare un interno WebRTC da un telefono fisico, la chiamata termina inaspettatamente con il seguente errore:

[2016-10-18 15:13:28] ERROR[18253][C-0000000f]: res_rtp_asterisk.c:2131 __rtp_recvfrom: DTLS failure occurred on RTP instance '0x7f63d40427f8' due to reason 'missing tmp ecdh key', terminating
[2016-10-18 15:13:28] WARNING[18253][C-0000000f]: res_rtp_asterisk.c:3842 ast_rtcp_read: RTCP Read error: Unspecified.  Hanging up.

Il problema è dovuto ad una incompatibilità di Asterisk 11 (e 13) con le librerie OpenSSL di CentOS 13.

Riferimenti:

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.