twilio-labs/dev-phone

<Say> verbs immediately play when dev phone rings

ayyrickay opened this issue · 3 comments

How to replicate: call the dev phone using a studio flow that uses a or verb. When you answer the call, it sounds like the audio has already started during the ring.

First reported by Joe Nash, as follows:

Is it possible that a call TO a Dev Phone is technically getting answered somewhere before the call comes through to the browser? The reason I ask is outbound twilio calls containing just a single verb seem to end before Dev Phone rings, and if you add more content to those calls, they go through but have clearly already started.

Does this involve answerOnBridge? Documentation

Worst case scenario, we can brute force a fix by including a Pause on calls when they come in, but I think it may be related to multiple devices getting spun up by the webhook context.

I think right here would do the trick testing wise:

The default is false so setting {answerOnBridge: true} should do the trick

@craigsdennis is a genius, I think it worked. Testing now and if all is well then we can merge in and release a patch on Monday 👌