Telephone context at visitor check-in
New staff and public check-ins require an explicit telephone region; the UI
initially selects Sweden but the value must be submitted and is not inferred by
Core. The SMS channel’s Channels::Sms::PhoneNumber validates and formats the
number with Phonelib. Explicit + takes precedence over the selected region.
Where Phonelib identifies a different country, the form asks the user to
confirm the interpretation before recording the visit. 00 international
prefixes are rejected with an instruction to use +.
New recipients retain the entered phone text, selected region, normalized E.164
number, identifiable number region (when available), and Phonelib version.
These are derived data, not proof of identity, assignment, SMS capability or
successful delivery. Phonelib’s metadata needs ongoing maintenance and
regression tests. Locale labels use the countries gem; the set of telephone
regions not represented by ISO 3166 country records needs separate review.
Existing records are not modified or silently assigned a region. A national
number without region returns region_required when checked by the channel;
explicit + numbers can be assessed without guessing a region. No bulk review
UI, dispatch-time validation, frozen metadata, messages or SMS delivery is
implemented. Such a workflow must revalidate with an explicitly chosen version,
handle legacy and invalid records visibly, and avoid logging contact data.