title: webRTC losses stream when a phone call is answered
body: <p>In the scenario where two users are connected in a video call, one of them gets a phone call and he answers the call. this blocks the ongoing webRTC stream and the call session ends.</p>
  <p>So is there a way we can maintain both the steam as well as the call session and resume the video call once the person return on our application.</p>
  <p>I am using QuickBlox js-Sdk to make calls.</p>
  <p>below is the code snippet attached to initiate the call.</p>
  <pre><code>var userCredentials = {
        userId: 'XXXXXX',
        password: &quot;XXXXXXX&quot;
      };
  
      QB.chat.connect(userCredentials, function (error, contactList) {
  
        var calleesIds = [XXXXX];
        var sessionType = QB.webrtc.CallType.VIDEO;
        var session = QB.webrtc.createNewSession(calleesIds, sessionType);
  
        this.userAuthService.markBusy(XXXXX).subscribe(data =&gt; data);
        var mediaParams = {
          audio: true,
          video: true,
          options: {
            muted: true,
            mirror: true
          },
          elemId: &quot;selfStream&quot;
        };
  
        session.getUserMedia(mediaParams, function (err, stream) {
          if (err) {
            console.log('getUserMedia err', err);
          } else {
            console.log('getUserMedia succ', stream);
  
            // make call
            var extension = {};
            session.call(extension, function (error) {
              console.log('call error: ', error);
            });
          }
        });
  
      });
  </code></pre>
  <p>and on the other side to receive the call.</p>
  <pre><code>QB.webrtc.onCallListener = function (session, extension) {
            session.getUserMedia(self.getMediaParams('selfStream'), function (err, stream) {
        if (err) {
          console.log('getUserMedia err', err);
        } else {
          self.callSession.accept(self.callExt);
        }
       });
      };
  </code></pre>
  <p>I have seen the same issue in some other webApps as well, Is there a fix/workaround for this problem, thanks in advance.</p>