messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have...

22
In this article, I will be demonstrating integration of Lync Server 2010 with Asterisk open source voice over IP solution. Asterisk can serve as gateway for Lync server in test environment for validating voice connectivity and feature. Scenario: Configuration To help you setup direct SIP with Asterisk, step-by-step instructions for configuring Asterisk, Lync Server and the 3CX SIP client for Asterisk are discussed in this section. A. Configuring Asterisk Installation of Asterisk server is not discussed in this article. You can start after the default installation and basic “setup” is completed.

Transcript of messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have...

Page 1: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

In this article, I will be demonstrating integration of Lync Server 2010 with Asterisk open source voice over IP solution. Asterisk can serve as gateway for Lync server in test environment for validating voice connectivity and feature.

Scenario:

ConfigurationTo help you setup direct SIP with Asterisk, step-by-step instructions for configuring Asterisk, Lync Server and the 3CX SIP client for Asterisk are discussed in this section.

A. Configuring Asterisk

Installation of Asterisk server is not discussed in this article. You can start after the default installation and basic “setup” is completed.

Page 2: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

I am using Asterisk Graphical Interface to create a new Dial plan and two user extensions associated with this dial plan.

1. Login to Asterisk Graphical Interface “http://<AsteriskServerIP:8088/static/config/index.html”

2. Login with “Admin” user. In the left hand side menu expand “Dial Plans” section and click on “New DialPlan” button.

In “Create new Dial Plan” type the name of Dialplan in “DialPlan Name” Click Save.

Page 3: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

3. Now Expand Users and click on “Create New User” Button.

Now add the details for new user

I have added two extensions for testing purpose

Page 4: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

4. You can install any SIP phone client on desktop or from Android Market on Android phone. For this demonstration I have installed 3CXphone on my Android phone

Create extension profile on SIPPhone, Click on Settings button

Add details for the user we just created in Asterisk, to profile

Page 5: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Click on Save button to save the profile.

Page 6: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

SIP Phone is now connected to the server you would be able to make calls to local Asterisk extensions

Page 7: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

5. Let’s make a call to another extension and track the call status.

Run command below to open asterisk command line on Asterisk server

After running command, you will see the asterisk command prompt

To Show Current peer connections on Asterisk server

Dial extension 6001, which is having voice mail enabled, extension is not online so call will be routed to

voicemail. Enter the extension number in SIP phone and press

Call status will be visible in Asterisk command prompt

Page 8: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Recording sound starts because extension is not online

Configuring Asterisk for Lync integrationTo configure Asterisk, you must edit a series of configuration files. The following files are in a text format and are normally found in the /etc/asterisk directory:

sip.confextensions.conf

Page 9: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

SIP.conf FileThe sip.conf file defines all SIP configurations for Asterisk. The first section in this text file is labeled [general]. In the [general] section, you define general SIP settings for the entire Asterisk server.

Next, we define a section in the sip.conf file to instruct Asterisk hzzzsow to connect to the Lync Server 2010, Mediation Server.

[Lynctrunk]   Tells Asterisk this is the start of a new section in the sip.conf file. Note the name is inside square brackets. You can name your SIP object anything you like.

type=friend   Set this option to friend. This tells Asterisk that this SIP object (that is, Mediation Server) is capable of sending and receiving calls.If this field is set to peer. This indicates to Asterisk that this SIP object can receive calls.

qualify=yes   Instructs Asterisk to verify that this SIP object is reachable. Asterisk performs a check every 60 seconds.

Page 10: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Extensions.conf FileThis file defines the dial plan configuration in Asterisk. The dial plan dictates how calls flow in Asterisk. Every incoming call that Asterisk receives is processed depending on the instructions defined in the dial plan.ContextsContexts are nothing more than a convenient container for grouping extensions.

After changing configuration reload Asterisk by using command

Page 11: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

B. Configuring Lync Server 1. Using Lync 2010, Topology Builder define PSTN gateway

2. PSTN Gateway properties

3. Associate PSTN gateway to the Mediation pools and define listening ports:

Page 12: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

4. Publish topology changes,

5. Configure Dial Plan, voice policy and route to define route for Asterisk Extensions

Open Dial plan OCSUMDial.ng.com to Create a Normalization rule.

Click New in “Associated Normalization Rules”

Page 13: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Add configuration and click OK

Page 14: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Click on OK,

Click on Voice Policy Tab and double click on default “Global” policy to open

Click On New on “Associated PSTN Usages”

Page 15: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Add “Name” of PSTN Usage record name and Click on New on Associated Routes

Add Route details and click OK

Page 16: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Click OK twice.

Route and PSTN Usage tab will populate with configuration we just added.

Page 17: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

Commit the changes

Click Commit

Page 18: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

C. Testing Voice Integration 1. Dial Asterisk Extension from Lync Client

Call will land to the Extension

Page 19: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

When Call is answered

Page 20: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click

2. Dial Lync Extension from Asterisk SIP Client

Call is connected

Page 21: messaging24x7.files.wordpress.com  · Web view2012. 3. 20. · For this demonstration I have installed 3CXphone on my Android phone . Create extension profile on SIPPhone, Click