FAILURE MAP
← Case archive

FA-96510 / Phone number formatting / Member archive

Dial string from E.164: prefix overlap is mistaken for a domestic call · case 05

A DD caller dialing a BB number (+83...) gets a domestic dial string.

Member previewVariant 5 · 3 implementations · 9 checks per implementation

Case contract

Input [canonical +digits, caller country]. Toy table (code, exit prefix, trunk): DD 8/00/-, AA 42/00/0, BB 83/810/8, CC 891/011/-. The input must be "+" and digits only. The destination is the longest matching code. Same code as the caller: dial trunk + national number. Otherwise dial the caller exit prefix + code + national number. Unknown caller or code returns None.

Why this case matters

Click-to-call and PBX integrations dial the string produced here; a wrong prefix connects to a different subscriber or fails.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
caller code is a prefix of destination code"5550125665""00835550125665"Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