If busy, transfer call to another number

Hi, I'm using Twilio Studio with TwiML to transfer an inbound call.
If this transferred call is 'busy', I'd like to forward it to a second phone number.
How can I go about this in Twilio Studio?
Many thanks!
Nathan
Answers
-
@ssengupta can you help with this?
-
Hi there,
Here is one method that can be used to check if the outgoing call was answered or not:
- From Connect Call To (e.g. connect_call_1), transition both Call Completed and Hangup to Split Based On.
- In Split Based On test
{{widgets.connect_call_1.DialCallStatus}}
.- Add a condition if the variable equals "completed", transition to a Say/Play with no message. (This is to work around a bug in Studio that requires a widget for "completed".)
- If No Condition Matches, transition to a new Connect Call widget.
-
@theadaloguy This might help too!
Queueing sounds like another great solution, instead of simply connecting the user you queue them and then they can be pulled by either number. I suppose at the timeout of the queue you could return to your twiml or send them to a voicemail, however this needs to be handled by the business unit. tons of good external forum posts for queueing with twiml.
The
<Dial>
twiml has anaction
which has a subresourceDialCallStatus
which has information whether this was connected.I hope this helps! ✨
Categories
- 83 All Categories
- 19 SIGNAL 2021
- 376 Product Discussions
- 7 Community - Announcements
- 2 Changelog
- 4 Forum UI Updates
- 8 Welcome Guide
- 6 Community - Events
- 2 Twilio Relay Developer Conference 2021 Mega Thread
- 1 External Community Events
- 25 Inspiration
- 17 Community - Other Discussions
- 1 Community- Twilio Startups