Saturday, March 7, 2009

Integration Of Exchange 2007 and OCS 2007

In the last post, I discussed about the Microsoft's core solutions on Unified Communications - Exchange Server 2007 UM and OCS 2007. I had a chance to setup a test environment where they both operate together. So here we will talk about their intergration and take a look how it looks like.

To have both of them work together, you need to have Exchange Server 2007 SP1. Here are the key steps that you need to perform to configure them:
  1. Configure the new dial plan. To do this, run this command from the powershell:

    New-umdialplan -name OCSPlan -Uritype "Sipname" -Voipsecurity "SipSecured" -Numberofdigitsinextension 4


  2. Go to properties of this dial plan and set the subscriber access number. Subscriber access is used by users to access their individual mailboxes to retrieve e-mail, voice messages, contacts, and calendaring information. Outlook Voice Access is the new Exchange 2007 Unified Messaging feature that lets subscribers access their Exchange 2007 mailbox.

  3. Apply this dial plan to the UM server:

    set-umserver -id UM_Server_Name -dialplans OCSPlan

  4. Run Powershell script "EXCHUCUTIL.PS1" from Exchange Management Shell. This is installed when you apply SP1 for Exchange 2007. To run this successfully you might need to modify the properties of the Start Menu shortcut for the Exchange Management Shell so that it launches directly from the Scripts folder "Program files\Microsoft\Exchange Server\Scripts".

  5. On the OCS server, run OCSumutil with the following command line: ocsumutil /domain:yourdomain.com

Now you can configure your users for Unified Messaging. You can do this from Exchange Management Console and right click on the user to Enable Unified Messaging and select the dial plan.

So now when you log on with this user to Communicator 2007, you will see the additional call menu from where you can forward your calls or redirect incoming calls to voicemail.



And now you get a Missed Conversation notification when someone IMs you and you are offline or away:

Also, You get the missed call notifications or voice mails when someone calls you via OCS client:


9 comments:

Carlos Rodrigues said...

Hi Vinay Pal Singh!

Great post about the Integration of Exchange 2007 with OCS 2007.

Based on indication on the post I try to integrate Exchange and OCS of my company, but without successful.

Was possible to you indicate all process but more “step-by-step” if possible with screen-shot or something!

Best Regards,

Vinay Pal Singh said...

Hi Carlos,

Can you please describe me your set up...
Also any error message you are getting... or getting the Outlook Integration error in communicator?

Thanks,
Vinay

Carlos Rodrigues said...

Hi Vinay, thank for the relay:

Steps:

###
1. Configure the new dial plan. To do this, run this command from the powershell:

New-umdialplan -name GebalisPlan -Uritype "Sipname" -Voipsecurity "SipSecured" -Numberofdigitsinextension 5

Name UMServers UMIPGateway Digits
---- --------- ----------- ------
GebalisPlan {} {} 5


###
2.

Go to properties of this dial plan and set the subscriber access number. Subscriber access is used by users to access their individual mailboxes to retrieve e-mail, voice messages, contacts, and calendaring information. Outlook Voice Access is the new Exchange 2007 Unified Messaging feature that lets subscribers access their Exchange 2007 mailbox.

Associated Subscriber Access Number: 50000


###
3. Apply this dial plan to the UM server:

Set-umserver -id gblsetuc02 -dialplans GebalisPlan

get-umserver

Name DialPlans
---- ---------
GBLSETUC02 {GebalisPlan}


###
4. Run Powershell script "EXCHUCUTIL.PS1" from Exchange Management Shell. This is installed when you apply SP1 for Exchange 2007. To run this successfully you might need to modify the properties of the Start Menu shortcut for the Exchange Management Shell so that it launches directly from the Scripts folder "Program files\Microsoft\Exchange Server\Scripts".


[PS] D:\Program Files\Microsoft\Exchange Server\Scripts>.\ExchUCUtil.ps1

Using Global Catalog: GC://DC=gebalis,DC=local

Configuring permissions for gebalis.local\RTCUniversalServerAdmins ...
GBL : Configured, skipping.
UM DialPlan Container : Configured, skipping.
UM AutoAttendant Container : Configured, skipping.

Configuring permissions for gebalis.local\RTCComponentUniversalServices ...
GBL : Configured, skipping.
UM DialPlan Container : Configured, skipping.
UM AutoAttendant Container : Configured, skipping.

Configuring UMIPGateway objects...
Pool: ocs01.gebalis.local
UMIPGateway: Not Found, creating.
DialPlans: GebalisPlan


Permissions for group gebalis.local\RTCUniversalServerAdmins

ObjectName
----------
GBL
UM DialPlan Container
UM AutoAttendant Container


Permissions for group gebalis.local\RTCComponentUniversalServices

ObjectName
----------
GBL
UM DialPlan Container
UM AutoAttendant Container



PoolFqdn
--------
ocs01.gebalis.local


###
5. On the OCS server, run OCSumutil with the following command line

C:\Program Files\Common Files\Microsoft Office Communications Server 2007 R2\Support>ocsumutil /domain:gebalis.local

-----------------------------------------------
Processing...
UM dial plan: GebalisPlan.gebalis.local

Creating contact for providing voice mail subscriber access...

Name: GebalisPlan
Phone Number: 50000
SIP URI: sip:GebalisPlan.gebalis.local@gebalis.local


******

The phone number supplied is already assigned to the following user or contact: sip:OCSPlan.gebalis.
local@gebalis.local.

******


******

GebalisPlan.gebalis.local -
A location profile has not been created that matches this dial plan. Until a location profile is cre
ated, the UM play-on-phone and call transfer features may not work.

******


******

Lost and Found Contacts -
You have contacts assigned to dial plans that could not be located in the Exchange UM domain. These
dial plans may have been deleted, or there may have been a problem (like missing permissions) access
the Exchange configuration data. If the dial plan has been deleted, consider deleting the correspon
ding contacts.

******


###
6. Enable UM on Mailbox User

Unified Messaging Mailbox Policy: GebalisPlan Default Policy
Extension Configuration: Automatically generated mailbox extension (11002)


###
7. Go to my Microsoft Office Communicator 2007 R2\Call Voice Mail

-> Voice Mail is busy

I try to calll 50000

-> 50000 is unavailable


Nots:
Ocsumutil output indicates that i need samething related with Location Profile.

I search the net about the OCS location profiles and the rules, etc., but not yet well understood the concept.

My company has internal extensions number from 10000 to 25000.

Carlos Rodrigues said...

Hi Vinay!

Today, at lunch time, we needed bring all system's down, and when the system's power on, when i try to call Voice Mail, now i get "incompactible security setting".

:S

Carlos Rodrigues said...

Ok, i find the soluction: http://blogs.technet.com/daveh/archive/2009/03/30/incompatible-security-setting-error-encountered-when-calling-voice-mail-from-microsoft-office-communicator.aspx


it was all a matter of reboot!!! :o)

Vinay Pal Singh said...

Perfect!

Alexis said...

I had two children. One of them unpleasantly astonished me. She crashed my computer. She is 2 years old. I tried to restore my data. But I could exactly settle my data only for MS Exchange and general role in this achievement has one software. This tool to my way of thinking has many good resources for solving such problem - exchange disaster recovery.

Viagra Online said...

without any intention to hurt the feeling of someone, but how can you use this? I mean is that nobody in here has proved the freedom of the open source, more chances and better options.

xlpharmacy said...

Microsoft offers us the most perfect solutions for all of us and that's excellent because that's what we're looking for "solutions" they also provide the most modern and useful applications to make the life easier.