@dialstack/sdk / react / stripToDialString
Function: stripToDialString()
function stripToDialString(value): string;
Defined in: sdk/src/react/softphone/core/view-model.ts:177
Strip display separators (spaces, parens, dashes, dots) and cap length, keeping only what the server accepts: digits, +, * and #, DTMF A–D. Does NOT canonicalize to E.164 — use it per-keystroke so typing stays natural, and the result is always within the server allowlist (or empty).
Parameters
value
string
Returns
string