Skip to main content
A Domain is a SIP domain, such as sip.local, that groups Agents and holds the egress policies that let them call the PSTN.

Fields

The API response also includes accessControlList and, in each egress policy, number: the objects the refs point to.

Constraints

  • name is required and must be 1 to 60 characters.
  • domainUri must be a valid FQDN, up to 255 characters, and unique across Domains in pgdata.
  • When an Agent dials a number that isn’t another Agent, Connect tests the egress policies in order and uses the first whose rule matches. If none match, the call fails.
  • An egress policy’s Number must have a trunkRef.
  • Deleting a Domain deletes its egress policies. Agents that pointed to it keep existing with no Domain.
In YAML, accessControlListRef goes directly under spec, not under spec.context. The loader reads spec.accessControlListRef.
The Connect processor does not check a Domain’s ACL when it routes calls. The only ACL it enforces is the one on a Trunk, for calls from the PSTN.

YAML example

The following Domain sends every outbound call through Number number-01.

rctl equivalent

Run the interactive create command and answer the prompts. The egress rule prompts appear only when at least one Number exists.
See rctl domains for the prompts and the other actions.

SDK equivalent

The following call creates the same Domain through the API.