SIP.js | A simple , intuitive , and powerful JavaScript signaling | TCP library
kandi X-RAY | SIP.js Summary
kandi X-RAY | SIP.js Summary
A simple, intuitive, and powerful JavaScript signaling library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SIP.js
SIP.js Key Features
SIP.js Examples and Code Snippets
Community Discussions
Trending Discussions on SIP.js
QUESTION
Hello my fellow developers!
So I've been working on this app for a while now. I like to be up to date with the frameworks I use, so I regularly update when the frameworks release a new version. i.e. Angular 9 > 10. Angular 10 > 11.
So I just recently updated to Angular 11 and updated my nestjs and nx. And now when I try to serve my frontend app, Ivy seems to complain a lot.. but a.. lot... about modules that are not used in the frontend app.
...ANSWER
Answered 2021-Mar-28 at 15:10After a day's review of the project, I was:
importing a class from the middleware that was using a library of the backend.
using a library from the backend in the frontend
To fix the issues also complies with best-practices.
I have split the class in the middleware into two classes: one for the frontend, one for the backend. I have refactored the code so that the backend library was not necessary on the frontend. I ended up just fixing two files. And all the errors dissapeared.
So if you encounter something similar, double check whether or not you use some backend libraries/classes in your frontend.
QUESTION
I want to import a module for one of my .js files and call my .js file with Vaadin 14. Unfortunately I struggle with importing it and a ReferenceError is thrown in the browser.
My view:
...ANSWER
Answered 2020-Mar-06 at 08:50I found a solution. I had to use NodeJs' require()
to import the module instead of import
. It works but I am not sure why.
sipcall.js:
QUESTION
Good evening Stack Overflow! I really need help for a project of mine where I'm using sip.js and a VoIP to make real calls to a phone number.
The Goal
I want to allow the user to record the audio and microphone and save the data on a server (in base64 encoding or as a file). So I after the conversation can hear the conversation again and use it for what ever my purpose (employee training) was.
The Problem
I can't get the sound of the person speaking, which comes through and -HTML tag (working with the sip.js plugin). As of now I haven't found any way to successfully save the sound streaming through this audio tag.
What I've done so far
I've successfully figured out how to record the audio of the microphone using a plugin called AudioRecorder which allows me to record the audio through the microphone and saving it. I slightly changed the code so it got saved encoded as base64. This all work as expected, though I only get the audio of my own voice, and not the person I'm talking with.
Because I succeed to record the audio of my own voice I looked into the AudioRecorder plugin and tried to reverse the plugin to record from a audio tag. I found the "createMediaStreamSource" function inside AudioRecorder which I wanted to work with the -tag which did not work (as I suspected, because the -tag in it self isn't a stream (of which i understand).
The Code
I'm basically using the sip.js plugin to establish a call to a phone number by using below code (just using an example, matching my code, because my raw code contains some added values which doesn't need to be showed here):
...ANSWER
Answered 2017-Aug-29 at 20:45Okay, so I after finally found a solution to my problem, which I though i wanted to share here.
What I did to solve the problem was to add ONE simple line of code to the "normal" recording script of a microphone. The script to record mic audio is:
QUESTION
I am trying to implement Sip.js on my project. I have created a session variable and stored the session in that , but now I need to track an event on that session variable to attach audio on DOM. How do I add a event listener on a variable.
Here is how my code look like:
...ANSWER
Answered 2019-Mar-29 at 22:06session
and ua
should not set in data()
- they should not be tracked by Vue. They are not plain data objects:
The data object for the Vue instance. Vue will recursively convert its properties into getter/setters to make it “reactive”. The object must be plain: native objects such as browser API objects and prototype properties are ignored. A rule of thumb is that data should just be data - it is not recommended to observe objects with their own stateful behavior.
That being said, if you must insist, you could set up a handler right after the session is created as follows:
QUESTION
I use freeswitch as sip server also use pem from freeswitch folder (/usr/local/freeswitch/certs) .
On client part i use SIP.js client looks like :
...ANSWER
Answered 2019-Jan-09 at 08:35The error clearly shows it is certificate issue
sip-0.8.0.js:11540 WebSocket connection to 'wss://192.168.0.100:7443/' failed: >Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID
I use freeswitch as sip server also use pem from freeswitch folder (/usr/local/freeswitch/certs)
The certificate provided by Freeswitch is a self-signed certificate and not generated for your server address 192.168.0.100. You can try generating one using openssl,
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout 192.168.0.100.key -out 192.168.0.100.crt -extensions san -config <(echo "[req]"; echo distinguished_name=req; echo "[san]"; echo subjectAltName=DNS:192.168.0.100,IP:192.168.0.100) -subj /CN=192.168.0.100
make your wss.pem using https://freeswitch.org/confluence/display/FREESWITCH/WebRTC#WebRTC-InstallCertificates
If you get certifying authority error, with a self-signed certificate for webrtc on a browser like Chrome, better to generate a valid SSL certificate with a domain name and use it.
Regards!
QUESTION
I'm developing a mobile app that must implement Twilio Programmable Video.
I have developed a backend with Twilio SDK 5.24.2 in Laravel PHP Framework and that works well.
In the mobile app, I have installed the twilio-video 2.0.0-beta4 package through npm and developed a page based in the example in "video-quickstart-js-1.x". The problem is when Twilio tries to connect to the room, the error in the console is as follows (at the end of the log):
ANSWER
Answered 2018-Dec-05 at 00:48To avoid this error, the right command for executing the Ionic app is:
QUESTION
How to Identify Online users in WebRTC app? Iam using Sip signalling and Sip.js. Iam unable to find proper documentation or on web. I thought to send invite request to all contacts and if one responds,that one is online,BUT for sending request back from client 2 we need to create peerconnection or data Channel, that wil be against Proper technique..so pls suggest me something Many begginers may be facing this problem so I thought this will teah me plus benefit others.
...ANSWER
Answered 2018-Aug-13 at 15:18It's not obvious from your question if you use some SIP server along with sip.js.
- If you do you can use built-in mechanisms: Asterisk
qualify
, Freeswitch Sofiaping
, etc. Most of such mechanisms send SIP OPTIONS to client and consider any response as success. - In case of serverless setup you could use SIP MESSAGE to "ping" remote party. You shouldn't just send MESSAGE to all possible peers rather maintain the list of registered one (similar to SIP REGISTER approach in SIP server based applications).
QUESTION
So I am using jssip 3.2.10 to make calls on a React project.
The server is setup on Asterisk and CentOS.
I can make calls where the call receiver hears me well, but I can't hear their audio, nor the waiting (traditional) beep noises it should make until the call is picked up.
It does work with some sipml5/asterisk udp online tests so I feel it's on my clients side issue. I tested it on Chrome and Firefox (both latest, with the same results).
My setup
I have a helper to connect called sip.js:
...ANSWER
Answered 2018-Jun-28 at 17:54Thanks to the answer here: How to handle audio stream in JsSIP?
I found the solution, I needed to add to the file rendering the call:
QUESTION
Has anyone seen that error, literally:
"Uncaught DOMException: Failed to construct 'RTCPeerConnection': Cannot create so many PeerConnections"?
I guess it's happens because I didn't removed connections (maybe not, maybe it's because I didn't provide more memory or something). But from where? Where do they accumulate?
I didn't found answer for the question, literally, nowhere.
I was tried to solve that problem a couple days. By the way, no such thing as a stupid question, right?
UPD: Forgot to add that I using sip.js library.
...ANSWER
Answered 2018-Apr-04 at 06:58Found and fixed the problem. Sip.js library has a .close()
method that closes the peerConnection
. But this is not enough for a garbage collector. Object peerConnection
should be reset to null
.
So, the solving was adding two new lines in library, like
this.mediaHandler.peerConnection = null
and that's it. WebRTC is not crowded and all are happy.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SIP.js
CDN jsDelivr.com
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page