Questions tagged [sipjs]

A simple yet powerful JavaScript library that takes care of WebRTC and SIP signaling for you.

Features

  • Register SIP User Agents using the SIP over WebSocket transport
  • Create Audio and Video sessions
  • Send Instant Messages and view Presence
  • Share your screen or desktop
  • Utilize advanced call features such as early media, call hold and resume, and transfers
  • Send DTMF with SIP INFO
  • 100% open source, 100% JavaScript
  • All major browsers supported

Homepage: https://sipjs.com/

33 questions
4
votes
0 answers

How to fix WebRTC sender track property returning null to store localMedia

I am doing a WebRTC implementation with Angular and SIPjs. Remote media works OK, but I have problems to add the local media because the sender´s track property returns null instead of the MediaStreamTrack object being supposedly right stored. I am…
Fran
  • 111
  • 1
  • 3
3
votes
0 answers

Subscribe user and get Notify when user register or unregister

I want to subscribe presence and dialog of all sip user and get notify when user on call , available, on ringing and unregister. I am using sip.js with reactjs. SIPJS : "sip.js": "^0.20.0", Code : UserAgent : `const userOptions: UserAgentOptions =…
Pratik Patel
  • 221
  • 1
  • 10
3
votes
3 answers

How to get localStream when receiving call in SIP.js (to mute microphone)

When I want to mute microphone I use mediastream which I get from session.sessionDescriptionHandler.on('userMedia', onUserMediaObtained.bind(this)) function onUserMediaObtained(stream) { localMediaStream = stream } Session value is from…
Zwoniar
  • 43
  • 9
2
votes
1 answer

How to speed up the audio connection

Using SipJs 0.17.1 and freeswitch 1.10.5. Debian 10. stun:stun.l.google.com:19302 If users using any home or office internet and when receive a call, audio appears in ~ 0.2…
2
votes
1 answer

Multiple calls using SIP.js (version 0.13.7)

I am using sip.js (version 0.13.7) for making a voice call. I get media stream & attaching it as follows: let mediaStream getMedia() { if (navigator.getUserMedia) { navigator.getUserMedia( { audio: true, video: false }, …
demonofthemist
  • 4,081
  • 4
  • 26
  • 45
2
votes
3 answers

How to put the session.id of caller SIP.JS (wss-binding) to CDR log file or in dialplan (Freeswitch Windows)?

How to put the session.id of caller SIP.JS (wss-binding) to CDR log file or in dialplan ("Freeswitch Windows")? Or get the UUID of session freeswitch to browser?
1
vote
0 answers

Registering a user in tryit-jssip

I'm trying to register an agent in https://tryit.jssip.net/. Attach is the screenshot for populating the data. JsSIP UA settings Into the sip Uri I'm writing the information as below: test@mypublic ip address. What data should I enter there? Thank…
E.M
  • 11
  • 1
1
vote
1 answer

SIP integration with call conference in JS

I am developing an Electron application with the integration of React.js as a front-end framework, which will be more like a calling application. In that application-specific users can have multiple calls incoming, outgoing, mute | unmute calls,…
1
vote
1 answer

How to set the session timer of the SIP.JS library for WebRTC?

I'm working on a WebRTC project using the Sip.JS library. Everything works as expected for audio and video except one thing that the remote peer automatically drops the session every 30 seconds. Checked the logs and I saw these sort of messages:…
Thanh Pham
  • 203
  • 2
  • 13
1
vote
0 answers

Sip.js - how to catch MediaStreamError?

How to catch MediaStreamError when it occur (e.g. when being not on https): I think I've tried already all .on() events I've found in the Sip.js docs, but only "ended" is working when this error occurs (but I don't think this is a proper to use as…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
0
votes
0 answers

How to get the caller phone number of incoming calls with SIP.js on the browser?

I am using SIP.js in the browser using SimpleUser (SIP over WebSocket). I am connected and registered. When a call comes in details (including caller phone number) are logged into the JS Console. My onCallReceived function is called. But it has no…
Witek
  • 6,160
  • 7
  • 43
  • 63
0
votes
0 answers

Persisting non-serializable values in react native

Is there any way to persist non-serialisable values in react native? I am building a calling app using SIP js, everything works fine. Now i want to implement the call receiving functionality when the app is killed (The thing below is what I think…
Irfan wani
  • 4,084
  • 2
  • 19
  • 34
0
votes
0 answers

Call Transfer not working, what am i doing wrong?

I have implemented SIP.js for my vue call app to make and receive calls. the transfer does not work as expected. this is my current code: const transferCall = async (phoneNumber) => { if (dialerStore.callStatus.callTransferStatus) { // meaning…
0
votes
1 answer

Signaling in SIPJS over UDP

I realize that media will run over UDP with a webRTC connection, but what about signaling? Does it require TCP or can it run over UDP? All of the examples using SIPJS I could find run the signaling over a websocket (therefor TCP). What about if…
TSG
  • 4,242
  • 9
  • 61
  • 121
0
votes
1 answer

Error: WebSocket closed wss://my.websocket.server:port (code: 1006)] sip.js react native

I am integrating sipjs in react native and here is the code; import {Registerer, UserAgent} from 'sip.js'; export const registerUserAgent = async () => { try { let sipUsername = 'my username'; let sipToken = 'my token'; const…
Irfan wani
  • 4,084
  • 2
  • 19
  • 34
1
2 3