A web server, through the HTTP4.9 and/or HTTPS protocols, is responsible for the answers to users requests, concerning the web pages lodged in it, and each server may lodge several sites. The IPBrick web server running in IPBrick 5.0 is Apache 2.2.34.10. The base virtual hosts registered in IPBrick are displayed after clicking on Web Server and may be seen in Figure 4.25.
IPBrick hosts the following sites by default:
The generic site is ucoip.domain.com but the idea is to have one site for each LDAP user. The following options are included:
Like we can see, for SIP/SMTP/XMPP the user will be reached using the single address user@domain.com. The UCoIP site design is simply but it can be improved. It's possible to use a specific FTP account for site management:
Now we present all the necessary steps to configure a UCoIP site for a specific LDAP user with username jsmith, with IPBrick FQDN being ipbrick.domain.com:
jsmith must go to https://myipbrick.domain.com and define a phone (depending of the IPBrick.GT routes can be a SIP/PSTN/GSM number) at field SIP Address. Examples: 101@domain.com, 00351221121112, 00351963322212;
IPBrick.C - IM;
IPBrick.C - Web Server, click at ucoip.domain.com and define the alternative address jsmith.domain.com;
jsmith, pointing to that IPBrick server;
url must be changed.
The source code of this page is presented next:
<script language="JavaScript">
function webphone() {
var day = new Date();
var id = day.getTime();
var url = 'index2.php';
eval("page" + id + " = window.open('" + url +"' , '" + id + "',
'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,
resizable=0,width=285,height=430');");
}
</script>
<h1>Example Link</h1>
<a href="javascript:webphone()"><img alt="IPBrick.GT high
versability working for the New Internet" src="webphone.jpg"></a>
Examples of url variable definition:
var url = 'index2.php?user=jdomingues';
var url = 'index2.php?user=200';
var url = 'index2.php?user=IVR2';
NOTE: From now, this webphone can be used only with Internet Explorer.