Fields
The API response also includes
trunk, the object that trunkRef points to.
Constraints
nameis required and must be 1 to 60 characters.telUrlmust start withtel:. In pgdata it must be unique and up to 60 characters.- When the API server runs with
ENFORCE_E164=true,telUrlmust be a valid E.164 number forcountryIsoCode.ENFORCE_E164_WITH_MOBILE_PREFIX=truealso validates the mobile prefix. aorLinkmust start withsip:orbackend:.sessionAffinityHeaderand eachextraHeaders[].namemay contain only letters, digits, and dashes, and can’t end with a dash. EachextraHeaders[].valuemust be non-empty.- In YAML,
metadata.geoInfomust be present. The loader reads it for every Number. - When
extended.accessKeyIdis set, a Peer can use this Number forpeer-to-pstncalls only if its request carries the same value inX-Access-Key-Id.
How Connect uses a Number
from-pstn: a call from the Trunk totelUrlgoes to the endpoints registered underaorLink, withextraHeadersadded.agent-to-pstn: a Domain egress policy selects the Number. Its Trunk carries the call, and itstelUrlbecomes the caller ID inP-Asserted-IdentityandRemote-Party-ID.peer-to-pstn: the Peer names the Number in theX-DOD-Numberheader, as thetelUrlwithouttel:.
YAML example
The following Number routes calls to a Peer and keeps calls with the sameX-Room-Id on one instance.
rctl equivalent
Run the interactive create command and answer the prompts. Enter extra headers as comma-separatedName:value pairs.
rctl numbers for the prompts and the other actions.