El foro con los últimos post de Asterisk
El foro con los últimos post de Asterisk
coordina (arroba) asterisk-peru.org
También puedes visitar
Asterisk Latam
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
Exelente Informacion ... pero quisiera que me ayudaras con algo si es posible
tengo en mi elastix 87 Extensiones, ya apliqué los cambios que indicas y si cambió el tamaño de los botones y letras y ahora hay mas espacio .... pero me siguen apareciendo las mismas 39 EXT que veia antes, y las Troncales no aparecen en el cuadro Verde (Trunks) sino por fuera al lado de la ultima ext
soy muy novato en esto .... agradeceria mucho tu ayuda
Aqui adjunto lo archivos para modificar el FOP, simplemente reemplazas los archivos de tu elastix y lo reinicias con amportal restart
Saludos,
Gracias por los archivos .... pero mi problema sigue
tengo 87 extensiones
solo veo 39 y el resto del espacio [que ahora es bastante :)] está vacio ... que le faltará a mi configuración
Muchisimas gracias por tu ayuda
El archivo op_buttons_additional.cfg es generado por el freePBX, crea una nueva extensión y revisa el archivo indicado, donde cada anexo se especifica como:
[SIP/anexo]
Position=2 =====> posicion del anexo (desde 2 hasta 100)
Fenomenal AYUDA manzurek .... efectivamente desp del #40 volvia a empezar en Position=2
Muchas Gracias por tu ayuda
ahora me queda otro pendiente ... no veo Ninguna Troncal
el cuadro Verde (Trunks) está vacio ... debia ver ahi las 12 troncales de mi TDM2400P ?
si tienes alguna idea ... de antemano Muchisimas gracias
Como tienes un elastix en el archivo: /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
################### BEGIN OF CONFIGURATION ####################
if (scalar @ARGV == 2)
{
$amportalconf = $ARGV[0];
$zapataconf = $ARGV[1]."/zapata.conf";
$zapataautoconf = $ARGV[1]."/zapata-auto.conf";
} else
{
$amportalconf = "/etc/amportal.conf";
$zapataconf="/etc/asterisk/zapata.conf";
$zapataautoconf="/etc/asterisk/zapata-auto.conf";
}
Gracias por la respuesta manzurek
efectivamente asi lo tengo: zapata-auto.conf .... pero tambien probé cambiando a zapata-channels.conf y no funciona
las Trunks no se ven
es mas... el archivo /etc/asterisk/zapata-auto.conf no existe en mi Elastix pero zapata-channels.conf si está
Saludos
crea el archivo zapata-auto.conf y editalo, colocando:
#include zapata-channels.conf
y reinicias tu server (amportal restart)
Gracias por tu rapida respuesta
ya tengo el Archivo y reinicié el Server pero igual
no se ven las Trunks :(
crea una troncal SIP (con cualquier dato) desde el freePBX y revisa si aparece en el FOP
hice lo que me dices y si apareció la nueva ext ...y salieron las 2 troncales IAX2 que tengo creadas.... buen avance
pero el resto de troncales nada
creé una nueva troncal IAX2 y si salió debajo de las 2 que ya tenia
tengo en mi elastix una TE120P con 1 E1 de 32 Lineas
y una TDM2400P con 12 Troncales FXO .... sumando las 2 troncales IAX2 da un total de 46 Troncales ...
será por la cantidad de troncales ???
Gracias por tu ayuda
en el archivo zapata-auto.conf agrega:
#include zapata-channels.conf
#include zapata_additional.conf
y reinicias tu server y vuelves a crear desde freePBX otra troncal SIP
Manzurek....gracias por tus respuestas
por ahora sigue igual
pero leyendo un poquito creo que el truco está en el archivo
retrieve_op_conf_from_mysql.pl en
sub parse_zapata{ ... abre los archivos configurados en las variables:
$zapataconf="/etc/asterisk/zapata.conf";
$zapataautoconf="/etc/asterisk/zapata-channels.conf";
y de ahi saca los datos de las troncales que se imprimen en el FOP
estoy muy crudo en el tema como para proponer una solución :(
asi esta mi archivo zapata-channels:
; Span 1: WCT1/0 "Digium Wildcard TE110P T1/E1 Card 0" (MASTER) HDB3/CCS/CRC4 RECOVERING
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
group=
context=default
; Span 2: WCTDM/0 "Wildcard TDM2400P Board 1"
;;; line="32 WCTDM/0/0 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 32
context=default
;;; line="33 WCTDM/0/1 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 33
context=default
.
.
.
;;; line="51 WCTDM/0/19 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 51
context=default
Realice algunas modificaciones
Donde finalmente el FOP quedo con 7 columnas
ahora si Manzurek .... MIL GRACIAS por tu ayuda
tengo mi FOP andando al 100%% ... :)
Manzurek,
Genial esta información, gracias por compartirla :)
Nestor
Comentarios recientes
hace 19 mins 46 segs
hace 4 horas 23 mins
hace 6 horas 13 mins
hace 2 días 37 mins
hace 2 días 1 hora
hace 4 días 7 horas
hace 5 días 6 horas
hace 5 días 7 horas
hace 6 días 3 horas
hace 6 días 8 horas