Vapi#

Use Vapi assistants with DIDWW SIP Trunking to handle inbound and outbound calling over standard phone lines. Connect your DIDWW SIP trunks with Vapi to route incoming calls to assistants, place outbound calls through DIDWW trunks, and manage voice conversations using your existing DIDWW phone numbers.

  • Route incoming calls from DIDWW numbers to Vapi assistants.

  • Connect callers to AI assistants for real-time conversations.

  • Import existing DIDWW numbers into Vapi.

  • Place outbound calls through DIDWW Outbound Trunks.

  • Transfer active calls to external phone numbers through DIDWW.

  • Assign Vapi assistants to individual DIDWW phone numbers.


1. Route Incoming Calls to Vapi#

Configure an Inbound SIP Trunk in the DIDWW User Panel to send incoming calls from your DIDWW numbers to Vapi. This trunk defines the SIP path that delivers calls to your Vapi assistant and can be configured to support SIP REFER call transfers.

Before You Begin#

At least one active DID number with capacity to receive incoming calls is required. Buy Numbers .

Step 1: Create New SIP Trunk#

  1. In the DIDWW User Panel , go to Voice > Inbound Trunks.

  2. Click Create New > SIP Trunk.

Creating a new inbound SIP trunk

Fig. 5. Creating a new inbound SIP trunk#

Step 2: Configure General SIP Trunk Settings#

In the Create Inbound SIP Trunk form, enter the main requirements to route calls to Vapi.

  1. Enter a descriptive Friendly Name for the trunk (e.g., Vapi).

  2. Enter the Host value sip.vapi.ai.

  3. Select Transport Protocol Type and Port for SIP signaling: TCP/UDP (Port 5060) or TLS (Port 5061), based on the transport you plan to use with Vapi.

  4. Set Network protocol to match the IP version used by your DIDWW outbound trunk. If you allowed IPv4 addresses in the outbound trunk, use Prefer IPv4 over IPv6 or IPv4 only.

SIP trunk configured for Vapi

Fig. 6. SIP trunk configured for Vapi#

Step 3: Add Outbound Credentials to the Inbound Trunk#

To support call transfers, the DIDWW inbound trunk must authenticate SIP REFER requests with the same credentials used by the DIDWW outbound trunk.

  1. Expand Authentication.

  2. Enable Authorization toggle.

  3. In Auth user paste the outbound trunk Username.

  4. In Auth password paste the outbound trunk Password.

Add outbound credentials to the inbound trunk

Fig. 7. Add outbound credentials to the inbound trunk#

Step 4: Enable Call Transfer Signaling#

To support call transfers, configure the inbound trunk to allow in-dialog SIP REFER requests.

  1. Expand Advanced Signaling Settings.

  2. Set Max transfers value to 1 or higher.

Enable Call Transfer Signaling

Fig. 8. Enable Call Transfer Signaling#

Step 5: Save the Inbound SIP Trunk#

When all required fields in the Create Inbound SIP Trunk are filled, click Create to save your inbound SIP trunk.

Note

For advanced SIP trunk configuration, see Advanced Inbound SIP Trunk documentation.

Inbound SIP trunk created

Fig. 9. Create the Inbound SIP Trunk#

Step 6: Assign Inbound SIP Trunk to Your DID Numbers#

After creating the Inbound SIP Trunk for Vapi, assign it to the DID number(s) that will deliver incoming calls to your Vapi assistant.

  1. In the DIDWW User Panel, go to Phone Numbers > My Numbers.

  2. Select the DID number(s) you want to assign to the inbound SIP trunk.

  3. At the bottom of the page, click Batch Actions > Update Trunks.

Assigning a SIP trunk to DID numbers

Fig. 10. Selecting Update Trunks from the Batch Actions menu#

  1. From the dropdown menu, choose the Vapi SIP trunk you created earlier.

  2. Click Confirm to apply the changes.

Assigning a SIP trunk to DID numbers

Fig. 11. Assigning the Vapi SIP trunk to the selected DID(s)#



2. Enable Outbound Calling from Vapi Through DIDWW#

Configure an Outbound SIP Trunk in the DIDWW User Panel to allow Vapi assistants to place outbound calls through DIDWW. This trunk also provides the SIP credentials required for authenticated SIP REFER call transfers to external phone numbers.

Before You Begin#

Step 1: Create New Outbound Voice Trunk#

  1. In the DIDWW User Panel , go to Voice > Outbound Trunks.

  2. Click Create New.

Creating a new outbound SIP trunk

Fig. 1. Creating a new outbound SIP trunk#

