Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.05 KB

BUILDING.md

File metadata and controls

65 lines (38 loc) · 1.05 KB

What you need to build JsSIP

You just need to have Node.js and Git.

Node.js

Git

How to build JsSIP

Clone a copy of the main JsSIP git repository by running:

$ git clone https://github.com/versatica/JsSIP.git JsSIP
$ cd JsSIP

Install gulp-cli (>= 1.2.2) globally (which provides the gulp command):

$ npm install -g gulp-cli

(you can also use the local gulp executable located in node_modules/.bin/gulp).

Install the Node.js dependencies:

$ npm install

Finally, run gulp dist (or just gulp) to get:

  • dist/jssip.js: uncompressed version of JsSIP.
  • dist/jssip.min.js: compressed version of JsSIP.
$ gulp dist

Test units

$ gulp test

Development

Changes in JsSIP Grammar

If you modify lib/Grammar.pegjs then you need to recompile it:

$ gulp devel
$ gulp dist