QPanel is a panel for queues on Asterisk and FreeSWITCH, powerful and simple monitor in realtime:
Also you can use a API of QPanel for data query related to queues
Asterisk 1.4+ and enabled manager or FreeSWITCH and connection permission to Event Socket Library.
The feature to scheduler reset stats for the queues is required Redis >= 3.0.0.
If you run the QPanel as service (WSGI) you need reset stats using the script run-worker.py
in supervisord
or other process control system.
On /etc/asterisk/manager.conf do you set command permission for read and write, example:
[qpanel]
secret = mi_super_secret_password
read = command
write = command,originate,call,agent
Some features maybe not included in your Asterisk version. In the patch directory you can find the patchs for add more powerfull to the QPanel.
The feature realtime counter for answered and abandoned calls in a queues if not included in your FreeSWITCH version. In the patch directory you can find the patch
You can configure a freeswitch section for your config.ini file like
[freeswitch]
host = 127.0.0.1
port = 8021
password = ClueCon
In general section set config
; Use FreeSWITCH as backend. Use mod_callcenter
freeswitch = True
To use a FreeSWITCH need install SWIG
. In system Debian base run
apt-get install swig
pip install -r requirements/fs.txt
git clone https://github.com/roramirez/qpanel.git
$ pip install -r requirements.txt
If dont have pip in your system. For install
sudo apt-get install python-pip
sudo yum install python-pip
Is necessary have installed Node.
npm install
cd qpanel
cp samples/config.ini-dist config.ini
Edit config.ini file with Manager Asterisk parameters
Note: Can set the absolute path for configuration file in an enviroment variable called QPANEL_CONFIG_FILE
.
pybabel compile -d qpanel/translations
python app.py
Go url of machine http://IP:5000
If you want run QPanel like a service, see the samples configurations files. There are a example for use with uWSGI + NGINX
You could use the stats for queue of Asterisk
from QueueLog. If need more informacion about this go Stats, Realtime and other things
or see the section [queue_log]
of the sample configuration file
If you like new features or something is wrong please open a issue
If you want check the development version get checkout of develop
branch
git clone -b develop https://github.com/roramirez/qpanel.git
Go the QPanel directory
cd qpanel
Get the new code
git pull
Update dependencies
pip install -r requirements.txt
npm install
For error in instalation process of requirements. UserWarning: python_requires requires setuptools version > 24.3
pip install --upgrade setuptool
Happy coding :)