You just need to have Node.js and Git.
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
$ gulp test
If you modify lib/Grammar.pegjs
then you need to recompile it:
$ gulp devel
$ gulp dist