Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
Twilio Browser Outgoing Call Not getting Event when reject the call from mobile

I am building an application of calls with Twilio.

I can make the call from browser to mobile and its working fine. but I cant handle the situation when a call is rejected from mobile.

If a call rejected from mobile I need to show "The customer is Busy" in browser.

I have tried …

var outcall = outGoingDevice.connect(params);

outcall.on('ringing', function(call) {
            console.log('Outgoing call Ringing');
            if(call) $('.callStatus').html('Ringing...').show();
})
outcall.on('accept', function(call) {
            console.log('Outgoing call Accepted');
            $('.callStatus').hide();
            startTimerOut();
})
outcall.on('disconnect', function(call) {
            console.log('Outgoing call Disconnected');
            $('.callStatus').hide();
            resetTimerOut();
})

In my case when call to a number, it reject from mobile -> going to inside ringing + accept + disconnect methods

Is there any busy method available in twilio sdk..? I am using 1x version for my project...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Twilio developer evangelist here.

The Voice SDK itself doesn't have access to the final status of a call. What you need to do instead is register a statusCallback URL on your <Number> within the <Dial> TwiML. When the call ends, Twilio will send a webhook to the statusCallback URL with the parameter CallStatus. That status will tell you whether the call was: queued, ringing, in-progress, completed, busy, failed, no-answer or canceled.

You would have to send that status to your front-end somehow, but that's the best way to capture why a call finished.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!