Modifying the FOP in elastix 1.5-1

Discussion in 'General' started by telecomtechnician, Feb 22, 2009.

  1. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    Hi there

    I want to change the buttons size and the position inside the flash operator panel. I did it before when FOP was embemded in freepbx 2.4, but now, in the elastix 1.5-1 there are a few things that have changed and have been added in freepbx 2.5 so now I can not do it.

    Please I would like some help about this

    Waiting for your comments

    David Medina
     
  2. gmeles

    Joined:
    Jul 28, 2008
    Messages:
    32
    Likes Received:
    0
    you have to play with two files

    /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
    and
    /var/www/html/panel/op_style.cfg

    what I did for 80 extensions, 19 trunks, 19 Conferences, 19 Parking lots, 19 Queues

    in

    /var/www/html/panel/op_style.cfg

    btn_height=13


    and in

    /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl

    # structure is - Legend, startpos, stoppos, color1, color2
    @rectangle1 = ("Trunks", 121,140, "10ff10", "009900");
    @rectangle2 = ("Extensions", 1, 80, "1010ff", "099cccc");
    @rectangle3 = ("Parking lots", 141, 160, "ffff10", "cc9933");
    @rectangle4 = ("Conferences", 101,120, "006666", "a01000");
    @rectangle5 = ("Queues", 81, 100, "ff1010", "a01000");
    @rectangles = (\@rectangle1,\@rectangle2,\@rectangle3,\@rectangle4,\@rectangle5);

    ######## BUTTON INFO #########
    $buttonsizex = 246; # 1+244+1 from information in op_style.cfg
    $buttonsizey = 15; # 1+26+1 from information in op_style.cfg
    $numbuttonsx = 4;
    $numbuttonsy = 40;


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

    ## SME server changes
    $trunkpos="122-140";
    $parkingpos="142-160";
    $confepos="102-120";
    $queuepos="82-100";


    Then of course you have to

    amportal stop
    /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl
    amportal start

    from the cli

    btw it is not perfect (I'm working on a solution). The problem is that the queueus starts from 86 and not 82 as I want, but for now is OK

    Hope it helps.
     
  3. samix4u

    Joined:
    Mar 31, 2008
    Messages:
    20
    Likes Received:
    0

Share This Page