transfer/forward calls with twilio - drop call
# support
j
I have had several issues trying to transfer the call from an assitant to another numbers. We are using a configuiration where the assistant number is a twilio number, after solving several problems we have seen that: - if an inbound call is done the transfer call works if we use a configuration for the tool like: "destinations": [ { "type": "sip", "sipUri": "sip:+34xxxxxxxx@xxxx.pstn.twilio.com", "transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" } } - if an outbound call is done the transfer call works if we use a configuration for the tool like: "destinations": [ { "type": "number", "number": "+34xxxxxxxx", "numberE164CheckEnabled": true } The problem is that we can't archive a configuration that works in both directions. - We tried to override the assitant tools using: "tools:append": [{"toolId": "15ac09cc-be38-419d-be38-4f3343a948d9"}], Nothing happened. - We tried to configure both tools and explain in the proimpt which tool shouls we use, we ended with an error becaus we cant configure 2 transfer tools in the same assitant. - We tried to configure 2 destinations and explain that one destination is for inbound calls and the other for ourbound calls. (It always chose the first destination). I don't know what could be do more... how can we configure the transffer correcty? is there a correct way to add an asistant toosl using the property "assistant_overrides"? Is there a way to chose the transfer destination in an effective way?
g
you’re hitting the twilio direction mismatch - inbound needs SIP REFER, outbound wants plain number try using assistant.request to swap assistant config mid-call based on direction, or inject the transfer tool serverside when it’s actually needed instead of defining it upfront what’s your twilio setup? might have a specific workaround​​​​​​​​​​​​​​​​ @josviba
j
the twilio configuration @Great Guy is the one defined in the VAPI doc. i amb trying to inject the transfer tool serverside but i amb not beign abler to inject it.... i am trying to inject uisng the tools:append without success :8
g
tools:append doesn’t work for transfer tools - known issue try assistant-request with full config swap based on direction instead or use server message → function tool that returns transfer instructions need the payload structure?​​​​​​​​​​​​​​​​
j
@Great Guy i have been able to make work the tools:Append defining a whole new tool! Looks it works
g
Nice
c
checking if this is resolved/solved for you?