EasyUC
4.9.49

EasyUC for Microsoft Teams

Choose the telephony connection of a tenant

Set for each tenant whether calls from Microsoft Teams reach EasyUC through the integrated SBC, through your own SBC or not at all.

EasyUC · Version 4.9.49

In EasyUC: EasyUC Teams → Telephony → Connection

Images come from the EasyUC lab. Names and example values provide orientation. A different interface language is indicated beside the relevant image.

What it is for

From version 4.9.61, every Teams tenant has exactly one type of telephony connection. It defines how calls from Microsoft Teams reach EasyUC. Up to 4.9.60, every tenant was a tenant of the integrated SBC and always needed a hostname, a port and a certificate.

There are three types: No telephony, Integrated SBC and Own SBC. Managing users, phone numbers, presence, meetings and the User Map needs no connection. Operator Connect and Calling Plans are not connection types. They appear as the call entry of a script and as a number type.

With the same version, the pages of a tenant moved into the main menu. The second column next to the menu (the tenant bar) no longer exists. Tenants from older versions are set to Integrated SBC after the update and keep working unchanged. Older bookmarks lead to the matching page in the new menu.

Prerequisites

  • Licence module teams and the permission Enable EasyUC Teams (ROLE_APP_TEAMS_WORKSPACE).
  • View Microsoft 365 tenants (ROLE_APP_TEAMS_TENANTS) to read, Edit Microsoft 365 tenants (ROLE_APP_TEAMS_TENANTS_EDIT) to create tenants and to change the connection. Administrators may do everything.
  • For Integrated SBC: the integrated SBC is enabled (chapter “Enable the Teams SBC and set the network details”). The tenant gets a public hostname from a domain that is verified in the Microsoft 365 tenant, with a DNS A record pointing to the public IP of the SBC.
  • For Own SBC: the Calling Features are licensed and enabled. Under Calling Features → SIP trunks there is a SIP trunk to your SBC. Only administrators may create SIP trunks. Your SBC is already set up in the Microsoft 365 tenant as a PSTN gateway for Direct Routing. EasyUC does not create this gateway.
  • For everything EasyUC writes or removes in Microsoft Teams (trunk, voice routes): a sign-in to Teams PowerShell under Settings of the tenant (chapter “Graph access and Teams admin sign-in”).

The menu of a tenant

  • At the top of the menu is the tenant switcher with the name of the selected tenant. A click opens the list of tenants, plus All tenants and, with the edit permission, Add tenant.
  • If there is exactly one tenant, the EasyUC Teams workspace opens with that tenant’s Users page. With several tenants, the tenant selected last opens. The browser remembers it. Without a remembered tenant, the Teams tenants list appears.
  • If you switch the tenant while on a tenant page, the page stays the same: Number plan of one tenant becomes Number plan of the other. From any other page, Users of the new tenant opens.
  • Pages of every tenant: Users, Phones, Number plan, Presence sync, Presence Live, Meetings, User Map, Microsoft management (from 4.9.67) and Settings. Meetings needs the permission View meetings, User Map the permission View user map.
  • Under the heading Telephony, every tenant has Connection. Only for a tenant with the integrated SBC do Calls, Call history, SIP log, Recordings and Captures follow.
  • The General group applies to all tenants: Teams tenants (list and creation), Microsoft management and Integrated SBC (the SBC as a whole). The scripts are listed here only in installations without the Calling Features. Otherwise you find them in the Calling Features workspace.
  • The dot at the Connection menu item shows the state of the connection while a page of this tenant is open. For a tenant without telephony it is grey and always shown. The number at Calls counts the running calls. A dot at Recordings or Captures shows a running recording or a running capture.
  • As long as no tenant has been created, the menu shows only Meetings, User Map and the General group.
  • Users without the permission View Microsoft 365 tenants see only those items in the workspace for which they hold a separate permission: Integrated SBC, scripts, Meetings, User Map or Microsoft management.

The three types compared

