Connect Telnyx with Vapi
# support
v
To set up call forwarding in Vapi, use the
transferCall
tool with your destinations. Here’s a sample configuration for forwarding to your phone and then to your agent if unavailable:
Copy code
json
{
  "tools": [
    {
      "type": "transferCall",
      "destinations": [
        {
          "type": "number",
          "number": "+1234567890",
          "message": "Forwarding your call to your phone."
        },
        {
          "type": "assistant",
          "assistantName": "Agent Assistant",
          "message": "Connecting you to the agent."
        }
      ]
    }
  ]
}
Note: If Telnyx's portal no longer accepts SIP URIs with punctuation, you may need to contact Telnyx support for an updated integration method. Reference: [Vapi Call Forwarding Guide](https://docs.vapi.ai/call-forwarding) Sources: - [Vapi Call Forwarding Guide](https://docs.vapi.ai/call-forwarding) - [Vapi SIP Trunking with Telnyx](https://docs.vapi.ai/advanced/sip/telnyx)
v
Use a Voice API Application not SIP Trunk to set your full webhook URL, enable Park-Outbound Calls, and handle call logic via Telnyx Voice API in your webhook. SIP settings don’t support full URLs with punctuation..
f
It works to forward the call to my number, but no to the agent
v
It works to forward the call to your number because it's a simple dial, but fails for the agent because you need to handle the parked call via your webhook, initiate a SIP call to the agent, and bridge the two calls using the Telnyx Voice API..
f
Sorry to bother you, but is there any documentation about that? I don’t see any function called 'park-outbound calls' nor did I find information on how to create the bridge, and I got the following code from ChatGPT, but I've never been able to get anything working from ChatGPT:
v
Enable “Park Outbound Calls” in your SIP connection settings, use the
/v2/calls
API to dial agents with
client_state
, handle webhooks like
call.initiated
and
call.answered
, then use the
/actions/bridge
API to connect the parked call to the agent..
2 Views