Modificar el FOP para soportar 99 anexos

manzurek

Joined
Jun 22, 2007
Messages
194
Likes
0
Points
0
#1
Editamos el archivo: /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl

######## LAYOUT INFO #########

# This layout info should really be in a "panel" table in the freepbx database

# structure is - Legend, startpos, stoppos, color1, color2
@rectangle1 = ("Trunks", 116, 125, "10ff10", "009900");
@rectangle2 = ("Extensions", 1, 100, "1010ff", "099cccc");
@rectangle3 = ("Parking lots", 111, 115, "ffff10", "cc9933");
@rectangle4 = ("Conferences", 106, 110, "006666", "a01000");
@rectangle5 = ("Queues", 101, 105, "ff1010", "a01000");
@rectangles = (\@rectangle1,\@rectangle2,\@rectangle3,\@rectangle4,\@rectangle5);

######## BUTTON INFO #########
$buttonsizex = 195; # from information in op_style.cfg
$buttonsizey = 20; # from information in op_style.cfg
$numbuttonsx = 5; # numero de columnas en el FOP
$numbuttonsy = 25; # numero de extensiones que entran en una columna


######## STYLE INFO #########
$extenpos="2-100";
#$trunkpos="52-60,71-80";
#$confepos="";
#$queuepos="42-50,61-70";

## SME server changes
$trunkpos="117-125";
$parkingpos="112-115";
$confepos="107-110";
$queuepos="102-105";

# print EXTEN "\n; $comment\n[rectangle]\nx=$xposition\ny=$yposition\nwidth=$xsize\nheight=$ysize\nline_width=0\nline_color=$color1\nfade_color1=$color1\nfade_color2=$color2\nrnd_border=2\nalpha=20\nlayer=bottom\n";
}

# print EXTEN "\n[LEGEND]\nx=$xposition\ny=$yposition\ntext=$text\nfont_size=14\nfont_family=Arial\nuse_embed_fonts=1\n";
}

Ahora editamos el archivo: /var/www/asterisk/panel/op_buttons.cfg

include => op_buttons_additional.cfg

; use this for your customizations to FOP
include => op_buttons_custom.cfg

; Old values now auto-generated:

; Queues
[rectangle]
x=789
y=32
width=244
height=110
line_width=0
line_color=ff1010
fade_color1=ff1010
fade_color2=a01000
rnd_border=2
alpha=20
layer=bottom

; Conferences
[rectangle]
x=789
y=144
width=244
height=110
line_width=0
line_color=006666
fade_color1=006666
fade_color2=a01000
rnd_border=2
alpha=20
layer=bottom

; Parking
[rectangle]
x=789
y=256
width=244
height=110
line_width=0
line_color=ffff10
fade_color1=ffff10
fade_color2=CC9933
rnd_border=2
alpha=20
layer=bottom


; Trunks
[rectangle]
x=789
y=368
width=244
height=222
line_width=0
line_color=10ff10
fade_color1=10ff10
fade_color2=009900
rnd_border=2
alpha=20
layer=bottom

; Extensions
[rectangle]
x=0
y=32
width=788
height=558
line_width=0
line_color=1010ff
fade_color1=1010ff
fade_color2=99CCCC
rnd_border=2
alpha=20
layer=bottom

[LEGEND]
x=792
y=368
text=Trunks
font_size=14
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=792
y=144
text=Conferences
font_size=14
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=792
y=256
text=Parking lots
font_size=14
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=792
y=32
text=Queues
font_size=14
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=3
y=32
text=Extensions
font_size=14
font_family=Arial
use_embed_fonts=1
Ahora el archivo: /var/www/asterisk/panel/op_style.cfg

[general]
; Fade out buttons for state
dimm_noregister_by=20
dimm_lagged_by=60

; Fade mwi when no mail is waiting
nomail_alpha=3

; If enabled, the phone will shake/ring
enable_animation=1

; Pixels to use on the ringing animtion
shake_pixels=2

; Show borders around text labels, useful for debugin style
show_borders=0

; If set, the label backdround will change to the led state color
enable_label_background=0

; set to 1 for encrypting server to client communications
enable_crypto=1

; use the font embeded in the flash movie instead of system fonts
use_embed_fonts=1

; colors for led states
ledcolor_ready=0x00A000
ledcolor_busy=0xA01020
ledcolor_agent=0xD0d020
ledcolor_paused=0x000000

