How to configure a ScopTEL system so it can communicate with Microsoft Lync

How to configure a ScopTEL system so it can communicate with Microsoft Lync


How to configure a ScopTEL system so it can communicate with Microsoft Lync/OCS

Two steps are required in order to use an external link, and two other steps are optional:

  1. Creation of a VoIP Account
  2. Creation of an incoming line (optional)
  3. Creation of an outgoing line (optional)
  4. Update of the appropriate Class of Service (CoS)

 Creation of the VoIP Account

In the Telephony -> Interface menu, in the VoIP Account tab, click on 'Add New VoIP Account '

In General tab, set:

  1. Type: SIP
  2. Trunk Type: Friend
  3. Name: LyncGW

In Server tab, set:

  1. Host Mode: Specific
  2. Host/IP: (your Microsoft Lync Server host/IP)
  3. Port: (optional; your Microsoft Lync Server port, default to 5060)
  4. Register as User Agent? (optional)

In Network tab, set:

  1. Transport Mode: Both (UDP and TCP)
  2. Trunk behind a Nat (optional; set only if required)
  3. Unsecure Port and Invites (optional; required for incoming calls)
  4. Qualify? (optional)

In Options tab, set:

  1. DTMF Mode: Automatic Mode DTMF (RFC2833/Inband)

Network Tab: Check boxes: Trunk behind a Nat, Unsecure Port and Invites (required for incoming calls), and Qualifier
Options Tab:  Automatic Mode DTMF (RFC2833/Inband)

Save configuration.

Creation of incoming line

In the menu Telephony --> Lines, incoming line Tab, click 'Add a new line'

In General tab, set:

  1. Type: Extension (DNIS)
  2. Extension (DNIS): Set the incoming line DNIS
  3. Trunk: Select the trunk created in the previous step, in this case LyncGW

In Destination tab: Select the desired destination, such a position.

Save configuration.

Creation of an outgoing line

In the menu Telephony --> Lines, outgoing line Tab, click 'Add a new line '

In General tab, set:

  1. Name: The name of your line, for example LyncGW_Out
  2. Trunk: Select the trunk created in the first step, in this case LyncGW

In Dial String tab: You specify the dial string used to make a call using this outgoing line. Simply put in first, choose a custom dial string and enter 'X'. This configuration is not adequate but to validate the operation.

Save configuration

Update the Class of Service (CoS)

In the menu Telephony --> Manager, Class of Service Tab, choose the Class of Service where you have defined your internal extensions.

Outgoing Lines tab:  Either you check the 'Allow all outgoing lines' or you include the LyncGW_Out line in the list authorized lines.

Save configuration

 

Lync Configuration (Standard Edition)

Source: http://www.andrewparisio.com/2011/01/microsoft-lync-server-2010-integration.html

  1. Open the Lync 2010 Topology Builder
  2. Edit the properties of your standard edition pool
  3. Install the mediation server, I used the Collocated option because load is low enough it doesn't need a dedicated server.
  4. Under mediation server take note of the TCP Listening port, as that is the port you need to specify in sip.conf of Asterisk.  It defaults to 5068 so that's what I used.
  5. At the bottom find the section "The following gateways are associated with this mediation server."
  6. Click New, and enter the IP address of your Asterisk server, and the port you use for Asterisk TCP SIP (5060 by default).
  7. Note that mine has a red X saying i already have this address configured.  This is because I was redoing the steps for this tutorial.  Also note I have two gateways added as my Asterisk server has multiple IP Addresses and you must make sure to enter all addresses in the gateway list.


  1. Once this is done make sure to publish your topology and re-run setup if you did not previously have the mediation service installed.  I restarted my entire Lync server at this point but if you'd prefer you should be able to restart the Mediation service to apply the new settings.
  2. Open your Lync control panel, go to users, edit your test user and enable Telephony for Enterprise Voice.
  3. We use 2XXX range extensions in Lync, and 1XXX range extensions in Asterisk, so you will see tel:+2593, and ext=1593.  The ext=1593 is for PSTN Conferencing support so Lync can see me
    call from 1593 and know I am Andrew, and automatically authenticate me in to my own conferences..


  1. Configure Voice Routing -> Dial Plan.  These are the rules I wrote in OCS 2007 R2 and imported using import-cslegacyconfiguration.  You will need to tweak them for your requirements.


  1. At this point you should be able to make/receive calls to and from Lync/Asterisk.
    • Related Articles

    • How to establish a SIP trunk between ScopTEL IP PBX and Microsoft Lync

      We will see in this article how to configure a Scopserv system so it can communicate with Microsoft Lync/OCS Two steps are required in order to use an external link, and two other steps are optional: Creation of a VoIP Account Creation of an incoming ...
    • ScopServ Integration with Microsoft Teams

      ScopServ is happy to announce that we have completed integration with Microsoft Teams Make and receive work calls on any device anywhere. Works with Microsoft Teams on PC, Mac or Mobile. Quick & simple implementation in minutes. No hardware or ...
    • General-Presentation-ScopTEL-ENGLISH

      ScopServ – The Company  ScopServ is a Canadian firm founded in 2004, specializing in information technology.  It designs high-end corporate applications and holds the intellectual property rights for its products and solutions.  A strong actor in ...
    • ScopTEL Reserved Call Parking

      The purpose of Call Parking is to put a call on hold and resume the call from another extension. Legacy Phone systems used to have what were called Square Line Appearances aka Shared Line Appearances. The point of Square Line Appearances was to ...
    • Integrating Extensions With Microsoft Exchange and Office365

      In Microsoft Outlook you can use the Calendar to set your busy status by creating a Calendar event. It is possible to integrate your ScopTEL extension with your Calendar so that when your Calendar makes you busy you can set a busy destination for ...