Configuration
Configuring Web Pages
Although it is not mandatory, you can do some configuration and tweaks on the web client.
The most important configurations are the language to use on the client, and optionally the presence options.
Language configuration on the client is done by modifying the index.html file and including the correct lang_xx.js file. The default language is "en" for english. You can change it to "es" for spanish. If you want to translate it to other languages, just replicate a lang_xx.js file and do the translation there, and be sure to include it in the index.html file
[snip]
<script type="text/javascript" src="js/lang_en.js"> </script>
<script type="text/javascript" src="js/presence.js"> </script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
[snip]
Presence Options
The presence options are enumerated in the js/presence.js file, the default one is:
var presence = new Object(); presence[''] = ''; presence['Do not Disturb'] = '#FF8A8A'; presence['Out to lunch'] = '#57BCD9'; presence['Break'] = '#6094DB'; presence['Meeting'] = '#CDD11B';
You can set any number of options and their hex colors, do not remove the first 2 lines as they are mandatory... the empty presence is the one for "available" state.
This feature lets you select one of the options you define, and it will flag your extension with that color and a tooltip with the text description when someone mouse overs the presence icon. This way a receptionist will get a hint about your availability to take calls without the need to ring your phone.
There are a couple of more options to set in presence.js:
var showLines = 2; var notifyDuration = 6;
showLines lets you select how many lines to display per button. You can reduce the number to 1, or increase it to 4. This setting is global and it will be applied to ALL extensions.
notifyDuration (*) lets you set the time in seconds to display inbound call notifications. You can increase the time or disable notifications completely by setting it to zero.
Visual Phonebook
The visual phonebook requires php and mysql to be installed and running. You need to create a database and a table and give proper mysql credentials to the php application so it can read and write to the table. You also have to configure the language for the php application. In order to start, be sure to create a database for mysql using the proper password (replace XXXXX with your mysql root password):
After creating a database and the table, you might want to create a special mysql user for FOP2:
"grant all privileges on fop2.* to fop2@'localhost' \
identified by 'myPassw0rd'"
Finally you have to edit the configuration file and set the language and proper mysql credentials:
<? // Database connection details $DBHOST = 'localhost'; $DBNAME = 'fop2'; $DBUSER = 'fop2'; $DBPASS = 'myPassw0rd'; $language="en"; // --------------------------------------------------------- // Do not modify below this line // --------------------------------------------------------- ..

