Sip Trunking issue
# support
v
@Mustafa-88 It sounds like there may be a misunderstanding between the expected format of the SIP address you're using and what your phone provider requires. SIP addresses can indeed come in different formats, and it's important to use the correct format that your provider supports. The format "sip:custom_name@sip.vapi.ai" is a standard SIP URI (Uniform Resource Identifier), where "custom_name" is typically the username or phone number, and "sip.vapi.ai" is the domain of the SIP server. On the other hand, "custom_name.sip.vapi.ai" seems to be a domain-based format that your provider expects, which might be specific to their system. To resolve this issue, you should: 1. Confirm with your phone provider the exact format they require for the SIP address. 2. Once you have the correct format, update your SIP settings accordingly. 3. If your provider's format is indeed "custom_name.sip.vapi.ai", you may need to adjust your configuration to match this format. If you're unsure how to make these changes or if you need further assistance with the configuration, please provide me with more details about your setup or ask your phone provider for the specific instructions on how to format the SIP address for their system. If there's a technical detail or a specific setting you need help with, I'm here to assist you further.
You can continue this conversation by mentioning me in the message.
m
>curl --location "https://api.vapi.ai/phone-number" --header "Authorization: Bearer API KEY "Content-Type: application/json" --data-raw "{\"provider\": \"vapi\", \"sipUri\": \"sip:custom_name@sip.vapi.ai\", \"assistantId\": \"ASISTANT ID"}" I used a curl request above with the API key from vapi and with the asistant ID. But now you said, I can adjust the sip URi part what should I type there? instead of "sipUri\": \"custom_name.sip.vapi.ai\", do i type "sipUri\": \"sip:custom_name@sip.vapi.ai\" is this all I need to do?
v
@Mustafa-88 Based on the information from your phone provider, it seems they expect the SIP address in a different format than the standard SIP URI. If they require the format without the "sip:" protocol identifier and "@" symbol, you should adjust the
sipUri
parameter in your cURL request accordingly. Here's how you can modify your cURL request:
Copy code
bash
curl --location "https://api.vapi.ai/phone-number" \
--header "Authorization: Bearer API_KEY" \
--header "Content-Type: application/json" \
--data-raw "{\"provider\": \"vapi\", \"sipUri\": \"custom_name.sip.vapi.ai\", \"assistantId\": \"ASSISTANT_ID\"}"
Make sure to replace
API_KEY
with your actual API key and
ASSISTANT_ID
with the actual assistant ID. Also, replace
custom_name
with the username or identifier provided by your phone provider. This change reflects the format that your phone provider seems to expect. If you're unsure whether this is correct, please confirm with them before making the change. If they provide you with a specific format, you should use that exact format in the
sipUri
parameter.
m
soo you say if I change "sip:custom_name@sip.vapi.ai" to "custom_name.sip.vapi.ai" it will still work? VAPI does support this as well?
v
@Mustafa-88 I apologize for any confusion. VAPI typically uses the standard SIP URI format, which includes the "sip:" protocol identifier followed by the user identifier and the "@" symbol before the domain. The correct format for SIP URIs with VAPI is usually "sip:custom_name@sip.vapi.ai". If your phone provider is suggesting a different format like "custom_name.sip.vapi.ai", this might be specific to their system and not necessarily compatible with VAPI's expected format. It's important to clarify this with your phone provider to ensure that the SIP address you use is compatible with both VAPI and your provider's systems. To maintain compatibility with VAPI, you should use the standard SIP URI format in your cURL request:
Copy code
bash
curl --location "https://api.vapi.ai/phone-number" \
--header "Authorization: Bearer API_KEY" \
--header "Content-Type: application/json" \
--data-raw "{\"provider\": \"vapi\", \"sipUri\": \"sip:custom_name@sip.vapi.ai\", \"assistantId\": \"ASSISTANT_ID\"}"
Please confirm with your phone provider if they can support the standard SIP URI format. If they require a different format, you may need to work with them to find a compatible solution that works with both systems. If there's any further assistance you need regarding the configuration, please let me know, and I'll be happy to help.
m
I NEED HUMAN SUPPORT.
s
@Mustafa-88 add description to your ticket and then tag me.
4 Views