From 534d9965825fa112c1e4b2c955dab19c9b86af29 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 15 Aug 2016 16:17:35 +0100 Subject: [PATCH] ignore local busy - workaround for https://github.com/vector-im/vector-web/issues/1964 --- src/CallHandler.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CallHandler.js b/src/CallHandler.js index 9118ee1973..015160a1fe 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -273,8 +273,11 @@ function _onAction(payload) { break; case 'incoming_call': if (module.exports.getAnyActiveCall()) { - payload.call.hangup("busy"); - return; // don't allow >1 call to be received, hangup newer one. + // ignore multiple incoming calls. in future, we may want a line-1/line-2 setup. + // 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.