question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When one user hangs up the call - the second one continues to run the call time.

See original GitHub issue

Hello, I have a problem when making calls between two users when one hangs up the second one continues to run the call time. How can you make the receiver go down as well as with usual phone calls?

on the js side this code does not give the expected behavior

function hangup() { RNCallKeep.endAllCalls(); setCallInProgress(false); }

/make-call

exports.handler = function(context, event, callback) {
  const from = 'client:'+event.from;
  const twiml = new Twilio.twiml.VoiceResponse();

  var to = event.to;
    if (!to) {
      twiml.say('Congratulations! You have made your first call! Good bye.');
    } else {
      const dial = twiml.dial({callerId : from, action: '/hangup', method: 'POST'});
      dial.client(to);
    }
    callback(null, twiml);
};

an attempt to redirect a function from the server to a TwiML does not bring any result either

/hangup

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MrHertalcommented, Jul 17, 2021

Hi,

I will try to reproduce on the example app when I find some time.

0reactions
saurabh874commented, Dec 9, 2021

@MrHertal I am also facing same issue If during the call, the app is killed from the background, the call does not get ended from customer’s end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calling someone after hanging up the phone - Apple Community
Start a call from "call history", e.g. from a missed call; When you are about to end the call, take the phone from...
Read more >
How to Hang Up on One Person in a Two-Person Call on an ...
Create a conference call while on an active call by tapping "Add Call," initiating another call, and then tapping "Merge Calls." Repeat for...
Read more >
Why is it that when I call a number it rings and then hangs up?
1 that means the line has rung at the other end 2 times. In a PBX phone system we have a CALL rejection...
Read more >
Can't call, dropped calls, & other calling issues - T-Mobile
Read these troubleshooting tips if you're unable to make or receive calls, or your calls drop unexpectedly on your T-Mobile device.
Read more >
Why Does My Phone Keep Dropping Calls? 7 Causes - Dialpad
1. If your network connection has dipped, you should get a notification or some kind of alert in your phone app (if you're...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found