Please excuse our look. We're just getting started here.

Want to learn more about Twilio Forums? Check out our FAQ page here.

Twilio JS Voice SDK Client outbound Call w/ AMD

I'd like to be able to make calls from a browser, which trigger an AMD async callback to my server. So far, I've:

* Been able to make a call w/o AMD with a simple TwiML Dial verb.

* Been able to trigger a Studio Flow. The "Connect Call To" widget works, but does not have AMD support. I cannot get the "Make Outgoing Call" widget to work.

My latest attempt, which seems closest to working is to use the TwiML App voice request callback to generate a call with server SDK:

  const call = await client.calls

   .create({

    machineDetection: 'Enable',

    url: <callback URL>

    to: '+OUTNUM',

    from: '+CALLINGNUM',

   })

This does call the recipient, but the call is not connected to the client.

Is there a TwiML response I can return from this endpoint that will join the outbound client call (which prompted the callback) to the API created call above?

Thank you,

Mike

Answers

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support