Twilio client not receiving incoming event

309 views Asked by At

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?

0

There are 0 answers