pull/21833/head
Matthew Hodgson 2016-08-15 16:17:35 +01:00
parent 5a83adc2b6
commit 534d996582
1 changed files with 5 additions and 2 deletions

View File

@ -273,8 +273,11 @@ function _onAction(payload) {
break; break;
case 'incoming_call': case 'incoming_call':
if (module.exports.getAnyActiveCall()) { if (module.exports.getAnyActiveCall()) {
payload.call.hangup("busy"); // ignore multiple incoming calls. in future, we may want a line-1/line-2 setup.
return; // don't allow >1 call to be received, hangup newer one. // we avoid rejecting with "busy" in case the user wants to answer it on a different device.
// in future we could signal a "local busy" as a warning to the caller.
// see https://github.com/vector-im/vector-web/issues/1964
return;
} }
// if the runtime env doesn't do VoIP, stop here. // if the runtime env doesn't do VoIP, stop here.