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.
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.
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!