SOLVED FOP seems to be using wrong data

I have an issue with FOP
its only showing 39 out of 45 extensions
Some extensions are completly missing
Some are showing active when tey shouldnt
and some seem to relate to the wrong extension number.

Also some dont have any name on the button.
and am i able to change it from just showing the first name ?

I have looked through the config files but am unsure where it gets this userdata from

Please help.

Thanks

Dan

I am using Freepbx 2.5, the extensions were added using bulk extensions if this has any bearing

the default Layout for the FOP only supports showing 39 extensions. To get more you’ll have to dig into the files and re-configure things so that there are more “slots” to place extensions into.

There are several ways to go about it. 1 make them smaller (buttons, fonts, etc) so you get more space for more buttons. Redefine the layout structure reducing the area for some things and making others bigger. Remove items not used, say parking lot or conferences for example.

There is no one quick fix that fits every solution. In our case I expanded it to support 59 extensions, 19 conference rooms, 9 parking lot spot, and 29 trunks.

Thnaks for that
can you advise what files need changeing ?
i currently dont use ques confrences or parking slots and will have about 8 trunks?

there are several files that will need to be edited. Take a look at the /var/www/html/panel directory for a start as that’s where almost all of the files are. You’ll find some documentation there also. The author for the FOP also has his own site at www.asternic.org.

The other file that will need editing is /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl which has the slot locations of where to place things. But when you edit this file you will have to change it’s permissions as it get’s re-written from time to time when things get updated…

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

Drop the font size for the name down 1 point and then they should work.

Take a look at op_style.cfg and the parameters
label_font_size=
label_margin_left=

The FOP configs work by using the last occurrence of a definition. So just add what you want changed to the end of the file.