1

I'm using the Twilio client js in my browser in order to make calls. In the server I build the Twiml:

const dial = twiml.dial({
            /*action: `http://270311bb.ngrok.io/twilio/callend`,*/
            callerId: availableNum.phoneNumber || availableNumbers[0].phoneNumber
        }, (n) => {
            n.number(request.body.number, {
                statusCallback: `http://270311bb.ngrok.io/twilio/${request.body.agentId}/status`
            });
        });

I also tried with the 'action' parameter. In my status/callend route I get the callstatus only as completed or no-answer, even if the called number is busy, or not connected.

user3712353
  • 3,931
  • 4
  • 19
  • 33

1 Answers1

1

Twilio developer evangelist here.

The StatusCallbackEvent's that you can receive from a call are only initiated, ringing, answered, or completed. Busy or not connected calls are also completed calls. Can you try querying the call from the API when you receive the completed event and see what status the actual call in.

philnash
  • 70,667
  • 10
  • 60
  • 88