0

I am trying to build a phone component that can handle twilio calls and I got outgoing working but when I try to receive phone calls no events are fired and my console shows no answer from the client, my token is given identity test, this is the twiml returned

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial answerOnBridge="true" callerId="(my twilio phone number)">
      <Client>
        <Identity>
          test
        </Identity>
      </Client>
    </Dial>
</Response>

The browser has a console.log added to the device.on("incoming") event but it does not fire, what am I doing wrong?

Runner
  • 81
  • 8
  • Do you have `incomingAllow = true` set in your voice grant in your access token? – philnash Aug 18 '21 at 06:36
  • Yes I did set it – Runner Aug 27 '21 at 23:38
  • Is this using Twilio Voice JS version 1 or 2? Can you share exactly what you are doing to try to connect the call (for example, what is triggering the webhook that is getting the above TwiML in response?). Can you share your JavaScript for receiving the call in the browser? – philnash Aug 29 '21 at 23:17
  • @philnash, please following question I am facing the same issue, I ask question with detailed descriptions https://stackoverflow.com/questions/72729191/twilio-voice-sdk-does-not-listen-incoming-call-listener-when-i-call-on-my-twilio – shafeeque ahmad Jun 23 '22 at 11:15

0 Answers0