Problem with serverUrl in Phone.
# support
s
HI, If I set the serverUrl for the whole organization, it works fine and calls are routed to my server. However, if I set the Phone-based ServerUrl (The same one I set for org). It never sends calls to my server. This is for inbound calls specifically. Any thoughts?
v
Hi @Shahzad, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [List Phone Numbers]() * [Import Vonage Number]() * [Function Calling]() * [Get Phone Number]() -----------------------------
### Answer It sounds like there might be an issue with the precedence of server URL settings in your configuration. When you set server URLs for different levels (organization-wide, assistant-specific, phone number-specific), Vapi has a defined precedence order which determines which URL is used for incoming requests. According to Vapi's documentation, the order of precedence from highest to lowest is: 1. Function-specific server URL 2. Assistant-specific server URL 3. Phone number-specific server URL 4. Organization-wide server URL Since you mentioned that setting the organization-wide server URL works, but the phone-specific does not, it's possible that another setting at a higher precedence level (like an assistant-specific server URL) might be overriding your phone-specific setting. To resolve this, ensure that no higher precedence server URLs are set that could be overriding your phone-specific URL. Also, double-check the server URL settings at the phone number level to make sure they are correctly configured and there are no errors in the URL itself [(1)]() . If you continue to face issues, reviewing your configuration for any other overriding settings at different levels might be necessary.
s
I tested it by removing the serverUrl at organization level and it didn't work.
v
Got it. Tagging @User for additional help.
s
Can you send me your phone_id so that I can check whether your serverURL was added correctly or not
c
It is not supposed the same webhook.
s
298ad005-b1d0-463b-a71f-3d47e3ed5d8f
@Sahil any thoughts?
s
@Shahzad Can you ping me on monday?
s
Good day @Sahil . I got it resovled. I am not sure if this was vapi issue or something else but now I am able to set the serverUrl for each phone number separately. One thing though, if you can check, If I send the serverUrl while adding the phone number, it doesn't add. But if I send it while updating the same phone number, it works.
s
Can you send me a loom video for it?
s
Will do