After reviewing the JsSIP library, I found it to be quite promising. However, one downside is that there doesn't seem to be an actual demonstration or code provided for making calls to a mobile phone. My question is whether it's possible to call a phone that is offline or online using this library? Here's the code snippet from the documentation:
var ua = new JsSIP.UA(configuration);
ua.start();
// Register callbacks to desired call events
var eventHandlers = {
'progress': function(e) {
console.log('call is in progress');
},
'failed': function(e) {
console.log('call failed with cause: '+ e.data.cause);
},
'ended': function(e) {
console.log('call ended with cause: '+ e.data.cause);
},
'confirmed': function(e) {
console.log('call confirmed');
}
};
var options = {
'eventHandlers' : eventHandlers,
'mediaConstraints' : { 'audio': true, 'video': true }
};
var session = ua.call('sip:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9dfff2ffddf8e5fcf0edf1f8b3fef2f0">[email protected]</a>', options);
The demo provided only demonstrates calling within web browsers, which can easily be achieved with WebRTC. But my goal is to make calls to a phone. Is it possible to do so, especially in OFFLINE mode?