Step 2: Configure Authentication#

  1. Update the Friendly Name (e.g., Vapi).

  2. Keep the default Credentials & IP-based authentication method selected. The SIP digest credentials (username and password) will be provided after the trunk is created.

  3. In Allowed SIP IP addresses, enter the public SIP signaling IP addresses for your Vapi region:

    • US: 44.229.228.186/32 and 44.238.177.138/32

    • EU: 44.233.34.47/32 and 44.233.34.48/32

    Then add the DIDWW inbound SIP addresses used for call transfers:

    • New York: 46.19.209.14

    • Frankfurt: 46.19.210.14

    • Los Angeles: 46.19.212.14

    • Miami: 46.19.213.14

    • Singapore: 46.19.214.14

    • Hong Kong: 46.19.215.14

    • Amsterdam: 185.238.173.14

Note

Vapi SIP signaling IP addresses depend on the region where your Vapi organization is hosted and may change. Refer to the official Vapi documentation for the most up-to-date information: Vapi SIP Networking and Firewall Configuration

Warning

You can allow all traffic by adding 0.0.0.0/0, which removes all IP restrictions.
Although SIP Digest Authentication will still verify requests using valid credentials, this setup is not recommended.
Restrict access to known Vapi SIP signaling IPs whenever possible.

Configuring allowed SIP IP addresses for outbound trunk authentication

Fig. 2. Entering allowed SIP IP addresses for outbound authentication#

Step 3: Save the Outbound SIP Trunk#

When all required fields in the Create Outbound SIP Trunk are filled, click Create to save your outbound SIP trunk.

Note

For advanced outbound SIP trunk configuration, see Outbound SIP Trunk Guide.

Outbound SIP trunk created

Fig. 3. Outbound SIP trunk created and ready for use#

Step 4: Copy Outbound Trunk Credentials#

When the outbound trunk is created, you can view its credentials by selecting the key icon in the Credentials column on the Outbound Trunks page.

  1. Go to Voice > Outbound Trunks.

  2. Locate your outbound trunk and click the key icon in the Credentials column.

  3. The trunk credentials will appear, showing the Username and Password (click the eye icon to reveal the password).

  4. Copy and securely store these credentials. You will need them later when configuring Vapi in Step 1: Create Outbound Trunk and Step 2: Create Inbound Trunk.

Accessing outbound trunk credentials

Fig. 4. Opening the outbound trunk credentials view#



3. Connect DIDWW SIP Trunks in Vapi#

Connect the DIDWW SIP trunks in Vapi so your assistant can receive incoming calls, place outbound calls, transfer active calls, and use your DIDWW phone numbers. This setup adds the required SIP trunk credentials, enables call transfer tooling, and links your DIDWW phone numbers to a Vapi assistant.

Before You Begin#

  • An active Vapi account is required. Sign in to Vapi or create an account if needed.

  • A configured Vapi assistant is required. See the Vapi Quickstart Guide for guidance on creating an assistant.

Step 1: Create Outbound Trunk#

Create a Vapi outbound SIP trunk credential that uses DIDWW as the SIP provider.

  1. In Vapi, open the Integrations menu.

  2. Locate Phone Number Providers and open SIP Trunk integrations.

Opening the SIP Trunk provider in Vapi integrations

Fig. 12. Opening the SIP Trunk provider in Vapi#

  1. Click Configure New SIP Trunk.

Starting a new SIP trunk configuration in Vapi

Fig. 13. Starting a new SIP trunk configuration in Vapi#

  1. Enter a friendly Name (e.g., DIDWW Outbound Trunk).

  2. In IP Address / Domain, enter any of the DIDWW outbound signaling endpoints (e.g., fra.eu.out.didww.com).

  3. Configure the transport protocol and port. Use 5060 for UDP/TCP or 5061 for TLS.

  4. Uncheck Allow inbound calls, leaving only Allow outbound calls selected.

Configuring DIDWW gateway settings for the Vapi outbound trunk

Fig. 14. Configuring DIDWW gateway settings#

  1. In Authentication, enter the Username and Password copied from Step 4: View Outbound Trunk Credentials.

  2. Click Save SIP Trunk.

Configuring authentication for the Vapi outbound trunk

Fig. 15. Configuring outbound trunk authentication#

Step 2: Create Inbound Trunk#

Create the Vapi inbound trunk that will accept calls from DIDWW. Because Vapi allows only one allowed IP address per gateway, create one gateway for each required DIDWW SIP signaling IP.

  1. In Vapi, open the SIP Trunk integration and click Configure New SIP Trunk.

Starting an inbound SIP trunk configuration in Vapi

Fig. 16. Starting an inbound SIP trunk configuration in Vapi#

  1. Enter a friendly Name (e.g., DIDWW Inbound Trunk).

  2. In the gateway settings, enter one of the DIDWW SIP IPs as the allowed signaling IP for the gateway (e.g., 46.19.209.14).

  3. Configure the transport protocol and port. Use 5060 for UDP/TCP or 5061 for TLS. This must match the transport protocol selected on the DIDWW inbound SIP trunk.

  4. Uncheck Allow outbound calls, leaving only Allow inbound calls selected.

  5. Click Add Another Gateway and repeat steps 3-5 until you have added all DIDWW SIP IPs to the inbound trunk gateways. This is required because Vapi allows only one IP per gateway.

