Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

Forwarding guides for cloud phone systems: Phone systems group, checked steps, admin page, Then test forwarding (PR 1941)

Janik00ce9ed3fd3d
diff --git a/apps/api/src/setup-mcp.ts b/apps/api/src/setup-mcp.ts
index 1ce32160..947b74ea 100644
--- a/apps/api/src/setup-mcp.ts
+++ b/apps/api/src/setup-mcp.ts
@@ -45,6 +45,7 @@ import {
type ForwardingMode,
forwardingCountries,
forwardingInstructions,
+ systemExtras,
type GroupStatus,
groupText,
guidesForCountry,
@@ -1673,6 +1674,7 @@ export function instructionsBeforeNumber(guide: ForwardingGuide, mode: Forwardin
on: [...steps.on],
off: [...steps.off],
check: guide.check ?? null,
+ ...systemExtras(guide, '{number}'),
}
}
diff --git a/apps/web/src/onboarding/ForwardingGuide.tsx b/apps/web/src/onboarding/ForwardingGuide.tsx
index 98a642ce..74be5774 100644
--- a/apps/web/src/onboarding/ForwardingGuide.tsx
+++ b/apps/web/src/onboarding/ForwardingGuide.tsx
@@ -13,24 +13,27 @@ import {
guideCountry,
guideInCountry,
guideKindLabels,
+ guideModes,
guidesForCountry,
hasForwardingCountry,
OTHER_COUNTRY,
- phoneCountryName,
phoneChecklist,
+ phoneCountryName,
preselectForwardingCountry,
type ResolvedCode,
searchForwardingGuides,
} from '@linedesk/actions'
import { T, useT } from '@linedesk/i18n/react'
-import { type KeyboardEvent, useCallback, useEffect, useId, useMemo, useRef, useState } from 'react'
+import { Fragment, type KeyboardEvent, useCallback, useEffect, useId, useMemo, useRef, useState } from 'react'
import { intlLocale } from '../i18n/format.ts'
import { i18n } from '../i18n/index.tsx'
import { useWorkspaceSettings } from '../settings/settings-api.ts'
import { useAssistants } from '../store.tsx'
-import { useActiveOptionInView, useAnchoredList } from '../ui/floating.ts'
+import { ExternalLink } from '../ui/AppLink.tsx'
+import { optionGroups } from '../ui/controls.tsx'
import { FoldOut } from '../ui/FoldOut.tsx'
-import { Icon, cx } from '../ui/kit.tsx'
+import { useActiveOptionInView, useAnchoredList } from '../ui/floating.ts'
+import { cx, Icon } from '../ui/kit.tsx'
import { encodeQr, qrPath } from '../ui/qr.ts'
import { useMediaQuery } from '../ui/useMediaQuery.ts'
import { CopyButton } from './Frame.tsx'
@@ -65,10 +68,22 @@ export function useForwardingGuide(
return [state.id, pick, state.byOwner]
}
-const guideDescription = (g: ForwardingGuide, t: ReturnType<typeof useT>) =>
- g.network
+/**
+ * The line under a guide in the picker: for a phone system, which calls it can forward (missed calls, every call, or
+ * both), since that decides whether it fits the number's mode; else the kind of line and its network.
+ */
+const guideDescription = (g: ForwardingGuide, t: ReturnType<typeof useT>) => {
+ if (g.kind === 'phone_system') {
+ const modes = guideModes(g)
+ if (modes.length > 0)
+ return t('onboarding.forwarding.systemModes', {
+ modes: modes.length > 1 ? 'both' : modes[0] === 'forward_all' ? 'all' : 'missed',
+ })
+ }
+ return g.network
? t('onboarding.forwarding.guideNetwork', { kind: guideKindLabels[g.kind], network: g.network })
: guideKindLabels[g.kind]
+}
const countryKey = (numberId: string) => `linedesk.forwardingCountry.${numberId}`
@@ -122,7 +137,8 @@ export function useForwardingPick(number: { id: string; e164: string }) {
return { country, setCountry, guide, guideId: guide?.id ?? null, setGuide, pickedByOwner }
}
-type PickerItem = { id: string; name: string; description?: string }
+/** `group`: the heading the item is listed under (Carriers, Phone systems); consecutive items share one. */
+type PickerItem = { id: string; name: string; description?: string; group?: string }
/**
* A search field with a list: typing filters it, arrow keys move, Enter picks, Esc closes. The carrier picker and
@@ -254,24 +270,39 @@ function SearchPicker({
aria-label={listLabel}
>
{matches.length === 0 && <div className="fg-empty">{empty}</div>}
- {matches.map((item, i) => (
- <div
- key={item.id}
- id={`${listId}-${i}`}
- role="option"
- aria-selected={item.id === value}
- className={cx('k-select-opt', i === active && 'active')}
- onMouseEnter={() => pointAt(i)}
- onMouseDown={e => e.preventDefault()}
- onClick={() => pick(item)}
- >
- <span className="k-select-opt-t">
- <span>{item.name}</span>
- {item.description && <small>{item.description}</small>}
- </span>
- {item.id === value && <Icon name="check" size={14} />}
- </div>
- ))}
+ {optionGroups(matches).map(run => {
+ const options = run.options.map((item, j) => {
+ const i = run.start + j
+ return (
+ <div
+ key={item.id}
+ id={`${listId}-${i}`}
+ role="option"
+ aria-selected={item.id === value}
+ className={cx('k-select-opt', i === active && 'active')}
+ onMouseEnter={() => pointAt(i)}
+ onMouseDown={e => e.preventDefault()}
+ onClick={() => pick(item)}
+ >
+ <span className="k-select-opt-t">
+ <span>{item.name}</span>
+ {item.description && <small>{item.description}</small>}
+ </span>
+ {item.id === value && <Icon name="check" size={14} />}
+ </div>
+ )
+ })
+ if (run.group === undefined) return <Fragment key={run.start}>{options}</Fragment>
+ const headingId = `${listId}-g${run.start}`
+ return (
+ <div key={run.start} role="group" aria-labelledby={headingId} className="k-select-group">
+ <div id={headingId} role="presentation" className="k-select-group-h">
+ {run.group}
+ </div>
+ {options}
+ </div>
+ )
+ })}
</div>
)}
</div>
@@ -302,6 +333,10 @@ export function CarrierPicker({
id: g.id,
name: g.name,
description: guideDescription(g, t),
+ group:
+ g.kind === 'phone_system'
+ ? t('onboarding.forwarding.groupSystems')
+ : t('onboarding.forwarding.groupCarriers'),
})),
[country, t],
)
@@ -429,6 +464,7 @@ export function ForwardingSteps({
e164,
country,
compact,
+ testable = true,
}: {
guide: ForwardingGuide
mode: ForwardingMode
@@ -436,9 +472,11 @@ export function ForwardingSteps({
/** The country picked, which decides how the number is written in the codes. */
country?: string
compact?: boolean
+ /** "Check forwarding" follows the steps (owners and admins): a phone system's steps end with "Then test forwarding". */
+ testable?: boolean
}) {
const t = useT()
- const steps = forwardingInstructions(guide, mode, e164, country)
+ const steps = forwardingInstructions(guide, mode, e164, country, i18n())
// The way that works on every phone is typing the code in the Phone app: an iPhone blocks links that turn on call
// forwarding (Apple's call forwarding guide), so a tel: link (Dial, the QR code) is only an extra for Android. A
// laptop shows a QR code that opens the dialer on an Android phone.
@@ -451,13 +489,25 @@ export function ForwardingSteps({
const qrIndex = qr.key === qrKey ? qr.index : 0
const setQrIndex = (index: number) => setQr({ key: qrKey, index })
- if (!steps)
+ const system = guide.kind === 'phone_system'
+ if (!steps) {
+ // A phone system that forwards only the other kind of call: say which one fits, so the owner can switch the mode.
+ const other = guideModes(guide)[0]
return (
<div className="fg-card">
<p className="fg-none">{guide.note ?? t('onboarding.forwarding.noSteps', { carrier: guide.name })}</p>
+ {system && other && (
+ <p className="fg-meta">
+ {t('onboarding.forwarding.systemOtherMode', {
+ system: guide.name,
+ mode: other === 'forward_all' ? 'all' : 'missed',
+ })}
+ </p>
+ )}
<Sources guide={guide} />
</div>
)
+ }
const mobile = guide.kind === 'mobile'
const qrCode = steps.how === 'dial' ? (steps.on[qrIndex] ?? steps.on[0]) : undefined
@@ -535,11 +585,18 @@ export function ForwardingSteps({
) : (
<>
<p className="fg-lead">{t('onboarding.forwarding.leadSettings', { where: steps.where })}</p>
- <ol className="fg-steps">
- {steps.on.map(s => (
- <li key={s}>{s}</li>
- ))}
- </ol>
+ {steps.portal ? (
+ <SystemSteps
+ guide={guide}
+ portal={steps.portal}
+ steps={steps.on}
+ mainNumber={steps.mainNumber}
+ open={!compact}
+ />
+ ) : (
+ <StepList steps={steps.on} />
+ )}
+ {system && testable && <p className="fg-then">{t('onboarding.forwarding.thenTest')}</p>}
<p className="fg-meta">
{steps.check
? t('onboarding.forwarding.settingsOffCheck', { steps: steps.off.join(' '), where: steps.check })
@@ -565,6 +622,68 @@ export function ForwardingSteps({
)
}
+function StepList({ steps }: { steps: readonly string[] }) {
+ return (
+ <ol className="fg-steps">
+ {steps.map(s => (
+ <li key={s}>{s}</li>
+ ))}
+ </ol>
+ )
+}
+
+/**
+ * A phone system's steps, the way a key's are (design rule 17, WhereToGetIt): a button to the page where the setting
+ * is, in a new tab, and the steps folded below it ("Step by step", open in onboarding), with the main number or call
+ * queue and the vendor's own help page.
+ */
+function SystemSteps({
+ guide,
+ portal,
+ steps,
+ mainNumber,
+ open,
+}: {
+ guide: ForwardingGuide
+ portal: { url: string; label: string }
+ steps: readonly string[]
+ /** The same for the main number or a call queue, with the number written in. */
+ mainNumber?: string
+ open: boolean
+}) {
+ const t = useT()
+ const help = guide.sources[0]
+
+ return (
+ <div className="fg-system">
+ <a
+ className="k-btn k-btn-secondary k-btn-sm"
+ href={portal.url}
+ target="_blank"
+ rel="noreferrer"
+ title={t('settings.keyConnect.opensInNewTab')}
+ >
+ {t('onboarding.forwarding.openPortal', { portal: portal.label })} ↗
+ </a>
+ <FoldOut className="fg-stepwise" defaultOpen={open} summary={t('settings.keyConnect.stepByStep')}>
+ <StepList steps={steps} />
+ {mainNumber && <p className="fg-meta">{mainNumber}</p>}
+ {help && (
+ <p className="fg-meta">
+ <T
+ k="onboarding.forwarding.officialHelp"
+ values={{
+ system: guide.name,
+ link: chunks => <ExternalLink href={help.url}>{chunks}</ExternalLink>,
+ }}
+ />
+ </p>
+ )}
+ </FoldOut>
+ </div>
+ )
+}
+
function Sources({ guide }: { guide: ForwardingGuide }) {
const links = (
<>
diff --git a/apps/web/src/onboarding/flow.test.ts b/apps/web/src/onboarding/flow.test.ts
index 704b62b0..564e22ce 100644
--- a/apps/web/src/onboarding/flow.test.ts
+++ b/apps/web/src/onboarding/flow.test.ts
@@ -284,7 +284,7 @@ test('an earlier forwarding is turned off with its own codes, or where it was se
)
expect(turnOffFirst(tmobile, 'forward_conditional', '+15035550142')).toMatch(/##61#, ##67#, ##62#\.$/)
expect(turnOffFirst(forwardingGuideById('ringcentral')!, 'forward_all', '+15035550142')).toBe(
- 'Set up the earlier forwarding already? Turn it off first in the RingCentral app or admin portal.',
+ 'Set up the earlier forwarding already? Turn it off first in the RingCentral app or the Admin Portal.',
)
// Google Fi has no missed-calls forwarding: nothing to name.
expect(turnOffFirst(forwardingGuideById('google-fi')!, 'forward_conditional', '+15035550142')).toBe(
diff --git a/apps/web/src/onboarding/forwarding-guide.css b/apps/web/src/onboarding/forwarding-guide.css
index 3ac8f2fc..2349db61 100644
--- a/apps/web/src/onboarding/forwarding-guide.css
+++ b/apps/web/src/onboarding/forwarding-guide.css
@@ -143,6 +143,22 @@
padding-left: 20px;
line-height: 19px;
}
+/* A phone system: the button to its admin page, then the steps folded below it (as a key's "Step by step"). */
+.fg-system {
+ display: grid;
+ justify-items: start;
+ gap: 8px;
+}
+.fg-stepwise {
+ width: 100%;
+}
+.fg-stepwise .k-fold-body {
+ display: grid;
+ gap: 8px;
+}
+.fg-then {
+ font-weight: 500;
+}
.fg-meta,
.fg-none {
font-size: 12.5px;
diff --git a/apps/web/src/settings/PhoneNumbers.tsx b/apps/web/src/settings/PhoneNumbers.tsx
index 12f3a235..e1356482 100644
--- a/apps/web/src/settings/PhoneNumbers.tsx
+++ b/apps/web/src/settings/PhoneNumbers.tsx
@@ -489,6 +489,7 @@ export function ManageNumber({
pick={pick}
e164={number.e164}
mode={number.mode === 'forward_all' ? 'forward_all' : 'forward_conditional'}
+ testable={canEdit}
/>
</FormField>
</CheckWhenEditing>
@@ -652,10 +653,13 @@ function Forwarding({
pick,
e164,
mode,
+ testable = true,
}: {
pick: ReturnType<typeof useForwardingPick>
e164: string
mode: 'forward_conditional' | 'forward_all'
+ /** "Check forwarding" follows (owners and admins). */
+ testable?: boolean
}) {
const t = useT()
const { guide, country } = pick
@@ -671,7 +675,7 @@ function Forwarding({
/>
<AbroadWarning e164={e164} country={country} guide={guide} />
{guide ? (
- <ForwardingSteps guide={guide} mode={mode} e164={e164} country={country} compact />
+ <ForwardingSteps guide={guide} mode={mode} e164={e164} country={country} compact testable={testable} />
) : (
<p className="help">{t('settings.phone.forwarding.pick')}</p>
)}
diff --git a/packages/actions/src/forwarding-guides.test.ts b/packages/actions/src/forwarding-guides.test.ts
index 2612ae6b..b662292c 100644
--- a/packages/actions/src/forwarding-guides.test.ts
+++ b/packages/actions/src/forwarding-guides.test.ts
@@ -429,7 +429,10 @@ describe('countries', () => {
})
test('international phone systems are listed in every country, regional ones only in theirs', () => {
- const systems = (cc: string) => guidesForCountry(cc).filter(g => g.kind === 'phone_system').map(g => g.id)
+ const systems = (cc: string) =>
+ guidesForCountry(cc)
+ .filter(g => g.kind === 'phone_system')
+ .map(g => g.id)
const international = [
'8x8',
'3cx',
@@ -447,7 +450,12 @@ describe('countries', () => {
'zoom-phone',
]
expect(INTERNATIONAL_SYSTEM_MIN_COUNTRIES).toBe(10)
- expect(forwardingGuides.filter(isInternationalSystem).map(g => g.id).sort()).toEqual([...international].sort())
+ expect(
+ forwardingGuides
+ .filter(isInternationalSystem)
+ .map(g => g.id)
+ .sort(),
+ ).toEqual([...international].sort())
// Korea has no carrier guides: "Other country" with every international system, A–Z by name.
expect(hasForwardingCountry('KR')).toBe(false)
expect(preselectForwardingCountry({ workspaceCountry: 'KR' })).toBe(OTHER_COUNTRY)
@@ -675,3 +683,66 @@ describe('writing the number', () => {
expect(steps?.on.join(' ')).toContain('+49 30 12345678')
})
})
+
+/** The cloud phone systems a business can't connect over SIP: they forward to the assistant's number instead. */
+const CLOUD_SYSTEMS: Record<string, string> = {
+ ringcentral: 'ringcentral.com',
+ 'zoom-phone': 'zoom.com',
+ 'teams-phone': 'microsoft.com',
+ dialpad: 'dialpad.com',
+ quo: 'quo.com',
+}
+
+describe('cloud phone systems', () => {
+ for (const [id, domain] of Object.entries(CLOUD_SYSTEMS)) {
+ test(`${id}: steps for a mode, the vendor's help page and its admin page`, () => {
+ const g = forwardingGuideById(id)
+ expect(g, id).toBeDefined()
+ if (g?.how !== 'settings') throw new Error(`${id} is not a settings guide`)
+ expect(g.kind).toBe('phone_system')
+ const modes = guideModes(g)
+ expect(modes.length, `${id}: at least one mode`).toBeGreaterThan(0)
+ for (const mode of modes) {
+ const steps = g.modes[mode]!
+ expect(steps.on.length, `${id} ${mode}: 2–6 steps`).toBeGreaterThanOrEqual(2)
+ expect(steps.on.length, `${id} ${mode}: 2–6 steps`).toBeLessThanOrEqual(6)
+ expect(
+ steps.on.some(s => s.includes('{number}')),
+ `${id} ${mode}: the assistant's number is the target`,
+ ).toBe(true)
+ expect(steps.off.length, `${id} ${mode}: how to turn it off`).toBeGreaterThan(0)
+ }
+ // A mode it can't do says so and what to do instead.
+ if (modes.length < 2) expect(g.note, `${id}: note for the missing mode`).toBeTruthy()
+ const help = g.sources[0]!
+ expect(new URL(help.url).protocol).toBe('https:')
+ expect(new URL(help.url).hostname.endsWith(domain), `${id}: the vendor's own help first`).toBe(true)
+ expect(g.portal, `${id}: the admin page`).toBeDefined()
+ expect(new URL(g.portal!.url).protocol).toBe('https:')
+ expect(g.mainNumber, `${id}: main number or call queue`).toBeTruthy()
+ })
+ }
+
+ test('their instructions carry the admin page and the main-number line, with the number filled in', () => {
+ const steps = forwardingInstructions(forwardingGuideById('ringcentral')!, 'forward_conditional', '+15035550142')
+ expect(steps?.how).toBe('settings')
+ if (steps?.how !== 'settings') return
+ expect(steps.portal?.url).toMatch(/^https:/)
+ expect(steps.mainNumber).toContain('(503) 555-0142')
+ expect(steps.on.join(' ')).toContain('(503) 555-0142')
+ })
+
+ test('they are listed in every country, after the carriers', () => {
+ for (const cc of ['US', 'DE', OTHER_COUNTRY]) {
+ const list = guidesForCountry(cc)
+ for (const id of Object.keys(CLOUD_SYSTEMS).filter(i => i !== 'quo'))
+ expect(
+ list.some(g => g.id === id),
+ `${id} in ${cc}`,
+ ).toBe(true)
+ const first = list.findIndex(g => g.kind === 'phone_system')
+ expect(list.slice(first).every(g => g.kind === 'phone_system')).toBe(true)
+ }
+ expect(guidesForCountry('US').some(g => g.id === 'quo')).toBe(true)
+ })
+})
diff --git a/packages/actions/src/forwarding-guides.ts b/packages/actions/src/forwarding-guides.ts
index 086ceaeb..55255570 100644
--- a/packages/actions/src/forwarding-guides.ts
+++ b/packages/actions/src/forwarding-guides.ts
@@ -14,8 +14,8 @@
// country" (OTHER_COUNTRY), gets the GSM codes with the number written internationally, and the phone's own settings.
// The US guides are below; the other countries are in ./forwarding-guides/, one file per region, and the phone
// systems (with the countries each sells numbers in) in ./forwarding-guides/phone-systems.ts.
-import { getCountryCallingCode, parsePhoneNumberFromString } from 'libphonenumber-js/max'
+import { getCountryCallingCode, parsePhoneNumberFromString } from 'libphonenumber-js/max'
import { americasGuides } from './forwarding-guides/americas.ts'
import { apacMeaGuides } from './forwarding-guides/apac-mea.ts'
import { europeNorthWestGuides } from './forwarding-guides/europe-north-west.ts'
@@ -33,7 +33,9 @@ import {
type NumberFormat,
OTHER_COUNTRY,
phoneMenuModes,
+ type SettingsGuide,
} from './forwarding-guides/shared.ts'
+import { english, type Words } from './words.ts'
export type {
DialCode,
@@ -732,7 +734,9 @@ export const isInternationalSystem = (g: ForwardingGuide): boolean =>
g.kind === 'phone_system' && (g.countries === 'any' || g.countries.length >= INTERNATIONAL_SYSTEM_MIN_COUNTRIES)
/** The EU and EEA countries, Switzerland and the United Kingdom: where AVM sells the FRITZ!Box. */
-const EUROPE = 'AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE IS LI NO CH GB'.split(' ')
+const EUROPE = 'AT BE BG HR CY CZ DK EE FI FR DE GR HU IE IT LV LT LU MT NL PL PT RO SK SI ES SE IS LI NO CH GB'.split(
+ ' ',
+)
/**
* Guides also listed in countries beyond their own (whose carrier guides they don't make): the FRITZ!Box router is
@@ -793,7 +797,12 @@ export function preselectForwardingCountry(from: {
businessNumber?: string | null
locale?: string | null
}): string {
- for (const strong of [from.country, phoneCountry(from.assistantNumber), from.workspaceCountry, phoneCountry(from.businessNumber)]) {
+ for (const strong of [
+ from.country,
+ phoneCountry(from.assistantNumber),
+ from.workspaceCountry,
+ phoneCountry(from.businessNumber),
+ ]) {
if (strong) return hasForwardingCountry(strong) ? strong.toUpperCase() : OTHER_COUNTRY
}
const locale = localeCountry(from.locale)
@@ -961,7 +970,16 @@ export const dialHref = (code: string) => `tel:${encodeURIComponent(code.replace
export type ResolvedCode = { code: string; when?: string; href: string }
export type ForwardingInstructions =
| { how: 'dial'; on: ResolvedCode[]; off: ResolvedCode[]; check: ResolvedCode[] }
- | { how: 'settings'; where: string; on: string[]; off: string[]; check: string | null }
+ | {
+ how: 'settings'
+ where: string
+ on: string[]
+ off: string[]
+ check: string | null
+ /** Phone systems: the page where the setting is, and the same for the main number or a call queue. */
+ portal?: { url: string; label: string }
+ mainNumber?: string
+ }
/**
* What to dial or change to forward to `e164` in `mode`, and how to undo and check it; null when the guide has no
@@ -973,6 +991,7 @@ export function forwardingInstructions(
mode: ForwardingMode,
e164: string,
country?: string | null,
+ words: Words = english,
): ForwardingInstructions | null {
if (guide.how === 'dial') {
const steps = guide.modes[mode]
@@ -1000,9 +1019,23 @@ export function forwardingInstructions(
on: steps.on.map(fill),
off: steps.off.map(fill),
check: guide.check ?? null,
+ ...systemExtras(guide, written, words),
}
}
+/**
+ * A phone system's admin page and main-number line, when the guide has them, in `words` (the setup MCP passes them on
+ * too, in English), with `number` written into the line.
+ */
+export const systemExtras = (
+ guide: SettingsGuide,
+ number: string,
+ words: Words = english,
+): { portal?: { url: string; label: string }; mainNumber?: string } => ({
+ ...(guide.portal ? { portal: { url: guide.portal.url, label: words.t(guide.portal.label) } } : {}),
+ ...(guide.mainNumber ? { mainNumber: words.t(guide.mainNumber, { number }) } : {}),
+})
+
/**
* +15035550142 → (503) 555-0142, the way US settings pages take it; any other number internationally
* (+49 30 12345678), which a settings page takes from every country.
diff --git a/packages/actions/src/forwarding-guides/phone-systems.ts b/packages/actions/src/forwarding-guides/phone-systems.ts
index 1dd480c1..4f13dd43 100644
--- a/packages/actions/src/forwarding-guides/phone-systems.ts
+++ b/packages/actions/src/forwarding-guides/phone-systems.ts
@@ -1,5 +1,6 @@
// Phone systems and apps, with the countries each sells local numbers or full service in (researched 15.11.2026).
// Sourcing rule and fields: see ../forwarding-guides.ts and ./shared.ts.
+import { msg } from '@linedesk/i18n'
import type { ForwardingGuide } from './shared.ts'
export const phoneSystemGuides: readonly ForwardingGuide[] = [
@@ -56,40 +57,45 @@ export const phoneSystemGuides: readonly ForwardingGuide[] = [
],
aliases: ['ringcentral', 'ringex', 'ring central'],
how: 'settings',
- where: 'the RingCentral app or admin portal',
+ where: 'the RingCentral app or the Admin Portal',
+ portal: { url: 'https://service.ringcentral.com/', label: msg('server.forwardingGuides.ringcentral.portal') },
modes: {
forward_conditional: {
on: [
- 'RingCentral app › Settings › Phone › Incoming call rules › Incoming calls (admins: Admin Portal › Users › the user › Phone › Incoming call rules).',
- 'Ring settings: 4 rings (about 20 seconds) on your devices.',
- '“If no one answers” › “Forward the call” › {number}.',
- 'Save.',
+ 'RingCentral app › Settings › Phone › Incoming call rules (admins: Admin Portal › Users › Users with Extensions › the user › Phone › Incoming call rules).',
+ 'Click “Incoming calls” under My work day (with a schedule: Work hours, then the same for After hours).',
+ 'Ring settings: 4 rings (20 seconds) on your devices.',
+ '“If no one answers” › “Forward the call” › {number} › Save.',
],
- off: ['Set “If no one answers” back to voicemail in the same place.'],
+ off: ['Set “If no one answers” back to voicemail in the same place › Save.'],
},
forward_all: {
on: [
'RingCentral app › your profile picture › Incoming call rules › turn on “Forward all calls”.',
- 'Open “Forward all calls” › Incoming calls › “Forward the call” › {number}.',
- 'Set the schedule if asked › Save.',
+ 'Incoming calls › “Forward the call” › {number} › Save (add a schedule first if you want one).',
],
off: ['RingCentral app › your profile picture › Incoming call rules › turn off “Forward all calls”.'],
},
},
check: 'RingCentral app › Settings › Phone › Incoming call rules',
+ mainNumber: msg('server.forwardingGuides.ringcentral.mainNumber'),
pitfalls: [
- 'Turn off “Screen callers” / “Ask me if I want to answer”: its press-1 prompt stops your assistant.',
- '“Forward all calls” only shows when your admin allows call handling changes.',
+ 'Turn off Screen callers (“Ask me if I want to answer”): its press-1 prompt stops your assistant.',
+ '“Forward all calls” only shows when your admin allows call handling changes, and while it is on you show as unavailable in your call queues.',
],
sources: [
{
- url: 'https://support.ringcentral.com/article-v2/Setting-up-how-incoming-calls-are-handled.html?brand=RingCentral&product=RingEX&language=en_US',
- label: 'RingCentral: incoming call rules',
+ url: 'https://support.ringcentral.com/app/users/desktop-web/setting-up-user-call-forwarding-ringcentral-app-desktop-web.html',
+ label: 'RingCentral: call forwarding',
},
{
- url: 'https://support.ringcentral.com/ringex/admin/call-handling-forwarding/setting-up-forward-all-calls-feature-ringcentral-app-desktop-web.html',
+ url: 'https://support.ringcentral.com/mvp/admin/call-handling-forwarding/setting-up-forward-all-calls-feature-ringcentral-app-desktop-web.html',
label: 'RingCentral: Forward all calls',
},
+ {
+ url: 'https://support.ringcentral.com/article-v2/10514-call-queue-set-up-call-handling-how-calls-transferred-group-members.html?brand=RingCentral&product=RingEX&language=en_US',
+ label: 'RingCentral: call queue call handling',
+ },
{
url: 'https://www.ringcentral.com/legal/policies/global-office-countries.html',
label: 'RingCentral: Global RingEX countries',
@@ -354,21 +360,31 @@ export const phoneSystemGuides: readonly ForwardingGuide[] = [
aliases: ['dialpad'],
how: 'settings',
where: 'Dialpad settings',
+ portal: { url: 'https://dialpad.com/settings', label: msg('server.forwardingGuides.dialpad.portal') },
modes: {
forward_conditional: {
on: [
- 'Dialpad Admin Settings › Office › Main Line › Business Hours & Call Routing › Edit Call Routing › Operators.',
- 'Fallback Options › “To another team member, room phone or external number” › {number} › Save.',
- 'An outside number as fallback is turned on by Dialpad support: ask them first.',
+ 'Dialpad › Your Settings › Call Handling & Voicemail › Show Advanced Options.',
+ 'Ring duration: 20 seconds; Advanced missed call routing › “To a team member / room phone / external number” › {number} › Save.',
+ 'For after hours too (Standard, Pro or Enterprise plan): Personal Working Hours › “Only during specific hours”; calls outside them follow the same routing.',
],
- off: ['Set Fallback Options back to “Directly to voicemail” in the same place › Save.'],
+ off: ['Set Advanced missed call routing back to voicemail in the same place.'],
},
},
- note: 'Dialpad has no setting for a person’s missed calls to an outside number; the main line’s fallback is the way.',
+ note: 'Dialpad has no setting to forward every call of a person’s line, only the calls nobody answers.',
+ mainNumber: msg('server.forwardingGuides.dialpad.mainNumber'),
pitfalls: [
'Dialpad asks “press 1” when a forwarded call is answered within 5 seconds, and it can’t be fully turned off. Your assistant answers fast, so test it.',
],
sources: [
+ {
+ url: 'https://help.dialpad.com/hc/en-us/articles/55072364227611-Set-a-Custom-Ring-Duration',
+ label: 'Dialpad: ring duration and missed call routing',
+ },
+ {
+ url: 'https://help.dialpad.com/hc/en-us/articles/55073763065243-Set-Your-Personal-Working-Hours',
+ label: 'Dialpad: personal working hours',
+ },
{
url: 'https://help.dialpad.com/hc/en-us/articles/55007679123227-Manage-a-Main-Line',
label: 'Dialpad: manage a Main Line (fallback options)',
@@ -556,27 +572,29 @@ export const phoneSystemGuides: readonly ForwardingGuide[] = [
countries: ['US', 'CA'],
aliases: ['openphone', 'open phone', 'quo'],
how: 'settings',
- where: 'Quo settings',
+ where: 'Quo',
+ portal: { url: 'https://my.quo.com/', label: msg('server.forwardingGuides.quo.portal') },
modes: {
forward_conditional: {
on: [
- 'Quo › Settings › Workspace › Phone numbers › your number › Call flow › Edit call flow.',
- '“Ring users”: 20 seconds.',
- 'Add a “Forward call” step after it › {number}.',
- 'Save and enable the call flow.',
+ 'Quo › Settings › Phone numbers › your number › Call flow › Edit call flow.',
+ 'After “Incoming call”, add “Business hours”.',
+ 'Open hours: “Ring users” (20 seconds), then a “Forward call” step › {number}; closed hours: a “Forward call” step › {number}.',
+ '“Enable this call flow” and check it shows Live.',
],
- off: ['In the same place, remove the “Forward call” step or enable the default call flow.'],
+ off: ['In the same place, remove the “Forward call” steps or enable the default call flow.'],
},
forward_all: {
on: [
- 'Quo › Settings › Workspace › Phone numbers › your number › Call flow.',
+ 'Quo › Settings › Phone numbers › your number › Call flow.',
'“Default call flow” dropdown › “Forward all calls” › {number} › Create new call flow.',
'“Enable this call flow” and check it shows Live.',
],
off: ['Select “Default call flow” › “Enable this call flow”.'],
},
},
- check: 'Quo › Settings › Workspace › Phone numbers › your number › Call flow',
+ check: 'Quo › Settings › Phone numbers › your number › Call flow',
+ mainNumber: msg('server.forwardingGuides.quo.mainNumber'),
pitfalls: [
'Forwarded calls aren’t recorded in Quo and don’t fall back to Quo voicemail.',
'Quo forwards only to US and Canadian numbers.',
@@ -654,29 +672,38 @@ export const phoneSystemGuides: readonly ForwardingGuide[] = [
],
aliases: ['zoom', 'zoom phone', 'zoom workplace'],
how: 'settings',
- where: 'the Zoom Workplace app',
+ where: 'the Zoom web portal',
+ portal: { url: 'https://zoom.us/pbx/page/telephone/user', label: msg('server.forwardingGuides.zoomPhone.portal') },
modes: {
forward_conditional: {
on: [
- 'Add {number} as an external contact in Zoom first.',
- 'Zoom Workplace app › your picture › Settings › Phone › Voicemail and forwarding › Business hours.',
- '“When a call goes unanswered” › “Forward to external contact” › Forward to: Manage › pick {number}. The same for “When I’m busy on another call”.',
- 'The same under Closed hours.',
+ 'zoom.us › your profile picture › Profile › Zoom Phone › Settings (admins: Admin Center › Phone system › Users & Rooms › the user › User Settings).',
+ 'Business Hours › Edit next to Call Handling (then the same under Closed Hours, for calls after hours).',
+ 'Add Phone Number › {number} (pick its country) and untick “Require to press 1 before connecting the call”.',
+ 'Call Handling Ring Mode: Sequential, with {number} last; Ringing Duration for Each Device: 20 seconds › Save.',
],
- off: ['Set “When a call goes unanswered” back to voicemail in the same place.'],
+ off: ['Remove {number} from Call Handling under Business Hours and Closed Hours.'],
},
},
- check: 'Zoom Workplace › Settings › Phone › Voicemail and forwarding',
- note: 'Zoom documents forwarding unanswered and busy calls; for every call, ask your Zoom admin.',
+ check: 'zoom.us › Profile › Zoom Phone › Settings › Call Handling',
+ note: 'Zoom documents forwarding the calls nobody answers; for every call, ask your Zoom admin.',
+ mainNumber: msg('server.forwardingGuides.zoomPhone.mainNumber'),
pitfalls: [
- 'Leave “Send unanswered calls to my voicemail” off: it makes the forwarded call ask for a key press.',
- 'Your Zoom user needs its own phone number to forward outside.',
- 'Zoom Support may have to turn on forwarding to external contacts for your account first.',
+ 'Zoom asks “press 1” on forwarded calls by default, and your assistant can’t: untick it. In a call queue it can’t be turned off.',
+ 'Your Zoom user needs its own phone number to forward outside; your admin’s policy must allow call forwarding to external numbers.',
],
sources: [
{
- url: 'https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0083324',
- label: 'Zoom Phone: call forwarding',
+ url: 'https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0069180',
+ label: 'Zoom: customizing call handling settings',
+ },
+ {
+ url: 'https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0069655',
+ label: 'Zoom Phone: policy settings',
+ },
+ {
+ url: 'https://library.zoom.com/zoom-workplace/zoom-phone/zoom-phone-bluepaper/configuration',
+ label: 'Zoom Phone: call queues and auto receptionists',
},
{
url: 'https://www.zoom.com/en/products/voip-phone/features/global-coverage/',
@@ -839,39 +866,48 @@ export const phoneSystemGuides: readonly ForwardingGuide[] = [
'business voice',
],
how: 'settings',
- where: 'Microsoft Teams settings or the Teams admin center',
+ where: 'the Teams admin center or Teams settings',
+ portal: { url: 'https://admin.teams.microsoft.com/', label: msg('server.forwardingGuides.teamsPhone.portal') },
modes: {
- forward_all: {
- on: [
- 'Teams › Settings and more (…) next to your picture › Settings › Calls.',
- 'Call handling and forwarding: forward your calls to a new number › {number}.',
- ],
- off: ['Teams › Calls app › the forwarding status at the bottom › “Don’t forward”.'],
- },
forward_conditional: {
on: [
- 'Admin: Teams admin center › Users › Manage users › the user › Voice tab.',
+ 'Teams admin center › Users › Manage users › the user › Voice tab.',
'Call answering rules: “Ring the user’s devices”.',
- '“If unanswered”: forward to {number}; “Ring for this many seconds before redirecting”: 20 › Save.',
+ '“If unanswered”: redirect to {number}; “Ring for this many seconds before redirecting”: 20 › Save.',
],
off: ['In the same place, set “If unanswered” back to voicemail › Save.'],
},
+ forward_all: {
+ on: [
+ 'Teams admin center › Users › Manage users › the user › Voice tab › Call answering rules: “Be immediately forwarded” › {number} › Save.',
+ 'Or the user in Teams: Settings and more (…) › Settings › Calls › Call handling and forwarding › forward to a new number › {number}.',
+ ],
+ off: ['Set the call answering rules back to “Ring the user’s devices”, or in Teams choose “Don’t forward”.'],
+ },
},
- check: 'Teams › Calls app: the forwarding status at the bottom',
- note: 'Users can also set unanswered calls in Teams under Settings › Calls › Call handling and forwarding. On a Teams desk phone: *34*20* then the number with country code forwards unanswered calls after 20 seconds, *33* then the number forwards every call, *32* resets.',
+ check: 'Teams admin center › Users › the user › Voice tab: Call answering rules',
+ mainNumber: msg('server.forwardingGuides.teamsPhone.mainNumber'),
pitfalls: [
- 'No forwarding options in Settings means the user has no Teams Phone (Enterprise Voice) license.',
- 'Your admin’s calling policy must allow “call forwarding and simultaneous ringing to external phone numbers”.',
- 'Changes to licenses can take up to 24 hours to show.',
+ 'No Voice tab or no forwarding options means the user has no Teams Phone license with a way to call out (Calling Plan, Operator Connect or Direct Routing).',
+ 'The calling policy “Call forwarding and simultaneous ringing to external phone numbers” must stay on.',
+ 'A call queue or auto attendant forwards outside only when its resource account can call out (pay-as-you-go Calling Plan, an Operator Connect number or a Direct Routing voice routing policy).',
],
sources: [
{
- url: 'https://support.microsoft.com/en-us/office/call-forwarding-call-groups-and-simultaneous-ring-in-microsoft-teams-a88da9e8-1343-4d3c-9bda-4b9615e4183e',
+ url: 'https://learn.microsoft.com/en-us/microsoftteams/user-call-settings',
+ label: 'Microsoft: configure call settings for users (admin)',
+ },
+ {
+ url: 'https://support.microsoft.com/en-us/office/call-forwarding-call-groups-and-simultaneous-ring-in-teams-a88da9e8-1343-4d3c-9bda-4b9615e4183e',
label: 'Microsoft: call forwarding in Teams',
},
{
- url: 'https://learn.microsoft.com/en-us/microsoftteams/user-call-settings',
- label: 'Microsoft: configure call forwarding for users (admin)',
+ url: 'https://learn.microsoft.com/en-us/microsoftteams/create-a-phone-system-call-queue',
+ label: 'Microsoft: set up a call queue',
+ },
+ {
+ url: 'https://learn.microsoft.com/en-us/microsoftteams/aa-cq-reference-prerequisites-licensing',
+ label: 'Microsoft: auto attendant and call queue licensing',
},
{
url: 'https://learn.microsoft.com/en-us/microsoftteams/calling-plan-overview',
diff --git a/packages/actions/src/forwarding-guides/shared.ts b/packages/actions/src/forwarding-guides/shared.ts
index 4fbfa3fc..56fb15ce 100644
--- a/packages/actions/src/forwarding-guides/shared.ts
+++ b/packages/actions/src/forwarding-guides/shared.ts
@@ -2,6 +2,8 @@
// sources). The guides themselves are in ../forwarding-guides.ts (the US, "Other country") and in this folder, one
// file per region; ../forwarding-guides.ts puts them together and holds the logic.
+import type { MessageKey } from '@linedesk/i18n'
+
/** How the business's own number reaches the assistant: only the calls it misses, or every call. */
export type ForwardingMode = 'forward_conditional' | 'forward_all'
export type GuideKind = 'mobile' | 'landline' | 'phone_system'
@@ -67,6 +69,16 @@ export type SettingsGuide = GuideBase & {
modes: Partial<Record<ForwardingMode, SettingSteps>>
/** Where to see whether it is on. */
check?: string
+ /**
+ * Phone systems: the page where the setting is (the admin portal or the web settings), opened in a new tab next to
+ * the steps; `label` is a catalog key (server.forwardingGuides.*).
+ */
+ portal?: { url: string; label: MessageKey }
+ /**
+ * Phone systems: how to do the same for the main number, a call queue or an auto receptionist, in a sentence: a
+ * catalog key with `{number}` for the assistant's number.
+ */
+ mainNumber?: MessageKey
}
export type ForwardingGuide = DialGuide | SettingsGuide
diff --git a/packages/i18n/locales/en/onboarding.json b/packages/i18n/locales/en/onboarding.json
index 6f522117..3e311066 100644
--- a/packages/i18n/locales/en/onboarding.json
+++ b/packages/i18n/locales/en/onboarding.json
@@ -383,6 +383,8 @@
"forwarding.dial": "Dial",
"forwarding.dialTitle": "Android: open the phone’s dialer with this code (Enter). On an iPhone, type it instead.",
"forwarding.goodToKnow": "Good to know",
+ "forwarding.groupCarriers": "Carriers",
+ "forwarding.groupSystems": "Phone systems",
"forwarding.guideNetwork": "{kind} · {network} network",
"forwarding.leadDesk": "{count, plural, one {From the desk phone on your number, dial:} other {From the desk phone on your number, dial these one after the other:}}",
"forwarding.leadMobile": "{count, plural, one {Type this code in your business cell phone’s Phone app and press call:} other {Type these codes, one after the other, in your business cell phone’s Phone app and press call:}}",
@@ -392,6 +394,8 @@
"forwarding.offAskCheck": "Ask {carrier} how to turn it off. Check it with <code>{check}</code>.",
"forwarding.offCodes": "Turn it off with <code>{off}</code>.",
"forwarding.offCodesCheck": "Turn it off with <code>{off}</code>. Check it with <code>{check}</code>.",
+ "forwarding.officialHelp": "More in the <link>{system} help center</link>.",
+ "forwarding.openPortal": "Open {portal}",
"forwarding.otherCountry": "Other country",
"forwarding.otherCountryDescription": "Standard codes and phone settings",
"forwarding.qrCaption": "Android: scan with the phone’s camera to dial {code}. iPhone blocks forwarding links: type the code in the Phone app.",
@@ -401,6 +405,9 @@
"forwarding.showQr": "Show QR",
"forwarding.showQrTitle": "Show this code as the QR code (Enter)",
"forwarding.source": "Source: {links}",
+ "forwarding.systemModes": "{modes, select, both {Missed calls or every call} all {Every call only} other {Missed calls only}}",
+ "forwarding.systemOtherMode": "{system} can forward {mode, select, all {every call, but not only the calls you miss} other {the calls you miss, but not every call}}. To use it, set your number to forward {mode, select, all {every call} other {calls you miss}}.",
+ "forwarding.thenTest": "Then test forwarding: “Check forwarding” calls your number and watches for the forwarded call, the same as with a cell phone.",
"forwardingCheck.answered": "The call was picked up before it was forwarded.",
"forwardingCheck.answeredNext": "Probably your voicemail. Turn off Live Voicemail and call screening on your phone, or set a shorter ring time, then check again. Don’t answer the test call.",
"forwardingCheck.busy": "Your line was busy.",
diff --git a/packages/i18n/locales/en/server.json b/packages/i18n/locales/en/server.json
index 8c7fcad5..20a38a51 100644
--- a/packages/i18n/locales/en/server.json
+++ b/packages/i18n/locales/en/server.json
@@ -381,6 +381,16 @@
"api.workspaceDisabled": "this workspace is disabled",
"api.workspaceOfDisabled": "the workspace of {label} is disabled",
"assistant.defaultTransferName": "Owner",
+ "forwardingGuides.dialpad.mainNumber": "The main line: Admin Settings › Office › Main Line › Business Hours & Call Handling › Edit Call Routing › Fallback Options › “To another team member, room phone or external number” › {number}, for open and closed hours; Dialpad support turns outside numbers on first.",
+ "forwardingGuides.dialpad.portal": "Dialpad settings",
+ "forwardingGuides.quo.mainNumber": "Every Quo number has its own call flow, the main number too: the same steps there; in a phone menu, an option can forward to {number} as well.",
+ "forwardingGuides.quo.portal": "Quo",
+ "forwardingGuides.ringcentral.mainNumber": "A call queue: Admin Portal › Phone System › Groups › Call Queues › the queue › Call Handling & Members › Wait settings: “When members are available, but no members answer…” › Forward to External number › {number}; the After hours tab has the same.",
+ "forwardingGuides.ringcentral.portal": "RingCentral Admin Portal",
+ "forwardingGuides.teamsPhone.mainNumber": "A call queue or auto attendant: Teams admin center › Voice › Call queues › the queue › Call timeout handling (and Overflow, No agents) › Redirect call › External phone number › {number}; an auto attendant’s business-hours and after-hours call flows have the same.",
+ "forwardingGuides.teamsPhone.portal": "Teams admin center",
+ "forwardingGuides.zoomPhone.mainNumber": "A call queue or auto receptionist: Admin Center › Phone system › Call Queues (or Auto Receptionists) › the one › Overflow (or Call Handling) › Route to: Phone Number › {number}.",
+ "forwardingGuides.zoomPhone.portal": "Zoom Phone settings",
"input.billing.amountNotZero": "an amount other than 0",
"input.billing.creditAdds": "a credit or write-off adds to the balance",
"input.billing.onlyAdjustmentCorrects": "only an adjustment corrects an entry",