twilio / voice-quickstart-android

Quickstart app for the Voice Android SDK
https://www.twilio.com/docs/api/voice-sdk/android/getting-started
MIT License
184 stars 140 forks source link

"Congratulations you have received your first inbound call" instead of connecting the call #550

Closed Brblol closed 1 year ago

Brblol commented 1 year ago

I bought a number on twillio and configured it so that the "A CALL COMES IN" parameter is pointing to /place-call enpoint of my app

when I call this number, my voip app rings and when I pick up the call, I just hear "congratulation you have received your first inbound call" rather than hearing the caller. on the caller side the call just ends.

What do I need to do to connect the call. I tried editting incoming.js to the following but then it just reads the number.

   exports.handler = function(context, event, callback) {
    const twiml = new Twilio.twiml.VoiceResponse();

    const phoneNumber = '+44hardcoded called number';
    dial.number(phoneNumber);

  callback(null, twiml.toString());
   };
Brblol commented 1 year ago

Fixed it by pointing the "A CALL COMES IN" webhook to /make-call