Custom Panels
We would like to create custom panels showing only buttons that a user needs to know about. EX: Call Center service manager needs to see only the extensions and queues of the agents in the call center, including his own extension. I tried using using custom contexts as explained in the manual, but it causes the panel to fail loading both the default view and the custom view. Here is my config:
[general]
; AMI definitions
manager_host=127.0.0.1
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 = 4201
; USER LIST
user=1294:1294:all
user=1246:1246:all
;user=620:1234:all
;user=621:1234:all
;user=622:1234:all
;user=623:1234all
;buttonfile=buttons.cfg
[SVC MGR]
master_key=9550
user:1286:1286:all
user:1294:1294:all
buttonfile=SVC_buttons.cfg
#exec autoconfig-users-freepbx.sh
[general]
; AMI definitions
manager_host=127.0.0.1
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 = 4201
; USER LIST
user=1294:1294:all
user=1246:1246:all
;user=620:1234:all
;user=621:1234:all
;user=622:1234:all
;user=623:1234all
;buttonfile=buttons.cfg
[SVC MGR]
master_key=9550
user:1286:1286:all
user:1294:1294:all
buttonfile=SVC_buttons.cfg
#exec autoconfig-users-freepbx.sh
Comments
#exec and static configs do not get along well. You are overriding your manual setup with the exec script. You can modify the script to generate the contexts, are go all manual. By the time being, the #exec directive overrides any manual setting.
BTW, I have just sent you an email. Hope you receive it.
--
Nicolás
[general]
; AMI definitions
manager_host=127.0.0.1
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 = 4201
; USER LIST
user=1294:1294:all
user=1246:1246:all
user=1286:1286:all
;user=621:1234:all
;user=622:1234:all
;user=623:1234all
buttonfile=mstr_buttons.cfg
[MASTER]
master_key=9550
user:1264:1264:all
user:1294:1294:all
buttonfile=mstr_buttons.cfg
[SVC]
master_key=9550
user:1264:1264:all
user:1294:1294:all
user:1286:1286:all
buttonfile=SVC_buttons.cfg
;#exec autoconfig-users-freepbx.sh
The user definition is incorrect.. you have to use an equal sign after the "user" keyword:
Best regards,
--
Nicolás