How to Setup SIP Trunk in Skype for Business Environment



Table of Contents

  • Consolidation of SIP Trunks
  • What are the supported connection types
  • Configure firewall rules to allow connection with SBCs
  • Adding PSTN Gateway
  • Configuring Encryption Level (SRTP)
  • Creating Voice Route
  • Creating Voice Policy
  • Setting up the Dial Plan
  • Configure Media Bypass
  • Enable users for Enterprise Voice (EV)
  • Perform test for the route

Consolidation of SIP Trunks

You can setup SIP trunk service to enable Enterprise Voice (EV) functionalities in the Skype for Business\Microsoft Lync environment. Upgrading the TDM trunks to SIP trunks have many advantages from cost saving to the infrastructure consolidation. I have witnessed organizations saving lot of costs by consolidating\upgrading the SIP trunks of the organization. In my personal opinion, there are various factors which leads to cost saving during the discourse of unified communications transformation. Out of all factors, better SIP consolidation planning contributes the most in cost saving.

You can use our SIP Trunk Service to setup either Centralized SIP trunking or Distributed SIP trunking. Centralized SIP trunking routes all Voice over Internet Protocol (VoIP) traffic, including branch site traffic, through your central site. While, distributed SIP trunking routes VoIP traffic from the branch site directly to our SIP gateways without going through the central site.

What are the supported connection types

You can use either of the following connection types for SIP trunking:

  • Multiprotocol Label Switching (MPLS)
  • A private connection with no other traffic
  • The Internet

Run the sequence of steps on each of the front end servers. The Skype for Business web app should work without any issue after ensuring creation of law virtual directory on each of the front end servers.

Configure firewall rules to allow connection with SBCs

Following table depicts the firewall requirement to make a SIP trunk successfully work.

Gateway IP Addresses Protocol Direction Port
x.x.x.x TCP Bi-Directional 5060, 5061, 5067

You need to decide the protocol (TCP\TLS) to be used for SIP trunk setup. Based, on the selected protocol the specific port would needs to be opened between the mediation server and gateways (of SIP Trunk service providers).

Adding PSTN Gateway

You need to add following IP addresses as PSTN gateway in the Skype for Business (SfB)\Microsoft Lync setup.

10.10.10.1

Wherein, 10.10.10.1 is the gateway IP address of the SIP trunk service provider.

Note: You need to be the member of CSAdministrator group to run following steps.

  1. Click Start click All Programs click Skype for Business Server 2015 and then click Skype for Business Server 2015 Topology Builder.
  2. Under Skype for Business Server, your site name, Shared Components, right-click the PSTN Gateways node, and then click New PSTN Gateway.
  3. In Define New IP/PSTN Gateway, type the IP address (10.10.10.1) of the peer, and click Next

    Note: Define the port and protocol during above step. You need to get the detail from the SIP trunk service provider.

  4. Right-click the Skype for Business Server node, and then click Publish Topology

Configuring Encryption Level (SRTP)

Encryption support level indicates the level of support for protecting media traffic between the Mediation Server and the PSTN Gateway. Configurable values are:

  • Required: SRTP encryption must be used.
  • Optional: SRTP will be used if the gateway supports it.
  • Not Supported: SRTP encryption is not supported and therefore will not be used.

Select "Optional" as depicted in following diagrams. This needs to be determined with the help of the SIP trunk service provider.

Navigation: Control Panel => Voice Routing => Trunk Configuration => Global =Edit

Creating Voice Route

  1. Open Skype for Business Server Control Panel.
  2. In the left navigation bar, click Voice Routing
  3. Click Route
  4. Click New to display the New Voice Route dialog box
  5. In Name type a descriptive name for the voice route.
  6. To associate one or more trunks with the voice route, click Add and then select a trunk from the list (10.10.10.1).
  7. Click OK to save the voice route.

Creating Voice Policy

  1. Open Skype for Business Server Control Panel.
  2. In the left navigation bar, click Voice Routing
  3. Create a User policy by selecting New
  4. Set Name : Enter a name for this Voice Policy

    Set Calling Features:

    • Enable call forwarding: Checked
    • Enable delegation: Checked
    • Enable call transfer: Checked
    • Enable call park: Unchecked
    • Enable simultaneous ringing of phones: Checked
    • Enable team call: Checked
    • Enable PSTN reroute: Checked
    • Enable bandwidth policy override: Unchecked
    • Enable malicious call tracing: Unchecked
  5. Set Associated PSTN Usages:
    • Select New to create a new PSTN Usage
    • Set Name: Enter a name for this PSTN Usage
    • Set Associated Routes: Select the route you created under Voice Routing -> Route

Setting up the Dial Plan

  1. Open Skype for Business Server Control Panel.
  2. In the left navigation bar, click Voice Routing and then click Dial Plan
  3. On the Dial Plan page, click New and select a scope (user, site, pool) for the dial plan.
  4. Associate and configure normalization rules for the dial plan
  5. Verify that the dial plan’s normalization rules are arranged in the correct order.
  6. Click OK
  7. On the Dial Plan page, click Commit and then click Commit all

Configure Media Bypass

  1. Open Skype for Business Server Control Panel.
  2. In the left navigation bar, click Network Configuration and then click Global
  3. Enable 'Enable media bypass' in Global setting.
  4. Confirm you have also selected Always bypass

Enable users for Enterprise Voice (EV)

  1. Open Skype for Business Server Control Panel.
  2. In the left navigation bar, click Users.
  3. In the Search users box, type all or the first portion of the display name, first name, last name, Security Accounts Manager (SAM) account name, SIP address, or line Uniform Resource Identifier (URI) of the user account that you want to enable, and then click Find.
  4. In the table, click the user account that you want to enable for Enterprise Voice.
  5. On the Edit menu, click Show details.
  6. On the Edit Skype for Business Server User page, under Telephony click Enterprise Voice.
  7. Click Line URI and then type a unique, normalized phone number (for example, tel:+14255550200).
  8. Select Dial Plan and Voice policy.
  9. Click Commit.

Testing SIP Trunk

Create a test case to see if the right trunk being used for outbound call.




0 Comment