MSBA-232 · Lesson 8 of 12 · 16 min

Troubleshooting PSTN calls

▶ Video coming soon A video version of this lesson is on the way.

Calls to and from ordinary phone numbers add a part of the chain that Corvallin does not see directly: the public switched telephone network, or PSTN. At head office the connection is a Microsoft Calling Plan, so Microsoft is the carrier. From January 2027 the branches would use Operator Connect through Tidelink Communications, and the satellite office would use Direct Routing through an SBC with a Survivable Branch Appliance. Each connection type has its own tools and its own support path. This lesson uses the head office pilot's real problems and the branch designs from the telephony workshops to show how PSTN troubleshooting works.

Two questions before anything else

Every PSTN problem starts with two questions. What is the user's number type? Calling Plan, Operator Connect, Teams Phone Mobile or Direct Routing decides which tools show the call and who fixes the carrier side. Is it a connection problem or a quality problem? A call that does not connect, goes to the wrong place, shows the wrong caller ID or is rejected is a signalling problem, investigated with usage reports and call flows. A call that connects but sounds bad is a media problem, investigated with the same quality tools as any other call, plus the PSTN side's own measures.

Three PSTN paths from a Teams client. Calling Plans: client to Microsoft to the PSTN, investigated with the PSTN usage report Calling Plans tab and supported by Microsoft. Operator Connect: client to Microsoft to the operator to the PSTN, shown on the same Calling Plans tab with the operator named, supported by the operator. Direct Routing: client to Microsoft to the customer or partner SBC to the carrier, investigated with the Direct Routing health dashboard and the Direct Routing tab, supported by the SBC owner.
The number type decides which report shows a PSTN call and who supports the carrier side.

The PSTN usage report

In the Teams admin center, under Analytics & reports, Usage reports, the PSTN and SMS usage report lists phone network calls. It has two tabs. The Calling Plans tab covers Calling Plans and Operator Connect: the Operator column shows Microsoft for Calling Plan calls and the operator's name for Operator Connect calls. The Direct Routing tab covers calls through SBCs. Reports can be run for 7 or 28 days, or for a custom range on the Calling Plans tab, and exported. Data usually appears 24 to 48 hours after the call, so the report is for investigating, not for live monitoring.

For Direct Routing calls, three columns explain how a call ended. The final SIP code is the response that ended the call; selecting it opens the call flow. The final Microsoft subcode identifies more specifically what happened inside Microsoft's service. The final SIP phrase describes the code and subcode in words. The shared correlation ID, which links Microsoft's records to the SBC's logs, appears only in the exported file.

Calling Plan problems from the pilot

The head office pilot gave Felix three PSTN problems in its first five weeks, each a good example of a category.

Callers reaching the old system. The main number and thirty direct numbers were ported to Microsoft on Monday, November 9. For most of that day, callers from one regional carrier's landlines still reached the old phone system, while everyone else reached Teams. The cause was that carrier's own routing update, which lagged behind the port. Felix had planned for this: the old system stayed connected until January 2027, and its main number answered with a recording giving the new number. He reported the problem through the porting order, and by the evening the carrier's routing was correct. The lesson was that a port is not finished when Microsoft says it is complete; it is finished when calls from every kind of caller arrive.

Outbound calls failing for one pattern. In the second week, two schedulers found that calls to clients' numbers failed when they dialled a 1, the area code and the number from a client's handwritten note, but worked when they copied the number from VisitWise. The failing calls did not appear as connected calls in the usage report. Felix tested the scheduler's effective dial plan, which showed that an extra space in a pasted number, plus an old habit of typing the long-distance prefix, produced a string that the HeadOffice tenant dial plan's extension rule partly matched. He reordered the rules so the extension rule matched only four digits exactly.

Test the effective dial plan with the exact string the user typed, and confirm the user's voice settings.
# What does this user's effective dial plan do with a string?
Get-CsEffectiveTenantDialPlan -Identity "s.moreau@corvallincare.example" |
    Test-CsEffectiveTenantDialPlan -DialedNumber "1 555 010 0144"

# Check the user's number type and voice settings
Get-CsOnlineUser -Identity "s.moreau@corvallincare.example" |
    Select-Object DisplayName, LineURI, EnterpriseVoiceEnabled,
        TenantDialPlan, CallingLineIdentity

