File: BUILDING.md

package info (click to toggle)
jssip 0.6.34-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 904 kB
  • ctags: 560
  • sloc: makefile: 26
file content (63 lines) | stat: -rw-r--r-- 1,244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## What you need to build JsSIP

You just need to have [Node.js](http://nodejs.org/) and [Git](http://git-scm.com/).


### Node.js

* [Install Node.js via package manager](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)
* [Install Node.js from sources](http://nodejs.org)

### Git

* [Install Git](http://git-scm.com/book/en/Getting-Started-Installing-Git)


## How to build JsSIP

Clone a copy of the main JsSIP git repository by running:
```bash
$ git clone https://github.com/versatica/JsSIP.git JsSIP
$ cd JsSIP
```

Install `gulp-cli` 4.0 globally (which provides the `gulp` command):
```bash
$ 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:
```bash
$ npm install
```

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

* `dist/jssip-X.Y.Z.js`: uncompressed version of JsSIP.
* `dist/jssip-X.Y.Z.min.js`: compressed version of JsSIP.
* `dist/jssip.js`: copy of the compressed file.

```bash
$ gulp dist
```


## Test units

```bash
$ gulp test
```


## Development

### Changes in JsSIP Grammar

If you modify `lib/Grammar.pegjs` then you need to recompile it:
```bash
$ gulp devel
$ gulp dist
```