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

Comments

  • Hi Ronald,

    #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
  • My custom config does not work. It is timing out trying to connect to the server. Here is fop2.cfg

    [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
  • Hi Ronald,
    [MASTER]
    master_key=9550
    user[color=#FF0000:49w17npn]:[/color:49w17npn]1264:1264:all
    user[color=#FF0000:49w17npn]:[/color:49w17npn]1294:1294:all
    buttonfile=mstr_buttons.cfg

    The user definition is incorrect.. you have to use an equal sign after the "user" keyword:
    [MASTER]
    master_key=9550
    user[color=#00FF00:49w17npn]=[/color:49w17npn]1264:1264:all
    user[color=#00FF00:49w17npn]=[/color:49w17npn]1294:1294:all
    buttonfile=mstr_buttons.cfg

    Best regards,

    --
    Nicolás
Sign In or Register to comment.