The three types compared
Field / actionMeaning and use
No telephonyManage users, phone numbers, presence and meetings only. No SBC, no hostname, no certificate, no port and no SIP trunk are needed. EasyUC creates nothing for telephony in Microsoft Teams for this tenant: no gateway, no PSTN usage, no voice route, no voice routing policy. Users, Phones, Number plan, Presence sync, Presence Live, Meetings and User Map work as usual. Microsoft Graph and the sign-in to Teams PowerShell in the Settings are enough for that.
Integrated SBCDirect Routing ends directly on EasyUC. The tenant gets its own hostname, its own TLS port and its own certificate. EasyUC creates the PSTN gateway, PSTN usage, voice routes and voice routing policy in Microsoft Teams. Only this type offers Calls, Call history, SIP log, Recordings and Captures per tenant. It is required for the Teams queue of the attendant console and for Operator Connect through Teams forwarding.
Own SBCYour SBC stays the Direct Routing endpoint for Microsoft Teams. A SIP trunk leads from there to EasyUC. In Microsoft Teams, EasyUC writes only its PSTN usage, its voice routes for the numbers of the scripts and its voice routing policy. The gateway is yours: EasyUC does not create it, does not change it and does not remove it. EasyUC enters the Direct Routing numbers of the scripts into the SIP trunk by itself. Calls appear in the SIP trunk monitor of the Calling Features, not under the tenant.
Scripts per typeWith No telephony, a script can only use the call entry “Operator Connect over a public destination”. With Own SBC, Direct Routing and Operator Connect over a public destination are possible, Operator Connect forwarding is not. With Integrated SBC, all paths are possible.
Connection page per typeWith Integrated SBC: SBC hostname, TLS port, Trunk active, the call history settings, certificate, trunk in Teams and Scripts over this trunk. With Own SBC: gateway and SIP trunk, the box Where your SBC sends to, the scripts, Voice routes in Microsoft Teams and the box Good to know with the link Open the SIP trunk call monitor. With No telephony: a short explanation and, where needed, the clean-up boxes.
Teams tenants listColumns Tenant, Connection, Certificate, Trunk and Calls. The Connection column names the type, for the integrated SBC also hostname and port, for an own SBC the FQDN of the gateway. Certificate, trunk and calls are filled only for tenants with the integrated SBC. If an entry is missing for an own SBC, the column shows “Gateway or SIP trunk missing”.

Step by step: Create a tenant with a connection

  1. Open General → Teams tenants and click Add tenant. The same entry is in the tenant switcher. The New Teams tenant form opens.
  2. Under Customer name, enter a name. The Directory (tenant) ID is needed for Microsoft Graph and Teams PowerShell. You can add it later under Settings.
  3. Under Telephony connection, choose one of the three cards. Integrated SBC is preselected if the integrated SBC is enabled, otherwise No telephony.
  4. A locked card states the reason: “The integrated SBC is switched off.” or “Needs the Calling Features (SIP trunks).” Below the cards, Open the integrated SBC leads to the SBC page.
  5. Only for Integrated SBC: under SBC hostname for this tenant, enter the full hostname, for example sbc.kunde.de. The form names the domain that must be verified in the Teams tenant and the IP the A record must point to.
  6. Click Create. With Integrated SBC and Own SBC, the Connection page of the new tenant opens, with No telephony the Settings page.
  7. Under Settings, in the Microsoft Graph section, enter the values for Application (client) ID and Client secret and click Test credentials. Without these credentials EasyUC cannot read the users of the tenant.
  8. With Integrated SBC, next request the certificate under Connection and set up the trunk in Teams (chapters “SBC certificate per tenant” and “Set up the trunk and voice routes in Teams”). With Own SBC, follow the next section.

Step by step: Enter your own SBC

  1. Under Calling Features → SIP trunks, create a SIP trunk to your SBC. EasyUC accepts calls only from the addresses entered there as a peer.
  2. Open Connection in the tenant’s menu and choose the Own SBC card.
  3. Under SBC in the tenant for the voice routes, enter the FQDN under which your SBC is entered in Microsoft Teams as a PSTN gateway. If a sign-in to Teams PowerShell is active, the page offers the gateways of the tenant for selection under “Found in the Teams tenant:”. The icon Read the gateways from Microsoft Teams again reloads the list.
  4. Under SIP trunk from this SBC to EasyUC, choose the trunk from step 1. If there is none yet, Create a SIP trunk under Calling Features takes you there.
  5. Click Save. Both entries are required for saving. EasyUC reports “Saved. Please update the voice routes now.”
  6. In the Voice routes in Microsoft Teams section, click Update routes. The preview in the same section shows beforehand what would happen. Afterwards the voice routes point to your gateway.
  7. On your SBC, set up a SIP trunk to the address named in the box Where your SBC sends to, and route the EasyUC numbers there. Your SBC must send the called number as the full international number, with or without a leading +. EasyUC rejects any other format with 404.
  8. Enter the number in the script as usual (call entry Direct Routing). EasyUC assigns it to the SIP trunk by itself and points the voice route to your gateway.

Step by step: Change the connection

  1. Open Connection in the tenant’s menu.
  2. Choose another card. The previous card carries the note Currently saved. Below it, the box Change the connection appears with the previous and the new type.
  3. Read the consequences in the box. EasyUC states there, for example, how many scripts of this tenant can no longer be reached over Teams afterwards and which menu items disappear.
  4. Add what the new type needs: for Integrated SBC the SBC hostname, for Own SBC the gateway and the SIP trunk.
  5. If you leave the integrated SBC and the trunk still exists in Microsoft, the box shows the checkbox Remove the trunk … in Microsoft Teams first. Leave it ticked. Otherwise the gateway of EasyUC and voice routes stay behind in Teams and point to an SBC that no longer serves this tenant. Removing needs a sign-in to Teams PowerShell.
  6. Click Change the connection and confirm the prompt.
  7. EasyUC proceeds in up to three steps: “Checking the entries …”, then “Removing the trunk in Microsoft Teams … This can take up to two minutes.”, finally “Saving the connection …”. If EasyUC rejects the new connection during the check, nothing has been changed in Microsoft Teams.
  8. On success you see “The connection has been changed.” With Integrated SBC, set up the trunk in Teams afterwards. With Own SBC, run Update routes.
  9. After a change to No telephony, check the clean-up boxes: Clean up an earlier trunk in Microsoft Teams with Remove the trunk and Clean up former voice routes in Microsoft Teams with Remove the voice routes of EasyUC. Only after that choose Discard the stored gateway.

