Print

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.

Flash Operator Panel 2.1 working with Druid UCS showcasing multiple=

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

At the base of this file you will need to adjust the User List, name of the buttons file and disable the exec function that is used only by FreePBX. The User list should match the extensions of your Druid UCS users and you will likely want to provide the same password they use to log into Druid UCS. After the password you must list the permissions available for this user:
  • 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:

; USER LIST
user=5001:1234:all
user=5025:1234:all
user=5026:1234:all
;user=623:1234all
buttonfile=buttons.cfg
;#exec autoconfig-users-freepbx.sh

Next, edit the managers.conf file, which is edited via the Druid web interface, under the Manual Edit Asterisk Config files under the Advanced menu. Add a user for FOP2:
[amp]
secret=amp111
write=system,call,command,agent,user,originate
read=system,call,command,agent,user,originate
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0

Also in the web interface, edit the sip.conf file by adding this line:
callevents=yes

And add this to queues.conf:
eventwhencalled=yes

 
Editing Buttons

Prior to making all the buttons you must configure custom features for each user with voicemail. Make a custom feature that will dial the number *99{extension} to dial directly into the voicemail of the user. Set a feature code for this such as adding 99 in front of their extension.
The Buttons Configuration file describes all the buttons you will be displaying on your FOP2. The following example shows three extensions configured properly using the Druid UCS extension details, a call Queue, a Conference and a single SIP trunk. Use the "group" option shown below to separate extensions into logical groups. Each user can then reduce or expand the display of these groupings and this configuration will be remembered across browser launches:

[SIP/phone-aastra-1]
type=extension
extension=5001
context=druid-users
label="David"
mailbox=5001@druid-default
extenvoicemail=995001@druid-default
queuecontext=ael-druid-originate
queuechannel=Local/5001@ael-druid-originate/n
originatechannel-Local/5001@ael-druid-originate
email={youremail}@sollos.com
group=sales

[SIP/phone-aastra-4]
type=extension
extension=5025
context=druid-users
label="Natalie"
mailbox=5025@druid-default
extenvoicemail=995025@druid-default
queuecontext=ael-druid-originate 
email={youremail}@sollos.com

[SIP/phone-aastra-5]
type=extension
extension=5026
context=druid-users
label="Daniel"
mailbox=5026@druid-default
extenvoicemail=995026@druid-default
queuecontext=ael-druid-originate 
email={youremail}@sollos.com
group=sales

[QUEUE/voip]
type=queue
label=Main Queue
extension=6002
context=druid-default

[CONFERENCE/7000]
type=conference
label=Conference
extension=7000
context=druid-default
[PARK/default]
type=park
extension=700
label=Parking
context=parkedcalls

[SIP/Vitelity]
type=trunk
label=Vitelity

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.



Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! TwitThis Joomla Free PHP