Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "sip.js", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Will Mitchell <will@onsip.com>", |
@@ -122,2 +122,3 @@ /*jshint multistr:true, devel:true*/ | ||
'Call_ID', | ||
'Content_Disposition', | ||
'Content_Length', | ||
@@ -124,0 +125,0 @@ 'Content_Type', |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple, intuitive, and powerful JavaScript signaling library", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"main": "src/SIP.js", | ||
@@ -8,0 +8,0 @@ "homepage": "http://sipjs.com", |
@@ -18,3 +18,4 @@ # SIP.js | ||
* [sipjs.com/download](http://sipjs.com/download/) | ||
* Bower: `bower install sip.js#0.5.0+bower` | ||
* Bower: `bower install sip.js` | ||
* npm: `npm install sip.js` | ||
@@ -21,0 +22,0 @@ ## Authors |
@@ -149,2 +149,6 @@ /** | ||
uri = this.scheme + ':'; | ||
// add slashes if it's not a sip(s) URI | ||
if (!this.scheme.match("^sips?$")) { | ||
uri += "//"; | ||
} | ||
if (this.user) { | ||
@@ -151,0 +155,0 @@ uri += SIP.Utils.escapeUser(this.user) + '@'; |
@@ -84,3 +84,3 @@ /** | ||
if (e.candidate) { | ||
self.logger.log('ICE candidate received: '+ e.candidate.candidate); | ||
self.logger.log('ICE candidate received: '+ (e.candidate.candidate === null ? null : e.candidate.candidate.trim())); | ||
} else if (self.onIceCompleted !== undefined) { | ||
@@ -87,0 +87,0 @@ self.onIceCompleted(this); |
@@ -222,2 +222,23 @@ describe('Grammar', function () { | ||
}); | ||
describe('Content-Disposition', function () { | ||
['session', 'render'].forEach(function (dispString) { | ||
itHas( | ||
SIP.Grammar.parse.bind(SIP.Grammar, dispString, 'Content_Disposition'), | ||
'type', | ||
dispString | ||
); | ||
}) | ||
}); | ||
var uuidString = "f6e15cd0-17ed-11e4-8c21-0800200c9a66"; | ||
describe('parsing a UUID', function () { | ||
it('returns the input for correct UUIDs', function () { | ||
expect(SIP.Grammar.parse(uuidString, 'uuid')).toEqual(uuidString); | ||
}); | ||
it('returns -1 for incorrect UUIDs', function () { | ||
expect(SIP.Grammar.parse("XXX bad UUID XXX", 'uuid')).toEqual(-1); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
729972
66
16779
78