Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.16 KB

BUILDING.md

File metadata and controls

62 lines (39 loc) · 1.16 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 4.0 globally (which provides the gulp command):

$ npm install -g gulpjs/gulp-cli#4.0

(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