#SIP Configuration
# support
m
@Shubham Bajaj looking for help on where to use the curl or patch instructions for using alternative #SIP provider, can you possible add another DID (phone number) provider under the provider credentials? @User https://cdn.discordapp.com/attachments/1334207101970677771/1334207102608085053/Clipboard02.png?ex=679bb0b1&is=679a5f31&hm=1d9825f581fd9276a99707a6adfcb8d53889eabd29751384f3a27967685fa7d1&
a
HeyDiesel Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
You can continue this conversation by mentioning me in the message.
@Mike Certainly! To use an alternative SIP provider or add another DID (Direct Inward Dialing) provider under the provider credentials, you would typically need to configure the settings within your VAPI account or through the API, depending on the capabilities provided by VAPI. If VAPI supports adding alternative SIP providers through API calls, you would use the relevant API endpoint and method (such as POST or PATCH) to update your provider settings. This would involve sending a request with the necessary credentials and configuration details for the new SIP provider. However, since I don't have access to the specific API documentation or the capability to execute such changes directly, I would recommend checking the VAPI documentation for instructions on how to add or configure SIP providers. Look for sections related to SIP configuration, provider settings, or similar topics. If you need to execute a cURL command to make these changes, it would look something like this (this is a hypothetical example):
Copy code
bash
curl -X PATCH 'https://api.vapi.com/provider-settings' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-d '{
  "new_provider": {
    "name": "New SIP Provider",
    "credentials": {
      "username": "new_provider_username",
      "password": "new_provider_password"
    },
    "sip_server": "sip.newprovider.com"
  }
}'
Please replace
https://api.vapi.com/provider-settings
,
YOUR_API_TOKEN
, and the provider details with the actual values. If you need further assistance with this process or if you're unsure about the correct API endpoint or method to use, please ask support for more info on this. They will be able to provide you with the specific steps and guidance for your VAPI account.
m
@Vapi where does the cURL command get inserted into vapi?
v
@Mike The cURL command is a way to interact with APIs directly from your command line or terminal and is not inserted into VAPI itself. Instead, you use cURL to send HTTP requests to the VAPI server from your local machine or a server where you have cURL installed. Here's a step-by-step guide on how to use a cURL command with VAPI: 1. Open your command line interface (CLI): - On Windows, you can use Command Prompt or PowerShell. - On macOS or Linux, you can use the Terminal. 2. Prepare your cURL command: - Ensure you have the correct API endpoint URL provided by VAPI. - Include any necessary headers, such as
Content-Type
and
Authorization
. - Add the data payload if you're sending a POST or PATCH request. 3. Execute the cURL command: - Copy the prepared cURL command. - Paste it into your CLI. - Press Enter to execute the command. The server response will be displayed in your CLI after the command is executed. If you're adding a new SIP provider or updating settings, make sure to replace placeholder values in the cURL command with actual data required by VAPI. If you're unsure about the API endpoint or the data you need to include in your cURL command, please refer to the VAPI documentation or contact their support team for assistance.
m
@Vapi do you know the https://api.vapi.com/provider-settings to use for voip.ms
v
@Mike Please ask support for more info on this.
m
@Vapi is "https://api.vapi.com/provider-settings" the actual url to use for the curl command?
v
@Mike I apologize for any confusion earlier. The URL "https://api.vapi.com/provider-settings" was provided as a hypothetical example and may not be the actual URL you need to use for VAPI. To find the correct API endpoint for configuring a SIP provider like voip.ms, you should refer to the official VAPI documentation or contact their support team for the accurate endpoint and instructions. If you have access to the documentation, look for sections related to SIP provider configuration or API endpoints for managing DID providers. If you cannot find this information or if you're unsure, the support team will be able to guide you to the correct resources and provide the exact API endpoint you need to use.
m
@Shubham Bajaj please help ... 🤣
s
@Mike Please refer to the following guides that demonstrate how to establish a connection with your SIP provider. **Note**: While these guides use Twilio as an example, the process remains consistent across other telephony providers. https://vapi.notion.site/SIP-104008c8393f80feaeb7de8ca19565ed
@Mike If you have already gone through these docs, and if your doing outbound call then please share the call ID else share the PCAP file (you can get this from your SIP provider) so I can take a look what's going wrong for you!!
@Mike Because of no response closing this ticket.
m
@Shubham Bajaj sorry this i still need help ... i've followed the instructions for the curl ... all my credentials are from voip.ms ... except not sure which server to list int he curl instructions
s
@Mike can you join office hours today, will be easily resolved over there. https://discord.gg/8xsMTjEp?event=1335330727780286597
m
will do ...
okay, we have the DID 51e76e35-f66f-470c-b302-9e5339bb90b6 in my vapi account, recent test calls include 28148d97-202a-46dc-a55f-2cb76c6d50eb .... also, I do not have the details where i can point my incoming calls to connect to the DID listed above ....
s
@Mike Checking if this is resolved for you?
m
Not yet, we are still working on it ... Would be great to have a tool to setup instead of injecting code. Is there a status available where we can see what we are missing
s
@Mike can you share the recent call ID? If it's an inbound then please share the PCAP file as well which you will get from your SIP Provider.
m
@Shubham Bajaj sorry its been a while since i worked on this ... curious if there is any new process or documentation to bring a DID into vapi to be shown at my outbound DID (display number) ...
p
Hey Diesel, you can set your caller ID to be the phone number which you got into the VAPI. I mean the phone number itself as caller ID when you create calls and/or transfer calls. Give it a try and let me know how it goes!
2 Views