Install FOP 2.2 on Druid UCS
tThe Flash Operator Panel provides a web-based switchboard for your Druid UCS phone system. The web interfaces uses Flash or HTML5 to provide a live interactive display of all extensions, call queues, inbound and outbound trunks and call conferences.

Installation
Log in via SSH to your Druid UCS system and go to the /tmp directory. Download the tarball for FOP2 using wget:
cd /tmp
wget http://fop2.com/file.php?file=11
Unpack the tarball:
tar zxvf {tarball name}
Install FOP2:
cd fop2
make install
Now you can start the FOP2 service:
cd /usr/local/fop2
./fop2_server
You will need to configure the settings which we will cover next. As you configure settings you can restart FOP2 to load your latest settings:
service fop2 restart
Editing Configuration Files
The first file you need to configure is the fop2.cfg file located at /usr/local/fop2
At the top of the file you need to adjust the Asterisk Manager Interface user that FOP2 will authenticate to Druid UCS with:
[general]
; AMI definitions
manager_host=localhost
manager_port=5038
manager_user=amp
manager_secret=amp111
;event_mask=call,agent
- all: shortcut for specifying ALL permissions
- dial: for performing dials and originate calls
- hangup: for hanging up any call
- meetme: for meetme actions (mute/unmute/lock)
- pickup: for picking up ringing calls
- record: for starting or stoping call recording
- spy: for launching spy sessions
- transfer: for performing transfers and trasnfers to voicemail
- whisper: for launching spy sessions with whisper option
- queuemanager (*): lets you add/remove/pause any queue member dynamically
- queueagent (*): lets you add/remove/pause yourself to any queue
- phonebook (*): lets you use the phonebook for adding/removing entries
And now here is an example of this section of the fop2.cfg file:
;#exec autoconfig-users-freepbx.sh
queuecontext=ael-druid-originate
queuecontext=ael-druid-originate
queuecontext=ael-druid-originate
Edit the extensions.conf file in the Druid web interface and add the following context:
[fop2-park]
exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)}\,${$exten => _X.,n,ParkAndAnnounce(PARKED,,Console/dsp,${RETURN_CONTEXT},${RETURN_E$exten => _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)exten => _X.,n,Hangup
Configuring the Visual Address Book
yum install php-mysql mysql-server
/sbin/chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
/usr/bin/mysqladmin -u root password {newpassword}
Log into Webmin and configure webmin to have proper MySQL settings by going to Module Config and setting the start command to use:
/etc/init.d/mysqld start
and the stop command to use:
/etc/init.d/mysqld stop
Create a new database named fop2 in Webmin and import the SQL file from /var/www/html/fop2/mysql.db
Next in Webmin go to User Permissions and make a new user named fop2 and give him full permissions to localhost with a password of your choosing.
Finally, ed /var/www/html/fop2/config.php to have the username and password you specified above.
Phone Book
Note that phone book entries should just be the phone number digits, remove all dashes etc. Also, if your telephony provider requires a 1 to dial LD, add that to your number.













