Issue when I add forwardingPhoneNumbers
# support
m
I use
assistant-request
to setup my assistant through API. I've added forwardedPhoneNumbers to it. Since then all my phone calls end in error with
unknown-error
Copy code
An error occurred in this call: unknown-error
Maybe it's due to a wrong response format on my assistant payload? But don't know how to debut it. Example of callId:
40ad7ba1-8588-42f5-8acf-bb98822c8fef
Do you have more info on your side? Thanks https://cdn.discordapp.com/attachments/1245748513371852932/1245748513531367455/Screenshot_from_2024-05-30_16-38-53.png?ex=6659e136&is=66588fb6&hm=6bf217043ecbb7d65e39185bb85b385cd93118e0ccc62f3007a6bdb28af7a317&
v
Hi @marem, 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**: * [Create Phone Call]() * [Call Forwarding]() * [Get Call]() * [List Calls]() -----------------------------
### Answer The issue you're encountering with
unknown-error
following the addition of
forwardedPhoneNumbers
might indeed stem from how the forwarding numbers are handled or set up in your assistant configuration. This error can be linked to various factors, including misconfigurations or unexpected input handling by the assistant. If the configuration of
forwardedPhoneNumbers
or the response format from your server is not correct, it might lead to such errors [(1)]() . To debug this, you can ensure that: 1. The phone numbers in
forwardedPhoneNumbers
are correctly formatted in E.164 format. This is crucial as incorrect number format can cause the API to reject the setup or malfunction [(2)]() . 2. Your server handling the
assistant-request
might need to properly parse and utilize the
forwardedPhoneNumbers
. If the server sends an incorrect response or fails to handle the incoming data correctly, it could result in an
unknown-error
. 3. Check the server logs associated with the call ID
40ad7ba1-8588-42f5-8acf-bb98822c8fef
for any additional errors or warnings that could provide more insights. This can help in identifying if there's a specific step or process where the error is triggered. If the issue persists, reviewing the exact payload and response involved in these calls can help in pinpointing the exact cause. Make sure that your implementation aligns with the guidelines provided in the Vapi documentation regarding call forwarding and error handling , [(1)]() . If you need further assistance with the specific details of the error, you might consider directly examining the detailed logs or error messages if available from the Vapi dashboard or API responses.
s
Nope, we don't have it. Can you send me the payload that you are sending back?
m
Sorry, I'm not able to reproduce and forwarding is working fine now 😅 So I don't know what caused the issue. It happened when I added the forwardingPhoneNumbers and 2 calls felt with
unknown-error
ended reason. Then I deleted the forwarding config. Now I reapplied it and it works fine.
v
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
m
I mark it as resolved. Will add some logs and reopen the issue if it occurs again
s
Sure.
9 Views