provider) or from your own SIP infrastructure through an inbound SIP trunk (sip_trunk_id), never both. To place outbound calls through your own SIP provider, assign the number one or more outbound SIP trunks.
Every request below uses your organization API key. See Authentication.
Creating, changing, activating and deleting numbers and trunks changes what live calls do, so it needs the publish permission. Organization API keys have it. Which agent answers an inbound number is set in Clarity, under the number’s routing.
Take calls from your SIP trunk
1
Create the inbound trunk
List the IP ranges your SIP infrastructure sends calls from. The trunk starts
inactive.2
Bind a number to it
e164 is the number in E.164 form as digits, with no +.3
Activate the trunk
Activation needs at least one bound number and answers Numbers you add to an active trunk later take calls straight away.
409 otherwise. It is safe to repeat: on an active trunk it repairs the call routing and changes nothing else.delete_numbers=true.
Call out through your SIP provider
Create an outbound trunk, then list it on the number withoutbound_trunk_ids. The first trunk is the primary and up to four more are fallbacks. The number needs voice_outbound: true.
has_secret instead. Leave password out of an update to keep the stored one.
Outbound calls themselves are placed with dispatch a call or a campaign.