Unwanted Call Retries After Rejection
# support
a
Hi Vapi Support, I'm experiencing an issue where, after an outbound AI call is rejected, two additional calls are automatically placed. Details: Integration: Vapi → SIP Trunk Issue: Two extra calls are triggered after rejection I want to confirm whether this behavior is controlled by Vapi or the SIP provider Could you clarify if Vapi has any automatic retry mechanism in this case? How can I prevent these retries? Thanks,
callid: 772ff522-3d1e-46ba-83ba-27f9ddfdaf16
v
Hi there! 👋 I understand you're experiencing unwanted call retries after rejection with your Vapi → SIP Trunk integration. Let me help clarify what might be happening. Based on the information I found, Vapi did have an automatic retry mechanism that would retry calls indefinitely when the receiving end rejected a call, particularly when using a "byo phone number" and "byo sip trunk" setup. According to [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338810971153760296), this issue has been resolved, though the specific details of the resolution aren't provided. Here are some potential ways to prevent these unwanted retries: 1. **Handle rejections at the telephony level**: According to [this information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333545965734592626), you can handle call rejections at the telephony level (SIP provider) to prevent calls from reaching the Vapi assistant. If a call is not allowed (e.g., outside business hours or from a blocked number), end the call at the telephony level rather than forwarding it to Vapi. 2. **Enable end call function**: Try setting
endCallFunctionEnabled
to true using the dashboard, as suggested in [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1313293840580612166). 3. **Implement additional logic**: As a temporary workaround, consider implementing additional logic in your event handling to determine the hangup source based on other call details or states, as mentioned in [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1316958070177403011). 4. **Check your configuration**: Ensure that your SIP trunk is properly configured with Vapi and that you have the correct settings for call handling. Would you like me to provide more details on any of these potential solutions? Sources:
k
We don't have any automatic retry mechanism. It is most likely coming from your SIP provider. So I suggest you check out with them.