Teams Integration Setup

Creating Teams Outbound Rules

This article will provide insight on building out outbound rules specific for Teams Integration setups.

Setting up SIP Trunk Configuration

Prior to setting up the outbound rules for the teams setup, some steps are needed to validate the SIP trunk. Failure to do so, can cause the Teams integration not to work. There are three things needed to verify the SIP trunk: 

  1. Caller ID Set at Trunk
  2. Outbound Parameters Being Set
  3. Validating the SIP Trunk

Step One: Updating the Default Caller ID in the SIP Trunk

  1. Login to the bvoip phone system.
  2. Go to Call Flow > SIP Trunks in the top navigation bar. 
  3. Click on the Caller ID tab.
    TIOR1-3
  4. In the Configure Outbound Caller ID field, input the desired number to appear on the caller ID for system calls and for any calls that don't have it overridden elsewhere.
  5. Click the Save button. 

Step Two: Updating the SIP Trunk Outbound Parameters

  1. Login to the bvoip phone system.
  2. Go to Call Flow > SIP Trunks in the top navigation bar.
  3. Click on the Outbound Parameters tab.
    TSSIP1-3
  4. Scroll down to the From : Display Name parameter. 
  5. Select the "EnforcedOriginatorCallerID" option from the drop-down. TSSIP1-4
  6. Scroll down to the From : User Part parameter. 
  7. Select the "EnforcedOriginatorCallerID" option from the drop-down. 
  8. Click the Save button. 

Step Three: Validating the SIP Trunk

  1. Go to the Integrations > Microsoft 365 menu.
    remuvteams2
  2. Click on the SIP Trunks tab. TSSIP1-1
  3. Go to the Health Check tab.
  4. Click on the Check SIP Trunk Configuration button. The screen will then change and confirm that the SIPTrunk is all set or if there's a change needed for the teams setup to be ready. TSSIP1-2

Configuring Teams Outbound Rules

When configuring outbound rules for Teams, there is a few different ways that the outbound rules can be configured, depending on the desired Caller IDs. All of this is dependent on the client’s needs when it comes to the caller ID.

Using the Same Caller ID with Pure Teams

If you are going to use one caller ID for all users you can add the caller ID in the sip trunk itself, and then simply add a single outbound rule for Teams.

Configuring a +CC Outbound Rule For the System

  1. Log into the bvoip phone system.
  2. Click on the Call Flow drop-down menu.
  3. Go to the Outbound Rules subsection. 
  4. Select the Add button. The screen will refresh with rule setup details.
  5. In the Rule Name field, Enter the desired name. For simplicity, we recommend Teams 12 Digit.
  6. Scroll down to the Under Apply This Rule To These Calls section.TIOR1-1
  7. In the Calls to numbers starting with prefix field, input the desired country code, +1 in this example for North America.
  8. In the Calls to Numbers with a Length of field, input the value of 10-13.
  9. Scroll down to the Make outbound calls on section.TIOR1-2
  10. In the unlabeled or Block Calls drop-down, choose the desired Siptrunk to be used for this rule. 
  11. In the Strip Digits drop-down, select the value of 1.
  12. Click the Save button. 



Different Caller IDs or Split Use Teams

If you manually set all users Telephone Number field in Microsoft 365 to be a full e164 number (e.x. +1234567890), that will sync down to their Caller ID field, and you can simply use the basic 10-13 digit rule mentioned above. If you have users still using physical devices or other soft phones, you will likely also need the 10 and 11 digit rules mentioned below, but you do not need per-extension outbound rules.

Otherwise, if you're using our script to set all users telephone numbers to their extension, you will need to create 2 sets of rules then use the Automatic Outbound Rule Tool to create the +1 outbound rule for each extension.

  • 11 Digits
  • 10 Digits

For assistance on building these rules out, please see our Setting Outbound Call Rules knowledge base article

Automatic Outbound Rule Creation

  1. Go to the Integrations > Microsoft 365 menu.
    remuvteams2
  2. Go to the SIP Trunks tab.
  3. Select the tab with the name of your SIPTrunk. TIOR1-6
  4. In the Outbound Rule Prefix field, input your country code with the plus sign (+1 for North America) .
  5. In the Outbound Rule Length, input 10-13 for the value, this may need to be adjusted depending on the country. 
  6. In the Outbound Rule Strip Digits field, input 1 for the value. 
  7. Scroll down to the Caller ID Overwrite section.
    TIOR1-4
  8. Click on the Import Users button. A pop up will appear where the Teams users can be pulled to have custom Caller ID rules applied to them.
    TIOR1-5
  9. Select the desired users by clicking on the checkboxes beside them.
  10. Click on the Ok button.
  11. In the Caller ID field for each user, input the desired Caller ID to be reflected. TIOR1-8
  12. Click on the Save button. 
  13. Go to the Health Check tab.TIOR1-7
  14. Click on the Check Outbound Rules. The extension based outbound rules will be built out and reflected under Call Flow > Outbound Rules. 

Teams Calls Not Working? 

If you're having issues with Teams calls not working after setting up your Teams Integration, please see our Teams Not Making and Receiving Calls article.