Transfer call works with outbound call, hangs up f...
# support
d
I have an assistant configured with an inbound Twilio phone number. When I can this number and ask to talk to an employee, it says it transfers me but the call is disconnected. The logs state the call was ended for "Assistant forwarded call" and the phone number used in the logs is correct. When I initiate an outbound call to myself and ask for an employee, it successfully transfers the call to the phone number so the function call and prompt must be good. Any idea where I can look to see what's causing this?
v
message has been deleted
@Derky It sounds like you've encountered an issue with call forwarding when receiving inbound calls on your Twilio number. Since outbound calls are working correctly, this suggests that the issue is specific to the inbound call flow. Here are a few steps you can take to troubleshoot the issue: 1. **Check Configuration**: Verify that the inbound call configuration matches the outbound call configuration since the latter is working correctly. 2. **Review Logs**: Look closely at the call logs for inbound calls to see if there are any discrepancies or errors that stand out compared to the outbound call logs. 3. **Examine the Forwarding Number**: Ensure that the
forwardingPhoneNumber
attribute in your Create Assistant API setup is either omitted, set to null, or an empty string ('') for inbound calls, as per the context provided. 4. **Test with Different Numbers**: Try forwarding to a different phone number to see if the issue persists. This can help determine if the problem is with a specific forwarding number or the forwarding process in general. 5. **Check Twilio's Documentation**: Review Twilio's documentation on call forwarding to ensure that all the necessary steps and configurations are correctly implemented. 6. **Contact Twilio Support**: If you've gone through all the above steps and the issue still isn't resolved, reaching out to Twilio's support team may provide additional insights. If you need further assistance or if you'd like me to perform any specific checks or configurations, please let me know!
You can continue this conversation by mentioning me in the message.
s
Hey @Derky Would you mind sharing both the call id?
d
Hey @Shubham Bajaj thanks responding. I've just tried it again, here are the Call IDs:
d83938e9-5411-40c7-b111-46450d8876e9
(outbound call, transfer works)
098a1435-c7a1-460b-ac8b-cd71b66ecd45
(inbound call, transfer hangs up)
In the Twilio logs I see that outbound calls get handled by the US region, inbound by the Ireland region. I can't seem to find where I can change it in Twilio. (I only need a Dutch (Netherlands) inbound calls and forward calls also to NL only.
s
FOR THE INBOUND CALL
logs
šŸ”µ 15:41:15:602 Transferring Twilio Call...TwiML:+31342471189 🟔 15:41:15:772 Couldn't Transfer Twilio Call. Error: The requested resource /2010-04-01/Accounts/ACf592941e7297e873d00fc8152a3d2e65/Calls/CA694015987cf8399ce9e3c4c8d2dce22f.json was not found šŸ”µ 15:41:15:914 Live Call Manager Ending...(assistant-forwarded-call) Most likely it's because of region thing which is incorrectly configured, can you once try checking with twilio team for this call sid
CA694015987cf8399ce9e3c4c8d2dce22f
on how to correctly configured the regions for the call forwarding...
Do let @Derky me know if you require further help.
d
yes I will thanks!
@Shubham Bajaj I'm a little step further. Twilio says I need to use the Ireland region auth and API-keys. In VAPI I cannot use an API-key as far as I can see, I can only provide an Account SID and Account Token. When I try to use the Account Token for the Ireland region I get an authentication error, when I use the US region the phone number is succesfully imported. I've asked Twilio if they could see why I'm getting an authentication error but they are referring to VAPI. Is there anything you can see in the logs when I got the authentication error or do you have to configure something specific to make Twilio (Ireland region) Auth Tokens work when importing a phone number?
s
@Derky from our side we don't have to do anything special, the standard is to use auth token and sid to make phone cals. We are open to help if you find anything which is required to be passed along to make the phone call except API Key I can try to get it done for you.
d
Thanks, can you see any additional debug error messages in the authentication to Twilio log for my account?
@Shubham Bajaj I've got a response from Twilio, apparently when initiating a call the region needs to be specified. This is what a Technical Support Engineer from Twilio just responded: We are showing this number is successfully routed to the IE1 region. Please note, when submitting an API call the region must also be declared in the endpoint (domain name). If you don't specify a target region for a request, the request will be handled in the default US1 Region. I can not be positive what API call Vasi is making when you attempt to 'import' a number, my guess is they are adding the voice URL to your phone number. This process would use the following API call: POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json In order to run this request in the Ireland region, the call would need to show as: POST https://api.dublin.ie1.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json For more information, about Region requirements, please check out this doc: https://www.twilio.com/docs/global-infrastructure/create-an-outbound-call-via-rest-api-in-a-non-us-twilio-region I hope this helps. Please let me know if you have any more questions.
s
@Derky let me check with team about this.
Hey @Derky an feature requested, and once we are done with it I will let you know.
d
Thanks for the response @Shubham Bajaj! As workaround I've now set the region to US in Twilio and this works for call forwarding. Do you have a rough estimate when I can expect the regional support?
s
Probably by end of this month.
d
Sounds good, thanks!
3 Views