Connecting Lync Server 2010 to Audiocodes Mediant Gateways
Presuming that you already have Lync Server installed and working internally, This is how you connect your Audiocodes Mediant gateway.
– Audiocodes Mediant 600 with E1/T1 30 Channel PRI Gateway module
– Lync Server 2010 Standard Edition
– Mediation server on same server as the lync installation
– Need to achieve incoming and outgoing enterprise voice calls through the mediant 600 (No ippbx inbetween)
– This implementation is for South Africa, so some of your normalization rules might have to be different
– Need to be able to make an outbound call successfully
– Need to be able to receive an Inbound call successfully
- Lync Server – Configure Mediation server to use the mediant to route to outbound calls
- Mediant 600 – Configure the mediation server as a path, and route incoming calls to the mediation server.
Please note that I did this in parallel with our current production pbx as we only have one mediant 600. I would of course, not recommend that you do this if you do not have the skills to troubleshoot what went wrong if anything breaks. I also don’t take any responsibility for anything you break in your environment by following this post.
Step 1 – Add the mediant as a pstn gateway using the lync server topology builder
Firstly, open the lync server topology builder, and add a new PSTN gateway, if you didn’t do this initially. The mediant 600 by default uses port 5060, and TCP as the transport protocol.
Enable Enterprise voice, by right clicking on Lync Server 2010 / / Standard Edition Front End Servers / and then selecting “Edit Properties”. Scroll down to “Features and Functionality”, then tick “Enterprise Voice”
Publish the topology, and then start up the lync server control panel.
Step 2 – Setup Voice Routing
Ok if you are outside the US, this can become tricky if you don’t know how normalization rules work in lync server. I battled it out for about 3 hours before all my tests completed correctly and showed that outbound calls will be sent to the gateway.
So basically what the normalization rules apply is:
- Any number that starts with a 0, accept
- Any number that starts with +27, accept (because our country code is +27)
I then edited the voice route, and I added two pattern matches, 0 and +. So everything starting with 0 and + will be accepted in the route.
Then I associated the mediant to the route in the “Associated gateways” box.
I then went to “Trunk Configuration”, and added two translation rules. First one with te following properties:
So this looks for numbers starting with “0”, is exactly 10 digits, and then uses it just as is.
so 0211234567 will be translated as 0211234567
so +27211234567 will be translated as 0211234567
The last thing you need to do, is let your mediant 600 know that you will be sending calls to it, and it should process it for you through your trunk.
So what you are seeing above, firstly, the mediant is accepting calls from my production pbx (10.1.1.15), and routing it through trunk Group 1. (Trunk Group 1 is the E1/T1 PRI module). I’ve added an entry to route all calls from the mediation server (10.1.1.148) also through Trunk Group 1. It basically takes the phone number just as it is presented to the gateway, and pass it to the service provider through the trunk.
At this point, you should be able to make outbound calls out of lync, provided that the user you are using to make the call is enabled for enterprise voice
Step 3 – Incoming calls. Setup Mediant 600
Now you need to configure your Mediant 600 gateway to receive calls to your lync mediation server. Remember, I have a production pbx in parallel here, so some of the configs you see, shows my production pbx also, but I will differentiate.
10.1.1.15 – Production PBX
10.1.1.148 – Lync Server Mediation Server
Login to your Mediant 600 gateway again, and go to the Proxy Sets Table, under Configuration / Protocol Configuration / Proxies, Registration, IP Groups
Add the IP address of your Lync Server 2010 Mediation Server and submit.
So what you are seeing above, is my configuration. If you are setting up lync and the gateway only, your entry will look something like line number 10 in the screenshot above.
What you are trying to achieve here is to tell the mediant which incoming calls should it send to the mediation server.
If you look at line 10, it should send all calls, to all phone numbers, to 10.1.1.15 (production pbx). This is what you want to do in your scenario. Because I’m testing with only a couple of users in our organization, I added the three numbers at the top of the config.
So what’s happening above, is route ALL CALLS FOR EXTENTIONS 5203, 5213 and 5221 TO 10.1.1.148 (Mediation Server)
otherwise, route to 10.1.1.15 (Production PBX). This separates my test environment from my production environment quite nicely.
That’s it! Now you should receive incoming calls on your Lync Server Implementation.
If I get requests for it. I’ll write a post on how to implement Lync Server 2010 from scratch, and how to connect your mediation server to an ITSP provider.