; Settings for the button (rectangle)
btn_width=195
btn_height=20
btn_padding=2
btn_line_width=1
btn_line_color=000000
btn_fadecolor_1=ccccff
btn_fadecolor_2=FFFFFF
btn_round_border=1
btn_highlight_color=ff0000
btn_highlight_color=F79418

; Settings affecting the button label
label_font_size=8
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=10 ; If the label does not fit horizontally, increase this number
label_extent_y=0


; Settings affecting the button clid
clid_font_color=00dd00
clid_font_size=8
clid_centered=1
clid_font_family=Verdana
clid_margin_top=11
clid_margin_left=35

; Settings for the timer
timer_font_color=4000ff
timer_font_size=8
timer_font_family=Courier
timer_margin_top=11
timer_margin_left=160

; Settings for the oval led
led_scale=60
led_margin_top=10
led_margin_left=20

; Settings for the arrow
arrow_scale=60
arrow_margin_top=5
arrow_margin_left=5

; Settings for MWI Icon
mail_margin_left=-40
mail_margin_top=13
mail_scale=4

; Settings for icons
icon1_margin_top=10
icon1_margin_left=-15
icon1_scale=6

icon2_margin_top=10
icon2_margin_left=-15
icon2_scale=5

icon3_margin_top=10
icon3_margin_left=-15
icon3_scale=5

icon4_margin_top=10
icon4_margin_left=-15
icon4_scale=5

icon5_margin_top=10
icon5_margin_left=-15
icon5_scale=5

icon6_margin_top=10
icon6_margin_left=-15
icon6_scale=5

; Settings for Status Bar at the top
show_security_code=1
show_clid_info=0
show_btn_help=3
show_btn_debug=0
show_btn_reload=2
show_status=4
Finalmente asi quedara nuestro FOP B)
 

tolengo

Joined
Oct 31, 2008
Messages
117
Likes
0
Points
0
#2
Parece que funciona.

Gracias.
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#3
chévere, +1 para tu karma ;)
 

garcia.ronald.d

Joined
Sep 24, 2008
Messages
134
Likes
0
Points
0
#4
Hola, muchas gracias por la información...

En /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl no me aparece lo siguiente:

######## LAYOUT INFO #########

# This layout info should really be in a "panel" table in the freepbx database

# structure is - Legend, startpos, stoppos, color1, color2
@rectangle1 = ("Trunks", 116, 125, "10ff10", "009900");
@rectangle2 = ("Extensions", 1, 100, "1010ff", "099cccc");
@rectangle3 = ("Parking lots", 111, 115, "ffff10", "cc9933");
@rectangle4 = ("Conferences", 106, 110, "006666", "a01000");
@rectangle5 = ("Queues", 101, 105, "ff1010", "a01000");
@rectangles = (\@rectangle1,\@rectangle2,\@rectangle3,\@rectangle4,\@rectangle5);

######## BUTTON INFO #########
$buttonsizex = 195; # from information in op_style.cfg
$buttonsizey = 20; # from information in op_style.cfg
$numbuttonsx = 5; # numero de columnas en el FOP
$numbuttonsy = 25; # numero de extensiones que entran en una columna

Por otro lado, como loras que las colas te aparezcan en el FOP luego de ser creadas, porque para poder verlas tengo que crear las colas manualmente en el FOP.


Gracias
 

garcia.ronald.d

Joined
Sep 24, 2008
Messages
134
Likes
0
Points
0
#5
Ya logré que funcionara, todavía tengo el problema de las colas.

Otra cosa.......lei anteriormente como hacer para tener dos ventanas de FOP, pero no encuentro el Post donde lo dice, me pueden ayudar, si alguno lo tiene agregado en sus favoritos.

Gracias
 

netsfk

Joined
Jan 16, 2009
Messages
197
Likes
0
Points
0
#6
ya probe esto y no funciona para el elastix 1.5.2-2 alguien sabe como hacer esto en esta vercion, ya intente tambien esto

0. 100-200 ext should be created :)
1. edit /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
$extenpos="1-100";
#$queuepos="79-80";
#$trunkpos="47-60,67-78";
#$confepos="";
2. perl /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
 

sjimenez

Joined
Jan 4, 2010
Messages
6
Likes
0
Points
0
#7
hice modificaciones pero cuando doy de alta otra extension se vuelve a desconfigurar, alguien que me pueda ayudar?
 

netsfk

Joined
Jan 16, 2009
Messages
197
Likes
0
Points
0
#8
que archicos estas modificando, recuerda que hay archivos que cuando los modificas y hace cambios en el freepbx los borra, checate el nombre_archivo_custom.conf
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top