
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
@khateeb00/react-jssip
Advanced tools
A library built upon jssip to handle multiple calls for react and react-native frameworks.
A library built on jssip to support single and multiple audio calls on react and react-native frameworks.
Install react-native-webrtc
npm: npm install @khateeb00/react-jssip react-native-webrtc --save
The following simple JavaScript code creates a JsSIP User Agent instance and makes a SIP call:
// Create our JsSIP instance and run it:
import Sip from '@khateeb00/jssip'
Sip.register({
'websocket': 'wss://sip.myhost.com:8080',
"username": "alice",
"domain": "alice@example.com",
"password": "superpassword",
"name": "Alice",
})
// Register callbacks to desired call events
// type of call events 'call_received','call_terminated', 'call_accepted','call_updated'
// It returns an object with remove function to remove the listener.
const eventhandler = Sip.on(call_events,() => listener())
//to remove listener
eventhandler.remove()
In android/app/main/AndroidManifest.xml
add the following permissions before the <application>
section.
<uses-feature android:name="android.hardware.audio.output" />
<uses-feature android:name="android.hardware.microphone" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
Navigate to <ProjectFolder>/ios/<ProjectName>/
and edit Info.plist
, add the following lines.
<key>NSMicrophoneUsageDescription</key>
<string>Microphone permission description</string>
FAQs
A library built upon jssip to handle multiple calls for react and react-native frameworks.
The npm package @khateeb00/react-jssip receives a total of 3 weekly downloads. As such, @khateeb00/react-jssip popularity was classified as not popular.
We found that @khateeb00/react-jssip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.