New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'RTCPeerConnection' of undefined #4
Comments
You need to provide a WebRTC-compliant module that handles media, then register it using |
I hit a GIthub 404 error when i visit this url any changes to the URL Is there a updated link for this could you please tell me with regards |
Sorry, I put it on npm but forgot to actually push it to github. It's there now. |
Hi, Could you please guide me if I am correct in performing the Initialization of JssIP.WebRTC variables Change 1 : I have added the following lines to Jssip.jsas below var JsSIP = (function() { var JsSIP = {}; JsSIP.Grammar = require('./Grammar/dist/Grammar.js')(JsSIP); /Added By Raghav to support the Webrtc stack initialization/ JsSIP.WebRTC = require('./WebRTC.js')(JsSIP); /End of Added By Raghav to support the Webrtc stack initialization/ return JsSIP; Change 2 : I have edited the file WebRTC.js as below module.exports = function(JsSIP) { WebRTC = {}; /_/ Add By Raghav // getUserMedia I Hope to eliminate the issue below But I think I missing something Could you please suggest
I have installed nomedia-webrtc through npm globally Many thanks for the help in advance with regards |
Please have a look at https://github.com/shimaore/node-jsSIPp for how I adapted your code. |
Hi, After the initialiazation i hit this problem below , may I know if I am missing something Please |
Hi,
After registration i am trying to make a call using the below script
coolPhone1.on('registered', function(e)
{
var registered = e.data.response;
console.log(" register request1 "+registered);
if (reg) {
coolPhone.call('sip:'+reciever+'@'+uriIP+':'+uriPort, options);
}
});
But I am getting an Type Error Below what could be the reason am I missing any initialilizations Kindly suggest
Entire Error Log;
/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:128
this.peerConnection = new JsSIP.WebRTC.RTCPeerConnection({'iceServers': se
^
TypeError: Cannot read property 'RTCPeerConnection' of undefined
at Object.RTCMediaHandler.init (/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:128:43)
at Object.RTCMediaHandler (/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:22:8)
at Object.RTCSession.connect (/usr/lib/node_modules/jssip-for-node/src/RTCSession.js:544:26)
at Object.UA.call (/usr/lib/node_modules/jssip-for-node/src/UA.js:185:11)
at process.message (/usr/lib/node_modules/thor/mjolnir.js:107:12)
at process.EventEmitter.emit (events.js:117:20)
at handleMessage (child_process.js:318:10)
at Pipe.channel.onread (child_process.js:345:11)
with regards
Raghav
The text was updated successfully, but these errors were encountered: