vicidial => vapi
# support
m
How to make call from vicidial to vapi with sip trunk ? step by step plz
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
To connect Vicidial to Vapi via SIP trunk, first create a SIP trunk credential in Vapi using the API. Here’s an example:
Copy code
bash
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Vicidial Trunk",
    "gateways": [{ "ip": "YOUR_VICIDIAL_SIP_IP", "inboundEnabled": false }],
    "outboundLeadingPlusEnabled": true,
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Use the returned credential details in your Vicidial SIP trunk settings to route calls to Vapi. For full steps and network requirements, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk). Source: - [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk)
m
where in can copy that code curl -X POST "https://api.vapi.ai/credential" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \ -d '{ "provider": "byo-sip-trunk", "name": "Vicidial Trunk", "gateways": [{ "ip": "YOUR_VICIDIAL_SIP_IP", "inboundEnabled": false }], "outboundLeadingPlusEnabled": true, "outboundAuthenticationPlan": { "authUsername": "YOUR_SIP_USERNAME", "authPassword": "YOUR_SIP_PASSWORD" } }'
can some one help me ?
c
Hi, you can setup SIP trunking by following this docs: https://docs.vapi.ai/advanced/sip/sip-trunk if you are facing any issues, please let me know.
m
where in can past this code in vicidial curl -X POST "https://api.vapi.ai/credential" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \ -d '{ "provider": "byo-sip-trunk", "name": "Vicidial Trunk", "gateways": [{ "ip": "YOUR_VICIDIAL_SIP_IP", "inboundEnabled": false }], "outboundLeadingPlusEnabled": true, "outboundAuthenticationPlan": { "authUsername": "YOUR_SIP_USERNAME", "authPassword": "YOUR_SIP_PASSWORD" } }'
c
Hi, That code is meant to be ran on your system, not on your SIP provider. For detailed tutorial, please follow this video

https://youtu.be/_wo5wokt3dI

This video is for integrating with Twillio, but the same method applies for any SIP provider as well.