Skip to main content

@dialstack/sdk / react / DIAL_COUNTRY

Variable: DIAL_COUNTRY

const DIAL_COUNTRY: CountryCode = 'US';

Defined in: sdk/src/react/softphone/core/view-model.ts:169

The country used to canonicalize a national dial string to E.164. Softphone calling is US-only today; this is the single, deliberately-fixed seam for that. It is intentionally NOT wired to the public formatting.defaultCountry (which governs display only) — dialing under a different country than the number was entered in produces wrong/undialable destinations. When calling goes multi-region, thread a real country through sanitizeDestination from here.