EasyUC for Microsoft Teams
Teams calls, SIP flow and captures
View running and past Teams calls, open the SIP flow as a ladder diagram and capture traffic.
In EasyUC: EasyUC Teams → Teams → Teams Tenants → tenant → Show calls / Call history / SIP log / Captures
What it is for
When a call from Teams does not arrive, ends too early or has no audio, you need the exact sequence of events. EasyUC offers four tools of increasing depth: the list of running calls, the call history with a SIP ladder diagram per call, the SIP trace of the whole tenant and the network capture as a pcap file.
The call history stores, for every call, all SIP messages between Microsoft and the EasyUC SBC, without the periodic OPTIONS. The ladder diagram shows them in chronological order with arrows. You see at a glance who gave which answer. Keys for audio encryption are redacted before storage.
The SIP trace additionally records the OPTIONS and everything else of the tenant. The network capture writes the packets themselves. The leg to Microsoft is encrypted in it and not readable; only the internal leg between SBC and EasyUC is readable.
Prerequisites
- Licence module
teams. Without this module the EasyUC Teams workspace does not appear. - Role EasyUC Teams (
ROLE_APP_TEAMS_WORKSPACE) with the sub-permission TENANTS (ROLE_APP_TEAMS_TENANTS). To switch and delete, also TENANTS bearbeiten (ROLE_APP_TEAMS_TENANTS_EDIT). - For the SIP flow of past calls: Save the SIP flow of every call was switched on at the time of the call, and the retention period has not expired.
- For the network capture: the SBC service is running and reporting in. At most two network captures run on the SBC at the same time.
- A program such as Wireshark to analyse a pcap file.
Step by step: Examine a call in the call history
Step by step: Watch running calls
Step by step: Record a SIP trace of the tenant
Step by step: Record a network capture (pcap)
Fields and options
| Field / action | Meaning and use |
|---|---|
| Last OPTIONS | Time of the last SIP OPTIONS from Microsoft at this tenant. Shown in the header of the tenant page. |
| To | The dialled number. With Operator Connect through Teams forwarding this is the Operator Connect number; the pilot number is shown below it as the addition “via pilot …”. |
| State | State of the call. Running calls carry the label Live in the history. |
| SIP messages | Number of SIP messages stored for this call. 0 means: the SIP flow was off or has already been deleted. |
| Start SIP trace / Stop SIP trace | Writes every SIP message of this tenant to the database, including OPTIONS. Runs for 30 minutes. The log keeps at most the newest 20,000 messages per tenant. |
| Start network capture / Stop network capture | Writes the SIP and RTP ports of this tenant and the TLS connections of all tenants to Microsoft into a pcap file. Duration 1 to 60 minutes, size 1 to 500 MB, default 15 minutes and 200 MB. |
| Include the internal leg to EasyUC | Additionally records the unencrypted leg between SBC and EasyUC. Only with it are SIP and audio readable in Wireshark. |
| Storage used | Storage for this tenant’s recordings and captures, limited to 1 GB. Next to it the shared storage of all tenants. |
| Capture list | Started, Finished, Duration, File size, Packets. Captures are deleted automatically after 7 days. |
| Call history: search and filters | The search finds caller, destination, dialled number, Call-ID and UUID. In addition Date from, Date to and Direction. The newest calls are at the top. |
| Save the SIP flow of every call | Switch in the tenant settings, on by default. All SIP messages of a call between Microsoft and the SBC are stored, without OPTIONS. |
| Keep call history (days) | 1 to 365 days, default 14. Older calls and their SIP messages are deleted. |
| Ladder diagram: structure | On the left the time with milliseconds, then the Microsoft lane with the address of the peer and on the right the EasyUC SBC lane. An arrow to the right comes from Microsoft, an arrow to the left goes to Microsoft. Responses carry code and text, for example 200 OK. |
| Download SIP flow (.txt) | Text file with all messages of the call. If the dialled number differs from the destination, the file names both. |
| Not included | The internal leg between the SBC and the script runtime of EasyUC is not recorded in the call history. Use the network capture with the internal leg for that. |
| Keys | SRTP keys are redacted before storage, in the call history as well as in the SIP log. |
Check the result and narrow down errors
- Success: the test call is in the call history, and the ladder diagram shows INVITE, 200 OK and BYE.
- The call is missing from the call history: Teams did not send it over the EasyUC trunk. Check whether the EasyUC policy is assigned to the caller, whether the number is listed as Reachable under Scripts over this trunk and whether Routes in Teams shows Up to date.
- “SIP flow recording is off for this tenant” Switch on Save the SIP flow of every call in the tenant settings. Calls that begin afterwards are stored.
- “No SIP messages were stored for this call.” The flow was off during the call or has been deleted after the retention period.
- No audio or audio in one direction only: check Public IP and Media IP on the SBC page and the UDP rule for the RTP range. Successful OPTIONS only prove the signalling path.
- The call ends about 10 seconds after being answered, without audio: the script runtime delivers no audio to the SBC. Check that the script is enabled and that the script runtime service is running.
- Teams reports a failed call to a script number immediately: the script is unknown, switched off or not Reachable via MS Teams, or the script runtime does not answer.
- “The SBC has not confirmed the network capture yet.” or “Network capture not available: …” The SBC service is not reporting in or the capture component is not running. Check the service in the EasyUC Manager.
- „Es laufen bereits 2 Netzwerk-Mitschnitte auf anderen Tenants. Bitte einen davon beenden oder sein Ende abwarten.“ Stop one of the running captures.
- “The SIP trace is off. Turn it on above to record what goes over this trunk.” The SIP log is empty as long as no trace has run.
- Captures contain phone numbers and, with the internal leg, call content. Pass them on only to the intended recipient.
- A running call counts as ended when the SBC has not reported it for two minutes. Until then it carries the label Live.
- With Operator Connect through Teams forwarding, the
INVITEin the ladder diagram shows theHistory-Infoheader with the Operator Connect number. The call history therefore also stores the sign-in name of the forwarding service account. It is subject to the same retention period. - Read the flow as in the chapter on the SIP ladder diagram: first
INVITE, last response to it,BYE. A red response from the SBC names the reason on the EasyUC side, a red response from Microsoft the reason in the tenant.