I have edited the FOP so it now shows 59 extension
and 4 queues, 4 confrences, 4 parking lots, and 4 trunks
Here is what i did
Edit /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
Here is a snipit of my code showing the old info comented out.
######## ORIGINAL 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", 53, 80, "10ff10", "009900");
#@rectangle2 = ("Extensions", 1, 40, "1010ff", "099cccc");
#@rectangle3 = ("Parking lots", 49, 72, "ffff10", "cc9933");
#@rectangle4 = ("Conferences", 45, 68, "006666", "a01000");
#@rectangle5 = ("Queues", 41, 64, "ff1010", "a01000");
#@rectangles = (\@rectangle1,\@rectangle2,\@rectangle3,\@rectangle4,\@rectangle5);
##
######## NEW LAYOUT INFO ########
structure is - Legend, startpos, stoppos, color1, color2
@rectangle1 = (“Trunks”, 76, 80, “10ff10”, “009900”);
@rectangle2 = (“Extensions”, 1, 60, “1010ff”, “099cccc”);
@rectangle3 = (“Parking lots”, 71, 75, “ffff10”, “cc9933”);
@rectangle4 = (“Conferences”,66 ,70 , “006666”, “a01000”);
@rectangle5 = (“Queues”, 61, 65, “ff1010”, “a01000”);
@rectangles = (@rectangle1,@rectangle2,@rectangle3,@rectangle4,@rectangle5);
######## BUTTON INFO #########
$buttonsizex = 246; # 1+244+1 from information in op_style.cfg
$buttonsizey = 28; # 1+26+1 from information in op_style.cfg
$numbuttonsx = 4;
$numbuttonsy = 20;
######## ORIGINAL STYLE INFO #########
#$extenpos=“2-40”;
#$trunkpos=“52-60,71-80”;
#$confepos="";
#$queuepos=“42-50,61-70”;
######## NEW STYLE INFO ########
$extenpos=“2-60”;
$trunkpos=“77-80”;
$confepos=“67-70”;
$parkingpos=“72-75”;
$queuepos=“62-65”;
SME server changes
#$trunkpos=“53-60,72-80”;
#$parkingpos=“50-51,69-71”;
#$confepos=“46-48,65-68”;
#$queuepos=“42-44,61-64”;
End of changes
then open the command line and type
/var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
you should then get
root@dan-pbx:~ $ /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
Notice: no Queues defined
Notice: no Conferences defined
Notice: no Parkings defined
Notice: no AMP Users defined
Table does not exist: custom
Table does not exist: custom
Then Type
amportal restart_fop
as this reloads the panel.
That has fixed it for me.
One thing i did notice is that if i view the panel within the admin interface then it doesnt show the full names?
to solve this i opened the page direct and it works fine http://pbxip/panel/
Thanks for your help
Dan