What happens on a change

What happens on a change
Field / actionMeaning and use
Away from Integrated SBCThe integrated SBC no longer accepts calls for this tenant. SIP trace, call recording and network capture are switched off. Calls, Call history, SIP log, Recordings and Captures disappear from the menu. Hostname, TLS port and certificate stay stored, and the port stays reserved. This keeps the way back short.
To Integrated SBCThe integrated SBC must be enabled, and the tenant needs a hostname, the stored one or a new one. If a port is missing, EasyUC assigns a free one. A stored, valid certificate stays in use. Until the trunk is set up in Teams, calls do not reach the scripts of this tenant.
To Own SBCThe Calling Features must be enabled. Gateway and SIP trunk must be specified. EasyUC enters the Direct Routing numbers of the scripts into the chosen SIP trunk. The voice routes then count as not up to date until you run Update routes.
Away from Own SBCThe numbers of the scripts are removed from the SIP trunk. The trunk can then be deleted again under Calling Features. The entered gateway stays stored so that the voice routes of EasyUC in Teams can still be cleaned up. It can be cleaned up and discarded only with No telephony.
Different gateway with Own SBCEasyUC names the PSTN usage, voice routes and voice routing policy after the first part of the gateway name (EasyUC-<name part>). If the new FQDN starts differently, new objects are created. The page therefore offers the checkbox Remove the voice routes of EasyUC for the previous gateway … in Microsoft Teams first. Without the tick, the previous objects stay in Teams. EasyUC no longer reports or removes them afterwards.
To No telephonyPossible without conditions. EasyUC no longer writes anything to Microsoft Teams for this tenant and no longer reconciles routes. What was created in Teams before stays there until you remove it.
Users in TeamsIf the gateway changes, the voice routing policy of EasyUC has a different name afterwards. Users who are assigned the previous policy reach the EasyUC numbers again only once the new one is assigned to them.
ScriptsThe type can be changed while scripts with a Direct Routing number point to the tenant. Scripts whose call entry the new type does not allow stay stored. The script then shows a warning with the link Open the tenant’s connection and cannot be saved in that state.
Change in progressThe change continues if you leave the page in the meantime. As long as a change to the trunk or the voice routes is still running in Microsoft Teams for the tenant, the connection cannot be saved. The reason is shown next to the button.

Check the result and narrow down errors

  • Success: the Teams tenants list shows the new type in the Connection column. The tenant’s menu shows the matching entries under Telephony.
  • “The integrated SBC is switched off.” on the card: enable the SBC under General → Integrated SBC. Without the permission for that, ask an administrator with the Session Border Controller permission.
  • “Needs the Calling Features (SIP trunks).” on the card: the module is not enabled on this system. The type Own SBC exists only with the Calling Features.
  • “Please enter the hostname (FQDN) of your SBC in the Teams tenant, for example sbc.example.com.” or “Please choose the SIP trunk that leads from your SBC to EasyUC.” One of the two entries for Own SBC is missing.
  • “This gateway is not in the list of the Teams tenant.” Create the gateway in Microsoft Teams or correct the FQDN before you update the voice routes. EasyUC does not create it.
  • “The trunk can only be removed with a sign-in to Teams PowerShell.” Sign in under Settings, or untick the box if the trunk is to stay in Microsoft Teams.
  • “The trunk could not be removed in Microsoft Teams. The connection stays as it is.” Fix the stated cause and change the connection again.
  • “The connection was not changed. The trunk has already been removed in Microsoft Teams, however …” Removing succeeded, saving did not. The tenant is still set to Integrated SBC and cannot be reached from Teams. Fix the cause and change the connection again, or cancel and set up the trunk again.
  • Two tenants with the same Directory (tenant) ID cannot both be connected through an own SBC whose FQDN starts with the same first name part. Both would use the same objects EasyUC-<name part> in Microsoft. EasyUC rejects this.
  • A hostname of the integrated SBC must not be entered or still stored as the gateway of an own SBC for any tenant, and vice versa. Release a stored former gateway: set the tenant to No telephony, clean up, Discard the stored gateway.
  • A SIP trunk that is entered as the connection of a tenant cannot be deleted. First choose another trunk or another type for the tenant.
  • Calls to an EasyUC number do not arrive with an own SBC: check in this order whether your SBC routes the number to the EasyUC address, whether it sends from an address entered at the trunk, whether the script is switched on and the number is listed there under Direct Routing, and whether the routes in Teams are up to date (Update routes).
  • Interworking with the SBC products of individual vendors has not been tested on real devices. Plan a test with your SBC for commissioning.

Related chapters