How many concurrent calls could SIP.js can handle?

496 views
Skip to first unread message

bharath kumar

unread,
Mar 1, 2018, 5:48:32 PM3/1/18
to SIP.js

Hi, 


I just have this general question like did anyone tried making concurrent calls before? if so how many concurrent calls it could handle at a time? What is the sip.js version that you tried?

My observation:

  1. I have built a simple application where you can make calls from browser to softphone where the media is taken via RTP engine openSIPS

  2. I used sip.js 0.7.8 to take care of signaling between browser and server

  3. When I test making concurrent calls, it was working fine till 16 calls and broken after that so just wondering, whether it is an issue related to the version or Is there any concurrent call restriction by default. Please feel free to share your thoughts. 

Thanks,
Bharath

bharath kumar

unread,
Mar 1, 2018, 6:57:51 PM3/1/18
to SIP.js
Hi, I have upgraded to sip.js 9.1 but still the call is broken after 17 concurrent calls. Please find the error attached below. Any thoughts how to resolve this issue.

Error Message:

sip-0.9.1.js:807 Fri Mar 02 2018 10:48:48 GMT+1100 (AUS Eastern Summer Time) | sip.invitecontext.sessionDescriptionHandler | unable to acquire streams

DOMException: Could not start source

bharath kumar

unread,
Mar 1, 2018, 7:28:01 PM3/1/18
to SIP.js
Code used to accept the call:

ua.on('invite', function(session) {
console.log('incoming invite');

var domElement = document.getElementById('remoteAudio');
session.on('accepted', function () {
console.log('Session accepted');
var pc = session.sessionDescriptionHandler.peerConnection;
var remoteStream = new MediaStream();
pc.getReceivers().forEach(function (receiver) {
var track = receiver.track;
if (track) {
remoteStream.addTrack(track);
}
});
console.log('after track');
domElement.srcObject = remoteStream;
domElement.autoplay = true;
}) ;

var options = {
sessionDescriptionHandlerOptions: {
constraints: {
audio: true,
video: false
}
}
};
console.log('session accept');
session.accept(options);


});

On Friday, March 2, 2018 at 9:48:32 AM UTC+11, bharath kumar wrote:

Eric Green

unread,
Mar 2, 2018, 10:38:26 AM3/2/18
to SIP.js
SIP.js is not the problem here. It cannot acquire media from the underlying hardware.

bharath kumar

unread,
Mar 5, 2018, 6:39:09 PM3/5/18
to SIP.js
Thanks @Eric Green. It's a problem with the browser I guess because I could make max of 16 concurrent calls via chrome and downloaded opera where I could make 16 calls in there. Even I tried firefox which could make 4 concurrent calls. 
Reply all
Reply to author
Forward
0 new messages