Comparing version 0.8.4 to 0.9.0
{ | ||
"name": "sip.js", | ||
"version": "0.8.4", | ||
"version": "0.9.0", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "James Criscuolo <james@onsip.com>", |
@@ -5,3 +5,3 @@ { | ||
"description": "A simple, intuitive, and powerful JavaScript signaling library", | ||
"version": "0.8.4", | ||
"version": "0.9.0", | ||
"main": "dist/sip.min.js", | ||
@@ -8,0 +8,0 @@ "browser": { |
@@ -40,3 +40,3 @@ /** | ||
require('./ServerContext')(SIP); | ||
require('./Session')(SIP, environment); | ||
require('./Session')(SIP); | ||
require('./Subscription')(SIP); | ||
@@ -43,0 +43,0 @@ require('./UA')(SIP, environment); |
@@ -240,3 +240,3 @@ "use strict"; | ||
if (this.response.getHeader('contact')) { | ||
ruri = this.response.getHeader('contact').replace(/</g, '').replace(/>/g, ''); | ||
ruri = this.response.parseHeader('contact').uri; | ||
} else { | ||
@@ -243,0 +243,0 @@ ruri = this.request.ruri; |
@@ -702,2 +702,18 @@ "use strict"; | ||
break; | ||
case SIP.C.REFER: | ||
this.logger.log('Received an out of dialog refer'); | ||
if (this.configuration.allowOutOfDialogRefers) { | ||
this.logger.log('Allow out of dialog refers is enabled on the UA'); | ||
var referContext = new SIP.ReferServerContext(this, request); | ||
var hasReferListener = this.listeners('outOfDialogReferRequested').length; | ||
if (hasReferListener) { | ||
this.emit('outOfDialogReferRequested', referContext); | ||
} else { | ||
this.logger.log('No outOfDialogReferRequest listeners, automatically accepting and following the out of dialog refer'); | ||
referContext.accept({followRefer: true}); | ||
} | ||
break; | ||
} | ||
request.reply(405); | ||
break; | ||
default: | ||
@@ -961,2 +977,4 @@ request.reply(405); | ||
allowLegacyNotifications: false, | ||
allowOutOfDialogRefers: false, | ||
}; | ||
@@ -963,0 +981,0 @@ |
@@ -99,3 +99,5 @@ var UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | ||
"WWW_Authenticate", | ||
"challenge" | ||
"challenge", | ||
"sipfrag", | ||
"Referred_By" | ||
] | ||
@@ -102,0 +104,0 @@ } |
Sorry, the diff of this file is too big to display
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
1491060
29572