Step by Step Lync 2010 Enterprise Voice with Cisco Call Manager Express (or UC500) Part 2

Words of warning!!

Be careful if you use these configurations on a live system and do not simply copy and paste this configuration in to a running CME or UC500 system, check your dial-peers and translation rule numbers (“show run” is your friend) otherwise you might overwrite something you later come to regret!

Call Manager Express Inbound Call Configuration

This first key to enterprise voice is to allow the users on Lync to dial our Cisco phone users as well as external numbers on the PSTN. The following example below is from my live running CME router:

dial-peer voice 552 voip
 description **Incoming Call from LYNC**
 b2bua
 session protocol sipv2
 session target ipv4:192.168.100.64:5068
 incoming called-number .%
 voice-class codec 1
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 no vad
!

Nothing clever above, the IP address above is that of your Lync mediation server and the standard mediation server port (5068), keep an eye on the port number and ensure it matches up with your mediation server port if you changed it and do not simply enter 5060 because it is your UC’s SIP port. This port number is the number the UC talks BACK to your Lync server on.

Although the above doesn’t appear to be mandatory as our UC still dialled a number coming out of Lync without this, we found that it was intermittent at best and we could no longer control things such as class of restrictions without it.
Call Manager Express Outbound Call Configuration

The next step is to allow a user to call a user who is on the Lync platform, to do this is a little bit more complicated. To make the experience a little easier on the user (and you can’t easily dial a + on a Cisco phone) we are going to create a translation rule and link this to our dial peer.

By creating this translation rule it will allow a user to dial simply 5xxx and the CME/UC500 router will automatically add the + to the extension as it exits the CME/UC500 system, remember Lync requires e.164 style numbers so this is going to give Lync what it wants.

Be aware single number reach will not work with this configuration, my next blog post will be on how to co-exist with Lync using Cisco Signal Number Reach on the CME/UC platform.

Translation Rules

A translation rule consists of 2 parts, the rule itself and a profile that the rule is linked to, below is the translation rule and translation profile created on our system to make this work. Be aware you need to create the rule first before creating a profile.

The rule below simply adds a + in front of anything dialled that starts with a 5 and is 4 digits long.

voice translation-rule 4000
 rule 1 /\(5...\)/ /+\1/
!

Translation Profile Creation

This profile simply calls the above translation rule.

voice translation-profile LYNC_ADD_PLUS
 translate called 4000
!

Now that we have create the translation profile and translation rule it is time to create a dial peer that will call the Lync server when a user dials 5xxx.

Below is the live running configuration from our CME router, again be wary of the port as it needs to be the port of the mediation server.

dial-peer voice 551 voip
 description ** SIP Trunk to Lync Core **
 translation-profile outgoing LYNC_ADD_PLUS
 destination-pattern 5...
 notify redirect ip2pots
 session protocol sipv2
 session target ipv4:192.168.100.64:5068
 session transport tcp
 dtmf-relay rtp-nte
 codec g711ulaw
 fax rate disable
 fax protocol pass-through g711ulaw
 no vad
!

Once you have done the above is you should now have a fully functional enterprise voice installation, ensure that you enable a user with Enterprise voice.

Enabling a User for Enterprise Voice

An example Lync user configuration is below, enabling Enterprise voice is simple just select the option. It is important to set the Line URI.

In the example below I have configured the “tel:” to be my Lync phone number so in my example below it is 5346 and have also included my Cisco desk phone which is “6346” it is important if you use the extension that you do not add the + to the front of it.

Adding your desk extension improves the Lync experience as Lync will recognise you from your desk phone when you dial in to things such as the conference centre.

image

Until next time have fun with Lync and Enterprise Voice!!

I would like to give special thanks to my colleague Matt Johnson who assisted me greatly in this configuration on our environment!

Advertisements

