So we have our new Lync 2013 deployment configured and we have done the initial integration with Exchange 2013 to allow us to use the Unified Contacts Store (UCS) and the various archiving options (see my codevious article). We now need to move on to setting up Lync 2013 voicemail enabled users.


Lab Setup

Server Name IP Address Description
EXCH-FE Exchange 2013 Front End Server
EXCH-BE Exchange 2013 Back End Server
LYNC-01 Lync 2013 Enterprise Front End Server
LYNC-02 Lync 2013 Enterprise Front End Server
SQL-01 SQL 2012 Server

DNS Records

These additional DNS records were created

Record Name Record Type Record Value
Autodiscover A
LyncDiscoverInternal CNAME LyncPool
LyncPool A
LyncPool A


Before anything can be configured for voicemail we must have Server to Server authentication configured and working correctly- see codevious articleAn Exchange dial plan is thennecessary to allow Lync 2013 to call the voicemail on our Exchange Server.The plan must be first created with some of the required settings, then amended for the additional settings necessary.
New-UMDialPlan -Name "LyncDialPlan" -VoIPSecurity "Secured" -NumberOfDigitsInExtension 3 -URIType "SipName" -CountryOrRegionCode 44
Set-UMDialPlan "LyncDialPlan" -ConfiguredInCountryOrRegionGroups "Anywhere,*,*,*" -AllowedInCountryOrRegionGroups "Anywhere"

Lets explain some of these settings:

  • VoIPSecurity – Secured means we are going to use TLS
  • NumberOfDigitsInExtension – Sets up our number of digits in Voicemail extensions
  • URIType – SipName indicates we are going to use SIP as our protocol
  • CountryRegionCode – sets our region dial code – 44 is UK, 1 is US
  • ConfiguredInCountryOrRegionGroups –
  • AllowedInCountryOrRegionGroups –

Set the UM service on our back end server todualandassociate or dial plan
Set-UmService -Identity "" -DialPlans "LyncDialPlan" -UMStartupMode "Dual"
Assign our back end certificate to the various services so that they will start
Enable-ExchangeCertificate -Server "" -Thumbprint "THUMBPRINTSTRING" -Services "SMTP","IIS","UM"
Set the UM Call Router service on ourfront end server todualandassociate or dial plan
Set-UMCallRouterSettings -Server "" -UMStartupMode "Dual" -DialPlans "LyncDialPlan"
Assignourfront endcertificate to the various services so that they will start correctly
Enable-ExchangeCertificate -Server "" -Thumbprint "THUMBPRINTSTRING" -Services "IIS","UMCallRouter"
Now we have our UM and UM Call Router services configured, just give them a quick restart as we have changed the start-up modes.Create a UM Mailbox policy
New-UMMailboxPolicy -Name "UMMailboxPolicy" -AllowedInCountryOrRegionGroups "Anywhere"
Voicemail enable a user using this newly defined policy
Enable-UMMailbox -Extensions 100 -SIPResourceIdentifier "" -Identity "domain\TestUser1" -UMMailboxPolicy "UMMailboxPolicy"
We now need to ensure that Lync has access to our dial plans, that we have an IP gateway and hunt groupdefined for Lync.
cd “C:\Program Files\Microsoft\Exchange Server\V15\Scripts\”

With all the configuration done all that is left is for us to do issome testing
$credential = Get-Credential "domain\TestUser1"
Test-CsExUMConnectivity -TargetFqdn "" -UserSipAddress "" -UserCredential $credential
Test-CsExUMVoiceMail -TargetFqdn "" -ReceiverSipAddress "" -SenderSipAddress "" -SenderCredential $credential