Configuring DIDWW gateway IPs for the Vapi inbound trunk

Fig. 17. Configuring DIDWW gateway IPs for the inbound trunk#

  1. In Authentication, enter the Username and Password copied from Step 4: View Outbound Trunk Credentials.

  2. Click Save SIP Trunk.

Configuring authentication for the Vapi inbound trunk

Fig. 18. Configuring inbound trunk authentication#

Step 3: Create Call Transfer Tool#

Create a call transfer tool in Vapi so the assistant can transfer an active call to a live person through DIDWW.

  1. In Vapi, open the Tools page and click Create Tool and select Transfer Call.

Selecting the Transfer Call tool in Vapi

Fig. 19. Selecting the Transfer Call tool#

  1. Enter a Tool Name (for example, transfer_call_tool).

  2. In Description, enter a short explanation of when the tool should be used, for example: Transfers the active call to a live person through DIDWW when the caller requests human assistance..

  3. Under Destinations, click Add Destination and select SIP.

Configuring the Transfer Call tool settings in Vapi

Fig. 20. Configuring the Transfer Call tool settings#

  1. In SIP URI, enter the SIP URI in the format sip:+E164_NUMBER@OUTBOUND_ENDPOINT, where the phone number is in E.164 format with the + symbol and the outbound endpoint is one of the DIDWW Outbound Trunk Signaling Endpoints, for example sip:+1234567890@fra.eu.out.didww.com.

  2. In Message to Customer, enter the message that should be played before the transfer starts, for example Please wait while I transfer your call.

  3. In the destination Description field, enter when this transfer destination should be used, for example Trigger this tool when a caller asks to be transferred to a live person.

  4. In Transfer Mode, keep the default Blind Transfer mode.

Configuring the SIP destination for the Transfer Call tool in Vapi

Fig. 21. Configuring the SIP destination for the Transfer Call tool#

  1. Click Save to create the call transfer tool.

Step 4: Add Call Transfer Tool to Your Assistant#

Add the transfer tool to the assistant that will handle calls for your DIDWW number.

  1. In Vapi, go to Assistants and open the assistant that will handle your DIDWW calls.

  2. Open the Tools tab and click Add tool.

  3. Select the Transfer Call Tool you created in the previous step.

Adding the transfer tool to a Vapi assistant

Fig. 22. Adding the transfer tool to a Vapi assistant#

  1. Click Publish to apply the assistant changes.

Transfer tool attached to a Vapi assistant

Fig. 23. Transfer tool attached to the assistant#

  1. In the pop-up window, click Publish again to confirm the changes.

Publishing the Vapi assistant after adding the transfer tool

Fig. 24. Publishing the assistant changes#

Step 5: Import DIDWW Phone Numbers#

Import your DIDWW phone number to Vapi and assign it to the assistant that will handle incoming calls.

  1. In Vapi, open the Phone Numbers menu and click Create Phone Number.

Opening the Phone Numbers page in Vapi

Fig. 25. Opening the Phone Numbers page in Vapi#

  1. Select BYO SIP Trunk Number.

  2. In Phone Number, enter your DIDWW number in E.164 format with the + symbol (for example, +18648301018).

  3. Leave Allow non-E164 phone numbers unchecked.

  4. In SIP Trunk Credential, select the Vapi inbound SIP trunk created in Step 2: Create Inbound Trunk.

  5. Optionally, in Label, enter a descriptive name for the number (for example, My DIDWW Phone Number).

  6. Click Import SIP Phone Number.

Importing a BYO SIP trunk number in Vapi

Fig. 26. Importing a BYO SIP trunk number#

  1. In Assistant, select the Vapi assistant that will handle inbound calls.

  2. Click Save to confirm the changes.

Assigning an assistant to an imported phone number in Vapi

Fig. 27. Assigning an assistant to the imported phone number#

After saving, the imported number will appear in the Phone Numbers list and incoming calls to your DIDWW number will be routed to the selected assistant.

Step 6: Test the Configuration#

Verify that inbound calling, outbound calling, and call transfers are working as expected.

  1. Place a test call to your DIDWW DID number to confirm that inbound calls are routed to Vapi and handled by the assigned assistant.

  2. In the Vapi dashboard or API, place a test outbound call through your DIDWW outbound trunk.

  3. Place another test call to your DIDWW DID number and trigger the call transfer condition, for example by asking to speak with a live person.

  4. Confirm that Vapi sends the transfer request and the call is connected to the live-person destination through DIDWW.

Ensure that calls are successfully established in both directions, that the correct assistant handles the interaction, and that transferred calls connect with two-way audio.

Note

You can review call activity and verify call status or error codes in the DIDWW Inbound and Outbound Call Logs. See Inbound Call Logs and Outbound Call Logs for more details.