17 comments

  1. Pingback: Lync 2010 Enterprise Voice with Cisco Call Manager Express (Or UC500) | Matt-J.co.uk : Ramblings
  2. geryatric

    Hi what features does this give you?
    Is it just call control of Deskphone / Softphone or can you see Presence information for users e.g. when they are offhook?

    • James Botham

      Hi,

      This just gives you enterprise voice i.e. calls to and from Lync, I have done similar integration with RCC which lets you control the phone and gain presence information for the phone. I am going to be blogging about how to do this shortly.

      Thanks

      James

  3. Milen Stanchev

    Hi,

    this series was very informative for me and I finally managed to enable Enterprise voice thanks to it. Are you planning to publish integration with RCC any time soon?

    Thanks

    • James Botham

      Hi,

      Apologies for the length of time this has taken, yes I do intend to do RCC and a followup troubleshooting article for this as after a few months of running with this we have found a couple of fun integration tasks that we needed to resolve but the integration is very stable.

      Thanks

      James

  4. shameer

    Hi James

    Is it possible to make both Lync client and Desk phone ring simultaneously if some one ring the Lync extension OR ipphone extension

    shameer

    • James Botham

      Hi,

      yes this is possible, on the Lync client set simultaneous ring to also be your desk extension. For the other way around to make a Cisco phone ring your desk phone enable Single Number Reach on the Cisco extension that you wish to do this for.

      Thanks

      James

  5. Buy Direct

    Simply wish to say your article is as amazing. The clearness to your publish is just great and that i can think you’re knowledgeable in this subject. Well along with your permission allow me to seize your RSS feed to stay updated with impending post. Thanks one million and please carry on the enjoyable work.

  6. Goods at auction

    Thanks for any other informative web site. Where else may just I am getting that kind of information written in such a perfect method? I have a mission that I am just now operating on, and I’ve been at the look out for such information.

  7. telephony network

    Undeniably believe that which you stated. Your favorite justification seemed to be
    on the web the simplest thing to be aware
    of. I say to you, I certainly get annoyed while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

  8. Brian

    This is great info. Appreciate you sharing.

    Followed your instructions and the dial-peer is matching, and translation rule is working but for some reason the UC500 is trying to use the Fa0/0 interface to establish the SIP session. Strange as the Mediation server is on the internal network. When looking at the SIP debug I see:
    INVITE sip:+2672@192.168.10.80:5068 SIP/2.0
    Via: SIP/2.0/TCP 192.168.1.250:5060;branch=z9hG4bK24801993
    You can see the “Via” is by the external address. Is there something i need to change to ensure the UC500 uses one of its internal interfaces to be handling this setup? The UC500 basically keeps trying and then shows a message of SIP/2.0 604 Does not exist anywhere.
    Debug on the Mediation server indicates the packets aren’t getting to the Lync server. Incoming from Lync server works great.

    • James Botham

      Yes, there is a command that you need to use that specifies which interface you are using for the telephony service.

      I am not at work this week so won’t be able to check what the command is but if you are still having problems when I return on Monday let me know and I will send you over a cleansed copy of my working configuration so you can have a look.

  9. jeanchye

    Hi James,

    Is Entreprise voice feature available with Lync standard edition ?
    I’m trying to link both my UC540 and lync front-end-server and have some trouble issues

    • James Botham

      Hi,

      Yes you can use it on a standard edition server but you need to purchase Enteprise CAL licenses for users who are using the Enterprise Voice feature.

      We have a DR site and it uses a standard edition server and is connected to a UC560 without issue.

      • jeanchye

        Thanks James for your site .

        I finally nearly succeed to configure the UC540 with lync.
        One step is missing :
        Considering i put a SDA number on a lync client user
        What configuration need to be set to allow call from outside to ring on lync User via UC540 ?

        Thanks

  10. David Schomburg

    Hi James,

    This is most likely the best explanation I have ever seen on this process. I am trying to set this up in a Lab Environment with a UC520. One thing I am always confused about is what are you using for the PSTN gateway. Is that actually the Cisco UC? Or is there some kind of third device between the Lync and Cisco UC.

    Thanks for the blog.

    • James Botham

      Hi David,

      You are correct the gateway is the UC500, there is no third party device in my setup. I can also confirm this configuration works with Lync 2013 in case anybody is interested as I am just finishing off a Lync 2010 to Lync 2013 migration that uses a UC560 for telephony.

      Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s