SIP.js | A simple , intuitive , and powerful JavaScript signaling | TCP library

 by   onsip TypeScript Version: 0.13.6 License: MIT

kandi X-RAY | SIP.js Summary

kandi X-RAY | SIP.js Summary

SIP.js is a TypeScript library typically used in Networking, TCP applications. SIP.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

A simple, intuitive, and powerful JavaScript signaling library
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SIP.js has a medium active ecosystem.
              It has 1675 star(s) with 660 fork(s). There are 97 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 30 open issues and 684 have been closed. On average issues are closed in 349 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SIP.js is 0.13.6

            kandi-Quality Quality

              SIP.js has no bugs reported.

            kandi-Security Security

              SIP.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              SIP.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              SIP.js releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SIP.js
            Get all kandi verified functions for this library.

            SIP.js Key Features

            No Key Features are available at this moment for SIP.js.

            SIP.js Examples and Code Snippets

            No Code Snippets are available at this moment for SIP.js.

            Community Discussions

            QUESTION

            NX NestJS Angular, Why is Ivy complaining about modules that are not part of the frontend app?
            Asked 2021-Apr-11 at 02:37

            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:10

            After 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.

            Source https://stackoverflow.com/questions/66833012

            QUESTION

            ReferenceError if calling function of NPM package in Vaadin 14
            Asked 2020-Mar-06 at 08:50

            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:50

            I 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:

            Source https://stackoverflow.com/questions/60559540

            QUESTION

            Record mic and audio from SIP call using sip.js
            Asked 2019-Apr-18 at 13:47

            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:45

            Okay, 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:

            Source https://stackoverflow.com/questions/45827103

            QUESTION

            How to attach a event to a variable in vuejs
            Asked 2019-Mar-29 at 22:06

            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:06

            session 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:

            Source https://stackoverflow.com/questions/55425532

            QUESTION

            Freeswitch vs webRTC with SSL (local)
            Asked 2019-Jan-09 at 08:35

            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:35

            The 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!

            Source https://stackoverflow.com/questions/54020223

            QUESTION

            Twilio Programmable Video and Ionic 3
            Asked 2018-Dec-05 at 00:48

            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:48

            To avoid this error, the right command for executing the Ionic app is:

            Source https://stackoverflow.com/questions/53621428

            QUESTION

            How to identify online users in through Webrtc API
            Asked 2018-Aug-13 at 15:18

            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:18

            It's not obvious from your question if you use some SIP server along with sip.js.

            1. If you do you can use built-in mechanisms: Asterisk qualify, Freeswitch Sofia ping, etc. Most of such mechanisms send SIP OPTIONS to client and consider any response as success.
            2. 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).

            Source https://stackoverflow.com/questions/51810756

            QUESTION

            JSSIP and React audio issue
            Asked 2018-Jun-28 at 17:54

            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:54

            Thanks 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:

            Source https://stackoverflow.com/questions/51073157

            QUESTION

            How to clear RTCPeerConnection (WebRTC)?
            Asked 2018-Apr-04 at 06:58

            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:58

            Found 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.

            Source https://stackoverflow.com/questions/49532939

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install SIP.js

            Download sipjs.com/download
            CDN jsDelivr.com

            Support

            For migration guides and API reference please see the Documentation.For bug reports and feature requests please open a GitHub Issue.For questions or usage problems please use the Google Group.For more information see the project website at SIPjs.com.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/onsip/SIP.js.git

          • CLI

            gh repo clone onsip/SIP.js

          • sshUrl

            git@github.com:onsip/SIP.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TCP Libraries

            masscan

            by robertdavidgraham

            wait-for-it

            by vishnubob

            gnet

            by panjf2000

            Quasar

            by quasar

            mumble

            by mumble-voip

            Try Top Libraries by onsip

            sipjs-examples

            by onsipJavaScript

            onsip-cordova

            by onsipJavaScript

            onsip_call_assistant_chrome

            by onsipJavaScript

            sipjs.com

            by onsipJavaScript

            webhook-schema

            by onsipJavaScript