roramirez / qpanel

Dashboard for Queues in Asterisk and FreeSWITCH. app_queue panel for Asterisk and mod_callcenter in FreeSWITCH. Get news -> http://eepurl.com/dxKt7X
https://boxtub.com/qpanel/
MIT License
173 stars 112 forks source link

Not show any information #247

Open yakkobr opened 3 years ago

yakkobr commented 3 years ago

I install with docker, but not show any information by my asterisk...

/etc/asterisk/manager.conf `[general] ;displaysystemname = no enabled = yes webenabled = yes port = 5038

[qpanel] permit=0.0.0.0/0.0.0.0 secret=mypass read=command write=command,originate,call,agent`

my dockerfile: `FROM alpine

RUN apk add --no-cache git py3-pip npm py3-babel tini swig gcc alpine-sdk python3-dev mariadb-dev mysql-client && \ cd / && \ git clone -b master --depth=1 https://github.com/roramirez/qpanel.git && \ cd qpanel && \ pip3 install -r requirements.txt && \ pip3 install -r requirements/dbs/mysql.txt && \ cd /qpanel && \ npm install && \ cd /qpanel && \ pybabel compile -d qpanel/translations && \ cd /qpanel && \ cp samples/config.ini-dist config.ini && \ apk del --quiet git npm gcc alpine-sdk python3-dev

ENV QPANEL_USER qpanel ENV QPANEL_PWD mypass ENV ASTERISK_HOST 172.12.20.84 ENV MYSQL_DB asterisk ENV MYSQL_USER root ENV MYSQL_PWD mypass

WORKDIR /qpanel

COPY ./startscript.sh /usr/local/bin/

RUN ln -s /usr/local/bin/startscript.sh RUN chmod +x /usr/local/bin/startscript.sh

RUN /usr/local/bin/startscript.sh

EXPOSE 5000

CMD tini -- python3 app.py`

startscript.sh `#!/bin/sh

sed -e "s/user = username/user = $QPANEL_USER/" -i /qpanel/config.ini sed -e "s/password = password/password = $QPANEL_PWD/" -i /qpanel/config.ini sed -e "s/host = localhost/host = $ASTERISK_HOST/" -i /qpanel/config.ini

sed -e "s/;username = password/eu = mypass/g" -i /qpanel/config.ini`

docker commands: docker build --tag qpanel:v1 . docker run -d -m 256m --cpus 1 --restart always --name qpanel -p 81:5000 -v /etc/asterisk:/etc/asterisk:ro -v /var/log/asterisk:/var/log/asterisk:ro qpanel:v1

My panel not show anything: Screenshot 2020-10-12 102552

hmsolutons commented 3 years ago

What was your user id and password for login qpanel

yakkobr commented 3 years ago

in this case it was: user: qpanel pass: senha47.

hmsolutons commented 3 years ago

but I did not see this in your any conf file

yakkobr commented 3 years ago

I put this information on my manager.conf...

[qpanel] <- username permit=0.0.0.0/0.0.0.0 secret=mypass <- password read=command write=command,originate,call,agent

or did I do wrong? with this data in the asterisk console it appears that qpanel is logging in correctly.

hmsolutons commented 3 years ago

as per the document, you did perform correctly, and as per your above configuration that's all looking fine. what asterisk you are using freepbx, issabel, or core asterisk?.

yakkobr commented 3 years ago

Asterisk certified/13.21-cert6 with a brazilian interface "snep"

hmsolutons commented 3 years ago

Hello,

Your configuration almost looking fine, and I am facing different issues I am unable to log-in to QPanel web portal. You can see my configuration on the below issue #246. If do you have any idea so pls share. https://github.com/roramirez/qpanel/issues/246

yakkobr commented 3 years ago

@hmsolutons My conf is practically the same as yours.

hmsolutons commented 3 years ago

But I am still unable to log-in on the qpanel portal I really don't know why it is doing this however I have done all the required steps.

yakkobr commented 3 years ago

The interesting thing is that I can login, it works fine, but it doesn't load any information from the asterisk. If there was any way to search the generated logs, it would be very good to understand.