0.6.4 • Published 4 months ago

ng112-js-sip-adapter-jssip v0.6.4

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
4 months ago

ng112-js-sip-adapter-jssip

An adapter for ng112-js for using JsSIP as a SIP stack.

License: GNU AGPL-3.0 \ Proprietary licenses are available on request. \ Maintainer: Gabriel Unterholzer (gabriel.unterholzer@dec112.at)

Installation

npm install ng112-js-sip-adapter-jssip

Usage

This library already comes with a factory that is ready to use with ng112-js.

import { Agent } from 'ng112-js/dist/node';
import { JsSipAdapter } from 'ng112-js-sip-adapter-jssip';

new Agent({
  sipAdapterFactory: JsSipAdapter.factory,
  // [...]
});

In addition, node environments will also need to install jssip-node-websocket, which is a peer dependency of ng112-js-sip-adapter-jssip

npm install jssip-node-websocket

Build issues

Some environments may cause problems not being able to resolve JsSIP types correctly, as JsSIP does not come with types included, but they are provided by an additional package @types/jssip.

Build output might look like this:

Error: node_modules/ng112-js/dist/types/models/message.d.ts:81:20 - error TS2503: Cannot find namespace 'JsSIP'.
81     jssipMessage?: JsSIP.UserAgentNewMessageEvent;

In these cases add the following to the compilerOptions section in your tsconfig.json. \ It will tell TypeScript the location where to look for jssip types:

{
  // [...]
  "compilerOptions": {
    // [...]
    "paths": {
      "jssip" : ["node_modules/@types/jssip"]
    }
  }
}

More information on this: https://www.typescriptlang.org/tsconfig#paths

Local Build

npm install
npm run build

This project was bootstrapped with TSDX

0.6.4

4 months ago

0.6.3

11 months ago

0.6.2

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.3.0

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.1.0-dev.1

3 years ago