Connecting to server, attempt number : 1

HELP ME PLEASE!!!!! MY CONFIGURATION IS CORRECT BUT IS IMPOSSIBLE LOGIN .
HERE MY CONFIGURATION AND SOME TESTS.

centos*CLI> manager show users

username
admin
1 manager users configured.

centos*CLI> manager show connected
Username IP Address
admin 192.168.1.200


[root@centos fop2]# ./fop2_server --test
Flash Operator Panel 2 - No valid license found. Demo Mode
Connection to manager OK!


[root@centos fop2]# ./autoconfig-users-freepbx.sh
user=2203:1234:all
user=2204:1234:all
user=100:1234:all
user=101:1234:all
user=102:1234:all
user=103:1234:all
user=104:1234:all
user=105:1234:all
user=106:1234:all
buttonfile=autobuttons.cfg

[root@centos fop2]# pgrep fop2_server
16520
[root@centos fop2]# netstat -nta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:868 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.200:5038 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1720 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.200:43885 192.168.1.200:5038 ESTABLISHED
tcp 0 0 192.168.1.200:49597 200.61.177.8:80 ESTABLISHED
tcp 0 0 192.168.1.200:5038 192.168.1.200:43885 ESTABLISHED
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
[root@centos fop2]# iptables -vnL
Chain INPUT (policy ACCEPT 28094 packets, 28M bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 20406 packets, 2819K bytes)
pkts bytes target prot opt in out source destination



fop.cfg

[general]
; AMI definitions
manager_host=192.168.1.200
manager_port=5038
manager_user=admin
manager_secret=amp111
;event_mask=call,agent

; Daemon definitios
;listen_port = 4445
;restrict_host = www.asternic.org
;web_dir = /var/www/html/operator/fop2

; Global Config
language = en
poll_interval = 86400
poll_voicemail = 1
monitor_ipaddress = 0

;master_key = 1234

user=105:1234:all
;buttonfile=autobuttons.cfg
;#exec autoconfig-users-freepbx.sh


manager.conf

;
; AMI - The Asterisk Manager Interface
;
[general]
enabled = yes
port = 5038
bindaddr = 192.168.1.200

[admin]
secret = amp111
deny = 0.0.0.0/0.0.0.0
permit = 192.168.1.200/255.255.255.0
read = system,call,command,agent,user,originate
write = system,call,command,agent,user,originate

Comments


  • HELP ME PLEASE!!!!! MY CONFIGURATION IS CORRECT BUT IS IMPOSSIBLE LOGIN .
    HERE MY CONFIGURATION AND SOME TESTS.


    fop.cfg

    [general]
    ; AMI definitions
    manager_host=192.168.1.200
    manager_port=5038
    manager_user=admin
    manager_secret=amp111
    ;event_mask=call,agent

    ; Daemon definitios
    ;listen_port = 4445
    ;restrict_host = http://www.asternic.org
    ;web_dir = /var/www/html/operator/fop2

    ; Global Config
    language = en
    poll_interval = 86400
    poll_voicemail = 1
    monitor_ipaddress = 0

    ;master_key = 1234

    [color=#FF0000:1ha79am0]user=105:1234:all
    ;buttonfile=autobuttons.cfg
    ;#exec autoconfig-users-freepbx.sh
    [/color:1ha79am0]


    Look at the text in red above.. if you use freepbx, you should uncomment the #exec line and comment the user line, so it should look like:

    [color=#00FF00:1ha79am0]
    ;user=105:1234:all
    ;buttonfile=autobuttons.cfg
    #exec autoconfig-users-freepbx.sh
    
    [/color:1ha79am0]
Sign In or Register to comment.