The wrong caller ID. Clients called back by schedulers were supposed to see the CQ Scheduling queue number, through the Scheduling-CallerID caller ID policy. One scheduler, added to the queue in the third week, showed her own direct number. The policy had been assigned to the group of original schedulers, not to the new person. Assigning it fixed the problem, and Teodor changed the assignment to a group-based one that followed queue membership.

Users who cannot call at all

Some PSTN failures have administrative causes. The PSTN blocked users report lists users who have been blocked from making phone network calls, for example after fraud protection activity. The minute pools report shows how much of the organization's pooled Calling Plan minutes remain; when a pool is exhausted, outbound calls of that type fail unless Communications Credits cover them. Licensing changes, a removed phone number, or a calling policy that disallows PSTN calls also stop calls. Checking these is quick and avoids long investigations of a problem that is really administrative.

Emergency calls

Emergency calls need special care, and the MS-721 outline includes troubleshooting dynamic emergency addresses. At head office, dynamic emergency calling used the location information service with places for each floor, subnets per floor, every wireless access point and a trusted IP address. In the third week, a test from the third floor showed the ground floor place instead of the third floor. The cause was a new access point installed on the third floor that had not been added to the location information service, so the lookup fell back to a broader match. Felix added the access point and retested from each floor.

His checklist for dynamic emergency address problems followed the order in which Teams matches locations: wireless access point, then switch and port, then switch, then subnet. Any network change, such as a new access point, a replaced switch or a renumbered subnet, now came with a task to update the location information service. Felix and Teodor never placed real emergency calls as tests; tests used the method agreed with the carrier, and the security desk notifications were checked with the notification group.

Direct Routing: the health dashboard

The satellite office's Direct Routing design would add an SBC, and SBCs have their own monitoring. The Health Dashboard for Direct Routing, in the Teams admin center under Voice, Direct Routing, shows each SBC's state. Felix walked Teodor through what it would show once the satellite office was live.

MeasureWhat it showsWhat to watch for
Network effectiveness ratioShare of calls the network delivered, counting answered, busy, no answer and terminal rejects as deliveredA fall below the SBC's normal level; 504 timeouts lower it
Average call durationHow long calls last on averageA sharp drop below the baseline, such as very short calls
SIP options statusWhether keep-alive messages from the SBC arriveWarnings that options are missing or not configured
Concurrent calls capacityCalls in progress against the SBC's configured limitCalls approaching the limit
Network parametersJitter, packet loss and round-trip time between Microsoft and the SBCValues above targets
TLS certificateDays until the SBC certificate expiresWarnings within 30 days of expiry

The network effectiveness ratio is the main reliability measure. It counts calls that the network delivered to a final outcome, including calls the called person did not answer or rejected as busy, as successes, because those are not network failures. A low ratio with few calls can be normal; Microsoft notes that with fewer than 100 calls the ratio is not very meaningful. Average call duration is a quality signal: if callers start hanging up within seconds, something is wrong with the media even if calls connect.

SIP OPTIONS messages are the SBC's heartbeat. SBCs typically send them every minute. If they stop arriving, Teams may consider the SBC down and stop sending calls to it. If they were never configured, problems such as an expired certificate may go unnoticed until calls fail.

Reading SIP responses

When a Direct Routing call fails, the SIP response tells you where to look. Felix kept a short table of common responses for the runbook, noting that the exact meaning in a particular case depends on whether Microsoft or the SBC sent it, and that the Microsoft subcode and phrase in the usage report give the precise reason.

ResponseGeneral meaningFirst place to look
403 ForbiddenThe request was refusedPolicies, licensing, or the SBC's own restrictions
404 Not FoundThe number was not recognizedNormalization and trunk translation rules
408 Request TimeoutNo answer in timeConnectivity between Microsoft and the SBC
480 Temporarily UnavailableThe called party could not be reachedUser sign-in, presence or carrier
486 Busy HereThe called party is busyNormal; not a failure
487 Request TerminatedThe call was cancelledUsually the caller hung up
488 Not Acceptable HereMedia negotiation failedCodecs and media settings on the SBC
503 Service UnavailableA server could not handle the callSBC health and capacity, service status
504 Server Time-outA downstream server did not respondSBC or carrier responsiveness

