1. 在/usr/local下解压文件夹
tar zxvf op_panel-0.30.tar.gz
2. 在/var/www/html下创建目录panel, mkdir /var/www/html/panel
将flash文件夹下的内容拷贝到/var/www/html/panel,
cp /usr/local/op_panel-0.30/flash/* /var/www/html/panel/
3. 将 op_panel-0.30下的内容拷贝到panel,
4. 编辑op_server.cfg,设置如下
[general]
use_amportal_conf=0;
manager_host=127.0.0.1
manager_port=5038
manager_user=freeiris //在manager.conf中定义
manager_secret=freeiris //在manager.conf中定义
auth_md5=1
flash_dir=/var/www/html/panel
security_code=passw0rd
poll_interval=120
poll_voicemail=1
kill_zombies=0
parkexten=700
parktimeout=30
debug=0
language=en
conference_context=conferences
barge_rooms=900-902
barge_muted=1
clid_format="xxxxxxxxxxxx"
clid_privacy=0
show_ip=0
queue_hide=0
rename_label_agentlogin=0
rename_label_callbacklogin=0
rename_label_wildcard=0
rename_to_agent_name=1
agent_status=0
rename_queue_member=0
change_led_agent=1
reverse_transfer=0
clicktodial_insecure=1
transfer_timeout= "0,No timeout|300,5 minutes|600,10minutes|1200,20 minutes|2400,40 minutes|3000,50 minutes"
enable_restart =0
voicemail_extension = 500@from-exten-sip
passvars=FROM_DID
5. 根据你的需要编辑op_buttons.cfg。
6. 根据你的需要编辑op_style.cfg。可以改变按钮的大小和颜色;图标的位置和大小
修要修改的部分
(1) 灯显示状态颜色的设置
ledcolor_ready=0x00A000
ledcolor_busy=0xA01020
ledcolor_agent=0xD0d020
ledcolor_paused=0x000000
(2) 设置按钮的属性(矩形)
btn_width=150
btn_height=25
btn_padding=2
btn_line_width=2
btn_line_color=F79418
btn_fadecolor_1=ccccff
btn_fadecolor_2=2973FF
btn_round_border=8
btn_highlight_color=F79418
(3) 设置按钮标签的属性
label_font_size=11
label_font_family=Verdana ; only valid when use_embed_fonts is disabled
label_font_color=000000
label_shadow_color=dddddd
label_margin_top=0
label_margin_left=35
label_shadow=1
label_extent_x=40 ; If the label does not fit horizontally,increase this number
label_extent_y=0
(4) 设置按钮来电显示属性
clid_font_color=00dd00
clid_font_size=11
clid_centered=1
clid_font_family=Verdana
clid_margin_top=0
clid_margin_left=35
(5) 设置时钟的属性
timer_font_color=4000ff
timer_font_size=11
timer_font_family=Verdana
timer_margin_top=11
timer_margin_left=160
(6) 设置椭圆形的灯的属性
led_scale=60
led_margin_top=10
led_margin_left=20
(7) 设置键头的属性
arrow_scale=60
arrow_margin_top=5
arrow_margin_left=5
7. 设置完所有的属性后,创建目录/usr/local/fop将op_server.pl拷贝到该目录下,然后
cd /var/www/html/panel/init/
./op_panel_redhat.sh restart