TurnCall side
Bind a Twilio or Telnyx number to the agent, exactly as in Phone Numbers. On Twilio:"carrier": "telnyx" (external_number_sid is then optional).
Binding points the number at TurnCall when PUBLIC_BASE_URL is set;
webhooks_configured in the response says whether it did.
The number must route to TurnCall, not to your trunk:
- Twilio: a number associated with an Elastic SIP Trunk ignores its voice URL; Twilio sends its calls to the trunk. Binding sets the voice URL but does not take the number off a trunk. Use a number that is on no trunk, or remove it from the trunk (the trunk’s Numbers list in the Twilio Console) before you bind it.
- Telnyx: a number belongs to one connection. Binding moves it onto TurnCall’s Call Control application, so it stops ringing on your SIP Connection. Use a number your phone system does not answer itself.
Carrier side
Your trunk needs to carry calls out of your phone system (termination). If it already dials the public network, there is nothing to change.Twilio
In the Twilio Console, under Elastic SIP Trunking > Trunks, create a trunk and set up Termination:- Termination SIP URI: the address your phone system sends calls to,
<name>.pstn.twilio.com. - Authentication: a Credential List (digest username and password), an IP Access Control List of your phone system’s addresses, or both. Twilio recommends credentials: an IP list alone does not protect against some attacks.
- The dialled number in E.164, with the
+:+15551234567. - A caller ID that is one of your Twilio numbers or a verified caller ID on the account.
Telnyx
In Mission Control, create a SIP Connection:- Authentication: credentials (your phone system authenticates to
sip.telnyx.comwith the connection’s username and password), or your phone system’s IP addresses or FQDN. - An Outbound Voice Profile assigned to the connection. Telnyx requires one for outbound calls.
+, as Telnyx’s own PBX guides do. See
Telnyx’s
SIP trunking
docs for the full setup.
Phone system side
Route a call to the agent by dialling the bound number over the trunk: an outbound route, a speed dial, a queue overflow, or a transfer of a live call. In an Asterisk dialplan, with the trunk endpoint namedtwilio:
What the agent sees
to_numberis the bound number.from_numberis the caller ID your phone system sent on the trunk. On Twilio that is one of your numbers or a verified caller ID, so a caller your phone system forwards arrives with that caller ID, not their own.