The usage report's call flow view shows the sequence of SIP messages for one call, which helps answer the question of who said what first. For anything deeper, the SBC's own logs are needed, matched by the shared correlation ID and the time. In the branch design, Northlight would manage the SBC hosted by Tidelink, so these logs would come from Northlight.

Quality on the PSTN leg

A PSTN call that connects but sounds bad needs the same method as any other call, with one difference: the far end is not a Teams client. Call analytics shows the Corvallin user's side in full, but the PSTN side shows little device information. For Direct Routing, the SBC adds its own measures and the health dashboard shows network parameters between Microsoft and the SBC. For Calling Plans and Operator Connect, the carrier side is Microsoft's or the operator's, and only they can see it.

Felix's practical rule was to rule out the Corvallin side first. If the user's own outbound and inbound audio telemetry was clean, and the problem happened with several external numbers, the carrier side was the likely cause and the case belonged with Microsoft for Calling Plans or with the operator for Operator Connect. If the problem happened only with one external number, the other person's phone or carrier was the likely cause, and there was little Corvallin could do.

Auto attendants and call queues

PSTN callers to Corvallin's head office first reached the AA Main Line auto attendant and then, often, CQ Scheduling or CQ Intake. Problems there look like PSTN problems to callers but are configuration problems in Teams: a menu option pointing to the wrong target, a holiday schedule not applied, a queue with no agents signed in, an overflow sending callers to voicemail too soon. The usage report shows the call arriving; the auto attendant and call queue configuration, and the historical report, show what happened next.

In the fourth week, callers who pressed 9 for French reached English voicemail after hours. The French menu option pointed to a queue whose after-hours handling had not been set to the French message. Teodor found it in ten minutes once he stopped looking at the network and started reading the call queue settings.

Who supports what

The support path depends on the number type. For Calling Plans, Microsoft is the carrier, so carrier-side problems go to Microsoft support through the Microsoft 365 admin center. For Operator Connect, the operator supports the carrier side, and agreements such as Tidelink's monthly service reviews set out how. For Direct Routing, the organization or its partner owns the SBC and the carrier relationship, and Microsoft supports only the Teams side of the connection. Lesson 10 covers how to work with each.

Common mistakes

  • MistakeInvestigating a failed call without checking the user's number type.

    InsteadStart with the number type; it decides the tools and the support path.

  • MistakeCalling a port complete when Microsoft reports it complete.

    InsteadTest inbound calls from several carriers and kinds of phones after a port.

  • MistakeAdding network equipment without updating emergency location data.

    InsteadAdd every new access point, switch and subnet to the location information service.

  • MistakeTreating a 486 Busy Here as a fault.

    InsteadRecognize normal outcomes such as busy and cancelled calls.

Summary and key terms

  • Ask first: what is the number type, and is this a connection or a quality problem?
  • The PSTN usage report has Calling Plans (including Operator Connect) and Direct Routing tabs, with a 24 to 48 hour lag.
  • Final SIP code, Microsoft subcode and SIP phrase explain how Direct Routing calls ended.
  • The Direct Routing health dashboard shows network effectiveness, call duration, SIP options, capacity and certificates.
  • Dynamic emergency address problems are usually missing access points, switches or subnets in the location data.
  • Carrier-side support depends on the number type: Microsoft, the operator or the SBC owner.
PSTN usage report
A Teams admin center report listing phone network calls by connection type.
Final SIP code
The SIP response that ended a call.
Microsoft subcode
A code identifying more specifically what happened in Microsoft's service.
Network effectiveness ratio
The share of SBC calls the network delivered to a final outcome.
SIP OPTIONS
Keep-alive messages an SBC sends to show it is available.
Shared correlation ID
An identifier that links Microsoft's call records to SBC logs.
Location information service
The database that maps network identifiers to emergency locations.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why did some callers reach the old system on port day?

    Show answer

    One regional carrier's routing update lagged behind the port.

  2. Why did the third floor emergency test show the ground floor?

    Show answer

    A new access point had not been added to the location information service.

  3. Where would SBC logs for the branch design come from?

    Show answer

    From Northlight, which would manage the SBC hosted by Tidelink.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz