Squad assistant tries to transfer to itself
# support
m
Hi Vapi team! The last time we're pretty often facing with the issue when squad member tries to transfer to itself and it's not in it's own assistant destinations list, so I can't understand where this loop is coming from. When this happens the call immediately ends with assistant-forwarded-call end reason. Call IDs: db077ef4-842d-41d4-bfd8-618fc5ad28c2, b6f1bb99-63ea-4715-a7c6-0fe33c2c4334, 49fc7fdd-6acb-4e16-9e81-5eec83d2d596 There are 4 assistants in squad: A, B, C, D. Assistant destinations are like: A -> B B -> A, C, D C -> A D -> C But what's happening is that B tries to transfer to B and fails. Could be that this is because B has destination to A and A has destination to B? Thank you!
v
Hi there! ๐Ÿ˜Š It sounds like you're encountering a tricky situation with the call transfers. When Assistant B tries to transfer to itself, and itโ€™s not in its own destination list, it can indeed create a loop, especially if the configuration allows for circular references. From what you've described, it seems that the issue arises because Assistant B has a destination to Assistant A, and Assistant A has a destination back to Assistant B. This can lead to confusion in the call flow, causing the call to end with the
assistant-forwarded-call
end reason when it attempts to transfer to itself. To resolve this, you might want to ensure that each assistant's destination list is configured to prevent self-transfers or circular references. Here are a couple of suggestions: 1. **Review Destination Lists**: Make sure that each assistant's destination list does not include itself or create a circular reference. 2. **Implement Logic Checks**: You could add logic to check if the transfer destination is the same as the current assistant before executing the transfer. If you need further assistance or specific configurations, feel free to ask! Sources: - [Detailed Report on Common Issues Related to Call Transfers in the Vapi Platform](https://discord.com/channels/1211482211119796234/1211483291191083018/1335744915698745344) - [Detailed Report: Assistant Destination List and Call Transfer Loops in the Vapi Platform](https://discord.com/channels/1211482211119796234/1211483291191083018/1334517022893150218)
p
Hey @miralissa looking into it.