Hello @all,
i have been reading a lot of helps/hints in this forum, all other places in the www.
But none of a solution fits for my problem.
I compiled a on
$lsb_release
Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: jessie
$uname -a
Linux XXXX 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux
$asterisk -rvvvv
Asterisk certified/13.21-cert2, Copyright © 1999 - 2014, Digium, Inc. and others.
---- no links allowed for new users
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Running as user ‘asterisk’
Running under group ‘asterisk’
Connected to Asterisk certified/13.21-cert2 currently running on XXXX (pid = 6468)
As you see, not running as root.
###########################
/etc/asterisk/manager.conf
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no ;only effects 1.6+
[admin]
secret =b56f82085735733e7a850e8893084ea0
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=192.168.XXX.0/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
writetimeout = 5000
;include manager_additional.conf
;include manager_custom.conf
###########################
/etc/amportal.conf
Asterisk Manager Password
Default Value: amp111
AMPMGRPASS=b56f82085735733e7a850e8893084ea0
Asterisk Manager User
Default Value: admin
AMPMGRUSER=admin
Asterisk Manager Host
Default Value: localhost
ASTMANAGERHOST=localhost
Asterisk Manager Port
Default Value: 5038
ASTMANAGERPORT=5038
###########################
/etc/freepbx.conf
<?php
$amp_conf['AMPDBUSER'] = 'freepbxuser';
$amp_conf['AMPDBPASS'] = 'ec9be7540d0b79f14142d271b27fc151';
$amp_conf['AMPDBHOST'] = 'localhost';
$amp_conf['AMPDBNAME'] = 'asterisk';
$amp_conf['AMPDBENGINE'] = 'mysql';
$amp_conf['datasource'] = ''; //for sqlite3
require_once('/var/www/html/admin/bootstrap.php');
?>
Starting with
$fwconsole -vvv start
delivers
=>
…
…
Setting /bin/mydir to permissions of: 755
Setting /var/www/html/admin/modules/core/agi-bin/list-item-remove.php user owner to: asterisk
Setting /var/www/html/admin/modules/core/agi-bin user owner to: asterisk
Setting /var/www/html/admin/modules/recordings/agi-bin to permissions of: 755
Setting /var/www/html/admin/modules/recordings/agi-bin/recordings.agi to permissions of: 755
Setting /var/www/html/admin/modules/recordings/agi-bin/recordings.agi user owner to: asterisk
Setting /var/www/html/admin/modules/recordings/agi-bin user owner to: asterisk
Setting /etc/foo.bar to permissions of: 644
Setting /etc/mydir to permissions of: 755
Setting /tmp/foo/ to permissions of: 644
Setting /bin/mydir to permissions of: 755
Finished setting permissions
Starting Asterisk…
[------------->--------------] 41 mins
[-------------------->-------] 48 mins
I also did:
$mysql> select * from admin where variable = ‘version’;
±---------±--------+
| variable | value |
±---------±--------+
| version | 13.0.60 |
±---------±--------+
1 row in set (0.00 sec)
and
$fwconsole ma list | grep framework
| framework | 13.0.195.4 | Aktiviert | GPLv2+
and
netstat -tulpen | grep asterisk
=>
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN 130 32447 6468/asterisk
udp 0 0 0.0.0.0:5060 0.0.0.0:* 130 32457 6468/asterisk
udp 0 0 0.0.0.0:52865 0.0.0.0:* 130 33002 6468/asterisk
udp6 0 0 :::57590 :::* 130 33003 6468/asterisk
lsoflisten
=>
apache2/:443/TCP
apache2/:8080/TCP
apache2/:80/TCP
apache2/:8443/TCP
asterisk/:5038/TCP
cupsd/127.0.0.1:631/TCP
cupsd/[::1]:631/TCP
master/[::1]:25/TCP
master/127.0.0.1:25/TCP
mysqld/127.0.0.1:3306/TCP
postgres/127.0.0.1:5432/TCP
postgres/[::1]:5432/TCP
rpcbind/:111/TCP
rpc.statd/:33027/TCP
rpc.statd/:41669/TCP
sshd/:22/TCP
xrdp/:3390/TCP
xrdp-sesm/127.0.0.1:3350/TCP
(---- no links allowed for new users =>, therefor no ., only _)
nslookup dns_quad9_net
=>
Server: 192.168.XXX.4
Address: 192.168.XXX.4#53
Non-authoritative answer:
(---- no links allowed for new users =>, therefor no ., only )
Name: dns_quad9_net
Address: 149.112.112.112
Name: dn.quad9_net
Address: 9.9.9.9
also working.
Freepbx-Webgui ist very slow, one click triggers a long time nothing, then after this long time the gui delivers something, but (cause of no connect), it stands for it self.
/var/log/asterisk/freepbx.log
=>
…
[2018-Aug-22 03:03:42] [CRITICAL] (admin/bootstrap.php:258) - Connection attmempt to AMI failed
[2018-Aug-22 03:05:19] [CRITICAL] (admin/bootstrap.php:258) - Connection attmempt to AMI failed
I do not have any other logs; was looking for them with
$locate asterisk| grep .log
also for freepbx.
This machine is a kvm-machine on (also) debian without any hw-cards needed, only Lan/VOIP, no analog stuff, no (german) ISDN, pure voip, nothing complicated. ![:wink: :wink:]()
Do not know, what to do. Nope.
Appreciate any help.
What else could i deliver for any appreciated help to solve this problem, that FreepbxGUI can not connect to Asterisk, although asterisk is running.
Thanks in advance
ELindemann