Can Twilio determine if a Google Voice number call will be sent to voicemail or to an actual person?

I have an application that creates outgoing calls to set up simple conferences.

I’m having difficulty dialing numbers in Google Voice, as I use IfMachine to determine if one or more participants are ringing for voicemail so that I can fail the conference call attempt.

That is the question I have ...

Google Voice answers the call attempt and asks you to enter your name before forwarding your call to the configured endpoint for this user.

I can use IfMachine to detect this, and I can automate this part and make Google Voice redirect the call, but then I can no longer determine whether the call will end up in voicemail or if the actual person picks up the other end.

any ideas?

+4
source share
1 answer

The Twilight Evangelist is here,

I think that, given that there are 2 points, you need to recognize the machine, you can use it<Gather> as a secondary screening of calls before connecting a person to the conference.

, IfMachine, , Google Voice. . - , , .

, , TwiML :

<Response>
  <Gather numDigits="1" timeout="15" action="/some-conference-path">
    <Say>Press any key to be connected to the Something Something Conference</Say>
  </Gather>
</Response>

, , -, Gather , , , .

, .

, !

+2

Source: https://habr.com/ru/post/1523361/