-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
7,162 additions
and
1,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
node_modules/ | ||
dist/sip* | ||
.grunt | ||
lib/* | ||
_SpecRunner.html | ||
src/Grammar/dist/Grammar.js | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
# AUTHORS | ||
|
||
## James Criscuolo | ||
## James Criscuolo [@james-criscuolo](https://github.com/james-criscuolo) | ||
|
||
* <[email protected]> | ||
* GitHub [@james-criscuolo](https://github.com/james-criscuolo) | ||
## Eric Green [@egreenmachine](https://github.com/egreenmachine) | ||
|
||
## Eric Green | ||
# Previous Authors | ||
|
||
* <[email protected]> | ||
* GitHub [@egreenmachine](https://github.com/egreenmachine) | ||
|
||
## Joseph Frazier | ||
|
||
* <[email protected]> | ||
* GitHub [@josephfrazier](https://github.com/josephfrazier) | ||
* Twitter [@josephfrazier_](https://twitter.com/josephfrazier_) | ||
|
||
## Will Mitchell | ||
|
||
* <[email protected]> | ||
* GitHub [@wakamoleguy](https://github.com/wakamoleguy) | ||
* Twitter [@wakamoleguy](https://twitter.com/wakamoleguy) | ||
* Joseph Frazier | ||
* Will Mitchell | ||
|
||
## JsSIP Authors | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,32 +15,18 @@ A JavaScript SIP stack for WebRTC, instant messaging, and more! | |
## Download | ||
|
||
* [sipjs.com/download](https://sipjs.com/download/) | ||
* Bower: `bower install sip.js` | ||
* npm: `npm install sip.js` | ||
|
||
## Authors | ||
|
||
### James Criscuolo | ||
### James Criscuolo [@james-criscuolo](https://github.com/james-criscuolo) | ||
|
||
* <[email protected]> | ||
* GitHub [@james-criscuolo](https://github.com/james-criscuolo) | ||
### Eric Green [@egreenmachine](https://github.com/egreenmachine) | ||
|
||
### Eric Green | ||
## Previous Authors | ||
|
||
* <[email protected]> | ||
* GitHub [@egreenmachine](https://github.com/egreenmachine) | ||
|
||
### Joseph Frazier | ||
|
||
* <[email protected]> | ||
* GitHub [@josephfrazier](https://github.com/josephfrazier) | ||
* Twitter [@josephfrazier_](https://twitter.com/josephfrazier_) | ||
|
||
### Will Mitchell | ||
|
||
* <[email protected]> | ||
* GitHub [@wakamoleguy](http://github.com/wakamoleguy) | ||
* Twitter [@wakamoleguy](http://twitter.com/wakamoleguy) | ||
* Joseph Frazier | ||
* Will Mitchell | ||
|
||
### JsSIP Authors | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,29 +45,6 @@ | |
set +e | ||
``` | ||
|
||
* test bower: | ||
|
||
```shell | ||
#!/usr/bin/env bash | ||
set -e | ||
SIPJS_DIR=`pwd` | ||
SIPJS_HASH=`git rev-parse HEAD` | ||
cd /tmp | ||
rm -rf bower_components | ||
bower install "$SIPJS_DIR/.git#$SIPJS_HASH" | ||
SIPJS_TEST="var session = new SIP.UA({traceSip: true}).invite('[email protected]', new Audio());" | ||
SIPJS_TEST+="session.on('accepted', setTimeout.bind(null, window.close, 5000))" | ||
npm install -g smokestack | ||
cat ./bower_components/sip.js/dist/sip.min.js <(echo $SIPJS_TEST) | smokestack | ||
# more tests | ||
cd $SIPJS_DIR | ||
set +e | ||
``` | ||
|
||
* push to local github | ||
* merge (this step and the above one can be skipped if you just do it on the the repo's release branch itself) | ||
* git tag (your version number) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
"use strict"; | ||
|
||
const fs = require("fs"), | ||
pegjs = require("pegjs"); | ||
//tspegjs = require("ts-pegjs"); | ||
|
||
const thisFolder = "./src/Grammar", | ||
inputFile = thisFolder + "/src/Grammar.pegjs", | ||
outputFolder = thisFolder + "/dist", | ||
outputFile = outputFolder + "/Grammar.js"; | ||
|
||
const grammarContents = fs.readFileSync(inputFile, "utf8"); | ||
|
||
const parser = pegjs.generate(grammarContents, { | ||
allowedStartRules: [ | ||
"Contact", | ||
"Name_Addr_Header", | ||
"Record_Route", | ||
"Request_Response", | ||
"SIP_URI", | ||
"Subscription_State", | ||
"Supported", | ||
"Require", | ||
"Via", | ||
"absoluteURI", | ||
"Call_ID", | ||
"Content_Disposition", | ||
"Content_Length", | ||
"Content_Type", | ||
"CSeq", | ||
"displayName", | ||
"Event", | ||
"From", | ||
"host", | ||
"Max_Forwards", | ||
"Min_SE", | ||
"Proxy_Authenticate", | ||
"quoted_string", | ||
"Refer_To", | ||
"Replaces", | ||
"Session_Expires", | ||
"stun_URI", | ||
"To", | ||
"turn_URI", | ||
"uuid", | ||
"WWW_Authenticate", | ||
"challenge", | ||
"sipfrag", | ||
"Referred_By" | ||
], | ||
output: "source", | ||
format: "umd", | ||
exportVar: "SIP.Grammar", | ||
optimize: "size", | ||
/* TODO - we want this eventually, but right now it produces ts that makes tsc unhappy | ||
plugins: [tspegjs], | ||
"tspegjs": { | ||
"noTslint": false, | ||
} | ||
*/ | ||
}); | ||
|
||
if (!fs.existsSync(outputFolder)){ | ||
fs.mkdirSync(outputFolder); | ||
} | ||
|
||
fs.writeFile(outputFile, parser, err => { | ||
if (err) { | ||
console.log(err); | ||
} else { | ||
console.log("Grammar successfully generated."); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.