Office Communications Server
From Pbxnsip Wiki
Basic Setup for pbxnsip / Office Communications Server 2007 Interoperability OCS
This document describes a simple setup for Microsoft Office Communications Server 2007 and pbxnsip V2.x software (V2.1.6 or higher are recommended!). Although this setup provides basic functionality to get one started, keep in mind both Office Communications Server 2007 and pbxnsip offer extensive customization allowing for much more complex configurations.
This guide assumes that you have deployed pbxnsip, OCS 2007 & OCS Mediation Server, Certificate stuff etc. and you only need configuration infos, to get the telephony integration running.
Configuring pbxnsip for Office Communications Server 2007 (for configuring Office Communications Server 2007, see below)
1. Create a trunk to your SIP-provider:
Type = SIP Registration, enter all account infos (username, domain, outbound proxy etc.) given by your provider. If you dont use a SIP-Provider create a trunk to your VoIP-PSTN gateway.
2. Create a trunk to OCS-Mediation Server:
Type = SIP Gateway
Domain = FQDN of OCSMediation Server (or IP)
Username = Anonymous
Password = BLANK
Outbound Proxy = sip:FQDN of OCSMediation Server:5060;transport=tcp (example: sip:ocs03.extranet.itacs.de:5060;transport=tcp)
Assume that call comes from user = primary name of an existing pbxnsip-account (Type = extension) which will be charged for calls from OCS-Mediation-Server to the real world. This account must not be in use / registered.
3. Create or edit a dialplan:
Pref = 100
Trunk = TRUNK to SIP-provider, or a trunk to your VoIP-PSTN gateway (screenshot shows a configuration example with an AudioCodes Mediant 1000)
Pattern = *, Replacement = * or 0* or something like this (depends on your enviroment)
4. Create Static Registrations related to OCS-Users:
Select one of the extensions (accounts) that you have configured in pbxnsip, switch to Registrations:
Under Add Contact, fill in (example): sip:+email@example.com;transport=tcp and Click Save.
Repeat this for all extensions/users that should receive an additional ringing in Office Communicator like this:
Users can decide if they want to take the call at the deskphone or with Office Communicator.
Configuring Office Communications Server 2007 for pbxnsip
1. Configuring OCS 2007 Voice Properties
a) Open the OCS-ServerManagement. Select Forest, then Properties -> Voice Properties, Click Add...
Fill in a profilename and a description. Click Add...
Fill in a rule name and a description.
Fill in a Phone pattern regular expression like ^(\d*)$ and a Translation pattern regular expression like $1
These pattern worked for me, maybe you need others! Test and Play with it or ask a .NET developer how it works. :) Click OK twice!
A screenshot with more pattern examples can be found here: CeBIT_2008_-_Microsoft_UCC_Infrastructure_Phone_Pattern
b) Switch to Phone Usages, you should find here: Name = Default Usage , Description = Sample phone usage, if not click Add..., and Add it.
c) Switch to Policy, activate your preffered Global policy setting, Defined Policies: you should find here: Name = Default Policy, click Edit.
Check Allow simultanous ringing of phones and check if the phone usage is configured Default Usage.
If it is not, click Add..., Add a policy and configure the usage. Click OK twice.
d) Switch to Routes: Click add...,
Fill in a Name (example: OCS to PBX via MEDIATION) and Description.
Fill in a Target regular expression like ^(\d*)$
These pattern worked for me, maybe you need others! Test and Play with it or ask a .NET developer how it works. :)
Go to Gateways Click add..., Your Mediation Server(s) should be listed here.
Select one and OK
Go to Phone usages click Configure... See if the Default is configured. OK twice.
One OK more and you leave Voice Properties. Please Check your voice settings again by clicking Voice beside the Status informations!
2. Configuring OCS 2007 Frontend Properties
Select Server/Pool Properties: Frontend Properties
Under Voice check if the Location Profile is set. Maybe configure phone lock. Click OK.
3. Configuring OCS 2007 User Properties
Switch to Users Properties/additional Options
Make sure that your ocs-activated-user's are enabled for Enterprise Voice (not pbx-integration) and that the Line URI is filled corresponding to the user. (example: tel:+49303999784xx) This depends on your enviroment! Especially how the called number was send to the ocs mediation server.
Note: If you want to know more about "Enterprise Voice with PBX integration", please check out the forum here.
4. Configuring OCS 2007 Mediations Server Properties
Select the Mediation Server Properties
Under General: If you use 1 NIC/ 1IP in OCS Medation Server (not supported, but it works) the Communications Server listening IP address and the gateway listening IP address are the same. If you use 2 IPs select the corresponding one. (Select the A/V Edge Server if you deployed one, not required). Select your default location profile and change the media port range if you want. For the first tests, use the default settings.
Switch to Next Hop Connections, Select the FQDN of your OCS Server/Pool, Port:5061 (default). PSTN Gateway net hop IP address, enter the pbxnsip IP address. Port:5060
5. Testing your new pbxsnip - OCS 2007 enviroment
1. Start communicator, login with an enterprise enabled user and type a phone number, start the call.
2. Call a voip-phone registered at pbxnsip and check if the related Communicator is ringing.
3. Try picking up calls in Communicator, HOLD (works in V18.104.22.1687 and higher), and Call Forwarding features etc...
I hope this helps you with the first steps. Best regards, Jan Boguslawski, ITaCS GmbH, Berlin
You like to see a real world complete topology example of a UC-VoIP enviroment? Take a look at what our team created (planning & deployment done in only 20 days). Note: this was running the whole productive Microsoft booth!