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
Install grunt-cli globally:
$ npm install -g grunt-cli
Enter the directory and install the Node.js dependencies:
$ cd JsSIP && npm install
Make sure you have grunt
installed by testing:
$ grunt -version
Finally, run grunt dist
(or just grunt
) to get an uncompressed version of JsSIP located at builds/jssip-X.Y.Z.js
and a symlink builds/jssip-last.js
pointing to it:
$ grunt dist
In order to get a minified/production version of JsSIP run grunt min
(note that you must have executed grunt dist
before):
$ grunt min
JsSIP includes test units based on QUnit. Test units use the builds/jssip-last.js
file. Run the tests as follows:
$ grunt test
If you modify src/Grammar/src/Grammar.pegjs
then you need to recompile JsSIP Grammar file:
$ grunt grammar
And then build JsSIP again as explained above.
If you modify src/SDP/main.js
then you need to recompile JsSIP SDP file:
$ grunt sdp
And then build JsSIP again as explained above.