Skip to content

Add from_name (caller ID name) to SWML connect#363

Open
Devon-White wants to merge 1 commit into
mainfrom
Devon/swml-connect-from-name
Open

Add from_name (caller ID name) to SWML connect#363
Devon-White wants to merge 1 commit into
mainfrom
Devon/swml-connect-from-name

Conversation

@Devon-White
Copy link
Copy Markdown
Collaborator

Summary

Adds a from_name property to the SWML connect method, letting you set the caller ID name (CNAM) shown alongside the from number on outbound SIP legs. No effect on calls to phone numbers.

Because every serial / parallel / serial_parallel device is a ConnectDeviceSingle that inherits ConnectDeviceBase, adding from_name once gives it both at the top level and per-destination — the top-level value is inherited by each destination unless that destination sets its own from_name.

Changes

  • Schema — add from_name?: string to ConnectDeviceBase in specs/swml/calling/Methods/connect/main.tsp; regenerate the JSON schema (tsp compile).
  • Docs — document from_name at the top level and per-destination in the connect reference page, with a focused YAML+JSON example showing top-level inheritance plus one per-device override. Descriptions written in plain, customer-facing language.

Scope note — REST "dial" not included (intentional)

The REST Create Call ("dial") endpoint is a separate, Rails-validated model that does not reuse ConnectDeviceBase. Its request contract (call/contracts/create.rb) whitelists only from and caller_id for caller identity — there is no caller-ID-name parameter, and unknown keys are silently dropped. Adding from_name to the REST spec would document unsupported API surface, so the REST spec is correctly left unchanged. Enabling CNAM on REST Create Call would require a backend change first.

Verification

  • tsp compile succeeds; from_name emitted in all four Connect device defs in the generated JSON schema.
  • fern check — 0 errors.

Add a from_name property to ConnectDeviceBase so the caller ID name (CNAM)
can be set on outbound SIP legs in the SWML connect method. Because every
serial/parallel/serial_parallel device is a ConnectDeviceSingle that inherits
ConnectDeviceBase, from_name is available at the top level and per-device:
the top-level value is inherited by each destination unless overridden.

Applies to SIP calls only; no effect on calls to phone numbers.

- specs: add from_name to ConnectDeviceBase, regenerate JSON schema
- docs: document from_name at top level and per-destination, add an
  inheritance/override example
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant